summaryrefslogtreecommitdiff
path: root/security/amavisd-new/files/DEINSTALL.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'security/amavisd-new/files/DEINSTALL.tmpl')
-rw-r--r--security/amavisd-new/files/DEINSTALL.tmpl62
1 files changed, 62 insertions, 0 deletions
diff --git a/security/amavisd-new/files/DEINSTALL.tmpl b/security/amavisd-new/files/DEINSTALL.tmpl
new file mode 100644
index 000000000000..ab47a8059013
--- /dev/null
+++ b/security/amavisd-new/files/DEINSTALL.tmpl
@@ -0,0 +1,62 @@
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/DEINSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
+#
+
+USER=%%AMAVISUSER%%
+GROUP=%%AMAVISGROUP%%
+DIR=%%AMAVISDIR%%
+QUARANTINE=%%AMAVISQUARANTINE%%
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+
+ if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
+ /usr/sbin/pw groupdel ${GROUP}
+ echo "Deleted group \"${GROUP}\"."
+ fi
+
+ if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
+ /usr/sbin/pw userdel ${USER}
+ echo "Deleted user \"${USER}\"."
+ fi
+
+ if [ -e ${DIR} ]; then
+ /bin/rm -rf ${DIR}
+ echo "Deleted \"${DIR}\" directory."
+ fi
+
+ if [ -e ${QUARANTINE} ]; then
+ echo "You should manually remove the \"${QUARANTINE}\" directory."
+ fi
+fi
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/DEINSTALL.tmpl,v 1.1 2003-01-04 07:20:30 demon Exp $
+#
+
+USER=%%AMAVISUSER%%
+GROUP=%%AMAVISGROUP%%
+DIR=%%AMAVISDIR%%
+QUARANTINE=%%AMAVISQUARANTINE%%
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+
+ if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
+ /usr/sbin/pw groupdel ${GROUP}
+ echo "Deleted group \"${GROUP}\"."
+ fi
+
+ if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
+ /usr/sbin/pw userdel ${USER}
+ echo "Deleted user \"${USER}\"."
+ fi
+
+ if [ -e ${DIR} ]; then
+ /bin/rm -rf ${DIR}
+ echo "Deleted \"${DIR}\" directory."
+ fi
+
+ if [ -e ${QUARANTINE} ]; then
+ echo "You should manually remove the \"${QUARANTINE}\" directory."
+ fi
+fi