aboutsummaryrefslogtreecommitdiffstats
path: root/mail/openwebmail/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'mail/openwebmail/pkg-deinstall')
-rw-r--r--mail/openwebmail/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/openwebmail/pkg-deinstall b/mail/openwebmail/pkg-deinstall
new file mode 100644
index 000000000000..a63d9953a511
--- /dev/null
+++ b/mail/openwebmail/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+
+for x in addressbooks/global calendar.book; do
+ if [ ! -s "${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}" ]; then
+ rm ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
+ fi
+done
+
+rm -fr ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions/*