mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
24 lines
428 B
Bash
24 lines
428 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PKG_BATCH=${BATCH:=NO}
|
|
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
|
|
|
|
# This should really be installed by Sendmail
|
|
sendmail_conf() {
|
|
if [ ! -f ${PKG_PREFIX}/lib/sasl2/Sendmail.conf ]; then
|
|
echo "pwcheck_method: saslauthd" > ${PKG_PREFIX}/lib/sasl2/Sendmail.conf
|
|
fi
|
|
}
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
if [ "${PKG_BATCH}" = "NO" ]; then
|
|
sendmail_conf
|
|
fi
|
|
/usr/sbin/chown cyrus:mail /var/run/saslauthd
|
|
;;
|
|
esac
|