summaryrefslogtreecommitdiffstats
path: root/extra/qgis/qgis.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qgis/qgis.install')
-rw-r--r--extra/qgis/qgis.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/qgis/qgis.install b/extra/qgis/qgis.install
new file mode 100644
index 000000000..b443ef0b3
--- /dev/null
+++ b/extra/qgis/qgis.install
@@ -0,0 +1,15 @@
+post_install() {
+ sed -e '/\/opt\/qgis\/lib/d' -i /etc/ld.so.conf
+ echo '/opt/qgis/lib' >> etc/ld.so.conf
+ sbin/ldconfig -r .
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ sed -e '/\/opt\/qgis\/lib/d' -i /etc/ld.so.conf
+ sbin/ldconfig -r .
+}
+