diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-07-20 06:29:25 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-07-20 06:29:25 +0000 |
commit | f0922b5aa5a827e7461432b822ecd8f8b6dbf346 (patch) | |
tree | 6c16e7a5455451e528584519ec2238dfc74ec589 /security/cyrus-sasl2-saslauthd | |
parent | 8088bba049b5401f9100424dd513c9b5711d65ca (diff) | |
download | ports-f0922b5aa5a827e7461432b822ecd8f8b6dbf346.tar.gz ports-f0922b5aa5a827e7461432b822ecd8f8b6dbf346.zip |
Notes
Diffstat (limited to 'security/cyrus-sasl2-saslauthd')
-rw-r--r-- | security/cyrus-sasl2-saslauthd/Makefile | 2 | ||||
-rw-r--r-- | security/cyrus-sasl2-saslauthd/pkg-deinstall | 31 | ||||
-rw-r--r-- | security/cyrus-sasl2-saslauthd/pkg-install | 22 |
3 files changed, 55 insertions, 0 deletions
diff --git a/security/cyrus-sasl2-saslauthd/Makefile b/security/cyrus-sasl2-saslauthd/Makefile index 5bed45abaf2f..68bf64c93122 100644 --- a/security/cyrus-sasl2-saslauthd/Makefile +++ b/security/cyrus-sasl2-saslauthd/Makefile @@ -133,5 +133,7 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/saslauthd/${file} ${DOCSDIR}/saslauthd .endfor .endif + @PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} \ + POST-INSTALL .include <bsd.port.post.mk> diff --git a/security/cyrus-sasl2-saslauthd/pkg-deinstall b/security/cyrus-sasl2-saslauthd/pkg-deinstall new file mode 100644 index 000000000000..db4488ed1b72 --- /dev/null +++ b/security/cyrus-sasl2-saslauthd/pkg-deinstall @@ -0,0 +1,31 @@ +#!/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 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 |