summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl/DEINSTALL
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-21 22:22:10 +0000
committerjlam <jlam>2001-11-21 22:22:10 +0000
commit12a20481ddcfbf3ee78801d7c51bbc68dd4400a8 (patch)
tree97c67f3a10af4a76a78429ca6156ac5572851916 /security/cyrus-sasl/DEINSTALL
parentca54febce3487557911cd62c12e4ba0a8aa138ed (diff)
downloadpkgsrc-12a20481ddcfbf3ee78801d7c51bbc68dd4400a8.tar.gz
Buildlinkify, respect ${CONFDIR}, use general INSTALL/DEINSTALL scripts,
and make sasl_passwd into a real rc.d script.
Diffstat (limited to 'security/cyrus-sasl/DEINSTALL')
-rw-r--r--security/cyrus-sasl/DEINSTALL38
1 files changed, 8 insertions, 30 deletions
diff --git a/security/cyrus-sasl/DEINSTALL b/security/cyrus-sasl/DEINSTALL
index 810f50e4120..27cb7306ec8 100644
--- a/security/cyrus-sasl/DEINSTALL
+++ b/security/cyrus-sasl/DEINSTALL
@@ -1,44 +1,22 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.1 2001/11/01 01:16:36 zuntum Exp $
+# $NetBSD: DEINSTALL,v 1.2 2001/11/21 22:22:10 jlam Exp $
-PKGNAME=$1
-STAGE=$2
-
-USER="@CYRUS_USER@"
-GROUP="@CYRUS_GROUP@"
-
-CAT="@CAT@"
-RM="@RM@"
-
-SASLDB=/etc/sasldb.db
-PWCHECKDIR=/var/pwcheck
+SASLDB=@CONFDIR@/sasldb.db
+PWCHECKDIR=@PWCHECKDIR@
case ${STAGE} in
-DEINSTALL)
- ;;
-
POST-DEINSTALL)
${RM} -rf ${PWCHECKDIR}
- ${CAT} << EOF
+ if [ -e ${SASLDB} ]
+ then
+ ${CAT} << EOF
===========================================================================
-If you won't be using ${PKGNAME} any longer, you may want
-to remove:
-
- * the \`${USER}' user
-
- * the \`${GROUP}' group
-
- * the following files:
+You may want to remove the SASL password data file:
${SASLDB}
===========================================================================
EOF
- ;;
-
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ fi
;;
esac
-exit 0