mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
036ea866d5
PR: 22462
40 lines
742 B
Bash
40 lines
742 B
Bash
#!/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
|