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.
This commit is contained in:
parent
8088bba049
commit
f0922b5aa5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85224
@ -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>
|
||||
|
31
security/cyrus-sasl2-saslauthd/pkg-deinstall
Normal file
31
security/cyrus-sasl2-saslauthd/pkg-deinstall
Normal file
@ -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
|
22
security/cyrus-sasl2-saslauthd/pkg-install
Normal file
22
security/cyrus-sasl2-saslauthd/pkg-install
Normal file
@ -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
|
@ -15,16 +15,6 @@ SASLDB_NAME=${PKG_PREFIX}/etc/%%SASLDB%%
|
||||
CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%}
|
||||
CYRUS_GROUP=${CYRUS_GROUP:=%%CYRUS_GROUP%%}
|
||||
|
||||
remove_file()
|
||||
{
|
||||
file=$1
|
||||
|
||||
if cmp -s ${file} ${file}.tmp; then
|
||||
rm -f ${file}
|
||||
fi
|
||||
rm -f ${file}.tmp
|
||||
}
|
||||
|
||||
# delete sasldb database
|
||||
|
||||
delete_sasldb() {
|
||||
@ -47,19 +37,9 @@ delete_user() {
|
||||
|
||||
}
|
||||
|
||||
# This should really be uninstalled by Sendmail
|
||||
|
||||
sendmail_conf() {
|
||||
if [ -f ${PKG_PREFIX}/lib/sasl2/Sendmail.conf ]; then
|
||||
echo "pwcheck_method: auxprop" > ${PKG_PREFIX}/lib/sasl2/Sendmail.conf.tmp
|
||||
remove_file ${PKG_PREFIX}/lib/sasl2/Sendmail.conf
|
||||
fi
|
||||
}
|
||||
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
delete_sasldb
|
||||
sendmail_conf
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
delete_user
|
||||
|
@ -85,14 +85,6 @@ create_sasldb() {
|
||||
fi
|
||||
}
|
||||
|
||||
# This should really be installed by Sendmail
|
||||
|
||||
sendmail_conf() {
|
||||
if [ ! -f ${PKG_PREFIX}/lib/sasl2/Sendmail.conf ]; then
|
||||
echo "pwcheck_method: auxprop" > ${PKG_PREFIX}/lib/sasl2/Sendmail.conf
|
||||
fi
|
||||
}
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
create_user
|
||||
@ -100,7 +92,6 @@ case $2 in
|
||||
POST-INSTALL)
|
||||
if [ "${PKG_BATCH}" = "NO" ]; then
|
||||
create_sasldb
|
||||
sendmail_conf
|
||||
fi
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user