summaryrefslogtreecommitdiff
path: root/net/gatekeeper/pkg-deinstall
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-06-23 14:46:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-06-23 14:46:41 +0000
commit10fee85fffd549aeba8dec2996aeab604514d13e (patch)
treeab9d6c7136bd9cbe947d466f13043daae4610368 /net/gatekeeper/pkg-deinstall
parentreadd DRAC support to mail/courier-imap (diff)
- Update to 2.2.2
- Take maintainership PR: ports/82454 Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Notes
Notes: svn path=/head/; revision=137934
Diffstat (limited to 'net/gatekeeper/pkg-deinstall')
-rw-r--r--net/gatekeeper/pkg-deinstall41
1 files changed, 41 insertions, 0 deletions
diff --git a/net/gatekeeper/pkg-deinstall b/net/gatekeeper/pkg-deinstall
new file mode 100644
index 000000000000..9d8a5ce54bc4
--- /dev/null
+++ b/net/gatekeeper/pkg-deinstall
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+PATH=/bin:/usr/bin:/usr/sbin
+
+gnugk_config=${PKG_PREFIX:-"/usr/local"}/etc/gnugk.ini
+gnugk_logdir="/var/log/gnugk"
+gnugk_piddir="/var/run/gnugk"
+
+case $2 in
+DEINSTALL)
+ cmp -s -z ${gnugk_config} ${gnugk_config}.default && rm ${gnugk_config}
+ rmdir ${gnugk_logdir} 2>/dev/null
+ rmdir ${gnugk_piddir} 2>/dev/null
+ ;;
+POST-DEINSTALL)
+ echo "===> post-deinstallation information for $1"
+ echo ""
+ echo " Please note that gatekeeper was not completely removed"
+ echo " from this system:"
+ echo ""
+ echo " Any gatekeeper related user accounts were kept."
+ if [ -f ${gnugk_config} \
+ -o -d ${gnugk_logdir} \
+ -o -d ${gnugk_piddir} ] ; then
+ echo ""
+ echo " Additionally, the log directory as well as any"
+ echo " modified configuration files were preserved"
+ echo " too, in case you want to install an updated version"
+ echo " of gatekeeper. You need to remove them manually if"
+ echo " you do not want to use it any longer."
+ fi
+ echo ""
+ ;;
+*)
+ exit 64
+ ;;
+esac
+exit 0