1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/security/cyrus-sasl2-saslauthd/pkg-deinstall
Hajimu UMEMOTO f0922b5aa5 Stop installing Sendmail.conf by cyrus-sasl2, and it is now installed
by cyrus-sasl2-saslauthd.  Since if Sendmail.conf is not installed,
SASL2 uses auxprop by default, it is enough to install Sendmail.conf
by saslauthd port.
2003-07-20 06:29:25 +00:00

32 lines
498 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PKG_BATCH=${BATCH:=NO}
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
remove_file()
{
file=$1
if cmp -s ${file} ${file}.tmp; then
rm -f ${file}
fi
rm -f ${file}.tmp
}
# This should really be uninstalled by Sendmail
sendmail_conf() {
if [ -f ${PKG_PREFIX}/lib/sasl2/Sendmail.conf ]; then
echo "pwcheck_method: saslauthd" > ${PKG_PREFIX}/lib/sasl2/Sendmail.conf.tmp
remove_file ${PKG_PREFIX}/lib/sasl2/Sendmail.conf
fi
}
case $2 in
DEINSTALL)
sendmail_conf
;;
esac