diff options
author | James E. Housley <jeh@FreeBSD.org> | 2000-11-01 12:00:13 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2000-11-01 12:00:13 +0000 |
commit | 036ea866d509836c67b7713b376edea8dae78732 (patch) | |
tree | fc55713b15c05c0cf121a46b9659c7708de534bb /security | |
parent | - Change /var/pwcheck permissions so Postfix can use pwcheck for SASL Authent... (diff) |
New file
PR: 22462
Notes
Notes:
svn path=/head/; revision=34539
Diffstat (limited to 'security')
-rw-r--r-- | security/cyrus-sasl/pkg-deinstall | 39 | ||||
-rw-r--r-- | security/cyrus-sasl2/pkg-deinstall | 39 |
2 files changed, 78 insertions, 0 deletions
diff --git a/security/cyrus-sasl/pkg-deinstall b/security/cyrus-sasl/pkg-deinstall new file mode 100644 index 000000000000..2ee2b8bca882 --- /dev/null +++ b/security/cyrus-sasl/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 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 |