summaryrefslogtreecommitdiff
path: root/mail/spamd/files/pkg-deinstall.in
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-06 16:38:53 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-06 16:38:53 +0000
commit4e3dcb24af0b616e8ab85d88b2f9c1d17da4b01f (patch)
tree22cd24c8b51a1e0ffe397aae97a4206c4c0f29dc /mail/spamd/files/pkg-deinstall.in
parent- Update to 1.1.2 (diff)
- Update to 4.1.2
PR: 113293 Submitted by: Alex Samorukov <samm@os2.kiev.ua> (maintainer)
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