blob: d6053142338ca03894472760a112b8155a0e6059 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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
|