summaryrefslogtreecommitdiff
path: root/mail/spamd/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/spamd/files/pkg-deinstall.in')
-rw-r--r--mail/spamd/files/pkg-deinstall.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/spamd/files/pkg-deinstall.in b/mail/spamd/files/pkg-deinstall.in
new file mode 100644
index 000000000000..e3951f0366f6
--- /dev/null
+++ b/mail/spamd/files/pkg-deinstall.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+#
+
+SPAMDDIR=%%SPAMDDIR%%
+SPAMDUSER=%%SPAMDUSER%%
+SPAMDGROUP=%%SPAMDGROUP%%
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+ if /usr/sbin/pw group show "${SPAMDGROUP}" 2>&1 >/dev/null; then
+ echo "You should manually remove the \"${SPAMDGROUP}\" group."
+ fi
+
+ if /usr/sbin/pw user show "${SPAMDUSER}" 2>&1 >/dev/null; then
+ echo "You should manually remove the \"${SPAMDUSER}\" user."
+ fi
+
+ if [ -e "${SPAMDDIR}" ]; then
+ echo "You should manually remove the \"${SPAMDDIR}\" directory."
+ fi
+fi