aboutsummaryrefslogtreecommitdiff
path: root/mail/horde4-imp/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'mail/horde4-imp/pkg-deinstall')
-rw-r--r--mail/horde4-imp/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/horde4-imp/pkg-deinstall b/mail/horde4-imp/pkg-deinstall
new file mode 100644
index 000000000000..ee55cbb6519e
--- /dev/null
+++ b/mail/horde4-imp/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Try to restore httpd.conf when deinstalling IMP
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+
+if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ] ; then
+ echo "Restoring httpd.conf..."
+ cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstIMP
+ mv ${PKG_PREFIX}/etc/apache/httpd.conf.beforeIMP ${PKG_PREFIX}/etc/apache/httpd.conf
+fi