[Git][debian-gis-team/tirex][master] Define symlink to mapnik plugins on build-time.

ǝɹʇʇɐʃǝ◖ xıʃǝɟ (@xamanu) gitlab at salsa.debian.org
Thu Sep 9 10:57:06 BST 2021



ǝɹʇʇɐʃǝ◖ xıʃǝɟ pushed to branch master at Debian GIS Project / tirex


Commits:
224e1270 by Felix Delattre at 2021-09-09T09:56:36+00:00
Define symlink to mapnik plugins on build-time.

- - - - -


3 changed files:

- − debian/tirex.links
- debian/tirex.postinst
- debian/tirex.prerm


Changes:

=====================================
debian/tirex.links deleted
=====================================
@@ -1 +0,0 @@
-/usr/lib/mapnik/3.1/input /usr/share/tirex/mapnik/input


=====================================
debian/tirex.postinst
=====================================
@@ -22,6 +22,10 @@ case "$1" in
 	;;
 esac
 
+# Create non-changing sym link to mapnik plugins
+mkdir -p /usr/share/tirex/mapnik
+ln -s $(mapnik-plugin-base) /usr/share/tirex/mapnik/input
+
 chown _tirex:_tirex /var/cache/tirex/tiles/test /var/cache/tirex/stats /var/log/tirex
 
 #DEBHELPER#


=====================================
debian/tirex.prerm
=====================================
@@ -19,4 +19,10 @@ then
     rm -rf /var/log/tirex
 fi
 
+# automatically remove tirex share directory
+if [ -d /usr/share/tirex ]
+then
+    rm -rf /usr/share/tirex
+fi
+
 #DEBHELPER#



View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/224e12704528f77f817ebe6f5a1885a2d5bc941e

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/224e12704528f77f817ebe6f5a1885a2d5bc941e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20210909/5781a2f4/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list