diff options
author | ume <ume@FreeBSD.org> | 2003-07-20 14:29:25 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-07-20 14:29:25 +0800 |
commit | 55c255f5ac8d9317b449a0cae929ebb16281b8e7 (patch) | |
tree | 6672348864f53c3877f43b7aad5378dd3845b277 /security/cyrus-sasl2-saslauthd/pkg-install | |
parent | 26fb2f0eefcb41f6d278e0725581e47e147e5e19 (diff) | |
download | freebsd-ports-gnome-55c255f5ac8d9317b449a0cae929ebb16281b8e7.tar.gz freebsd-ports-gnome-55c255f5ac8d9317b449a0cae929ebb16281b8e7.tar.zst freebsd-ports-gnome-55c255f5ac8d9317b449a0cae929ebb16281b8e7.zip |
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.
Diffstat (limited to 'security/cyrus-sasl2-saslauthd/pkg-install')
-rw-r--r-- | security/cyrus-sasl2-saslauthd/pkg-install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/cyrus-sasl2-saslauthd/pkg-install b/security/cyrus-sasl2-saslauthd/pkg-install new file mode 100644 index 000000000000..65dea035f4f5 --- /dev/null +++ b/security/cyrus-sasl2-saslauthd/pkg-install @@ -0,0 +1,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 |