aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl2-saslauthd/pkg-install
blob: 65dea035f4f555ca2fc4fedf5bf2e87f8efe95c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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
    ;;
esac