aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl2
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-11-01 20:00:13 +0800
committerjeh <jeh@FreeBSD.org>2000-11-01 20:00:13 +0800
commit52c3f277b4680d2d6c84cde92cc75f5c48994e43 (patch)
treec8802c894a32833edcecc01af298e3c5fc8e3920 /security/cyrus-sasl2
parent8d68fc3632fc7cb21a93f3532191003cd83ccf48 (diff)
downloadfreebsd-ports-gnome-52c3f277b4680d2d6c84cde92cc75f5c48994e43.tar.gz
freebsd-ports-gnome-52c3f277b4680d2d6c84cde92cc75f5c48994e43.tar.zst
freebsd-ports-gnome-52c3f277b4680d2d6c84cde92cc75f5c48994e43.zip
New file
PR: 22462
Diffstat (limited to 'security/cyrus-sasl2')
-rw-r--r--security/cyrus-sasl2/pkg-deinstall39
1 files changed, 39 insertions, 0 deletions
diff --git a/security/cyrus-sasl2/pkg-deinstall b/security/cyrus-sasl2/pkg-deinstall
new file mode 100644
index 000000000000..2ee2b8bca882
--- /dev/null
+++ b/security/cyrus-sasl2/pkg-deinstall
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Created by: hetzels@westbend.net
+
+#set -vx
+
+PKG_BATCH=${BATCH:=NO}
+
+PKG_PREFIX=${PKG_PREFIX:=/usr/local}
+
+# delete sasldb database
+
+delete_sasldb() {
+ [ -f %D/etc/sasldb.db -a ! -s %D/etc/sasldb.db ] && rm %D/etc/sasldb.db
+}
+
+# This should really be uninstalled by Sendmail
+
+sendmail_conf() {
+ if [ -f ${PKG_PREFIX}/lib/sasl/Sendmail.conf ]; then
+ echo "pwcheck_method: pwcheck" > ${PKG_PREFIX}/lib/sasl/Sendmail.conf.tmp
+ if cmp -s ${PKG_PREFIX}/lib/sasl/Sendmail.conf ${PKG_PREFIX}/lib/sasl/Sendmail.conf.tmp; then
+ rm -f ${PKG_PREFIX}/lib/sasl/Sendmail.conf
+ fi
+ rm -f ${PKG_PREFIX}/lib/sasl/Sendmail.conf.tmp
+ fi
+}
+
+case $2 in
+ DEINSTALL)
+ delete_sasldb
+ sendmail_conf
+ ;;
+ POST-DEINSTALL)
+ ;;
+
+esac