summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl/pkg-deinstall
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2003-05-09 12:41:21 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2003-05-09 12:41:21 +0000
commitaaeff08d6013c193f18099fbd252b4e4c4a75ad6 (patch)
tree0796e77de9010d6e6914e1340f3271f741e42acd /security/cyrus-sasl/pkg-deinstall
parentc4ff6d4ad518036bb83c6cb588348f1c7f112d0a (diff)
downloadfreebsd-ports-aaeff08d6013c193f18099fbd252b4e4c4a75ad6.zip
* Fix some problems with building the Kerberos IV and 5 mechs.
* Made the port to optionally not build the mechs, define WITHOUT_[ANONYMOUS,CRAM,DIGEST,LOGIN,OTP,GSSAPI,PLAIN]. * The Kerberos IV case is special, as we can use the base kerberos 4x (<=5.0-RELEASE), or use the security/krb4 port. WITH_KERBEROS4 - use security/krb4 port if <=5.0-RELEASE, use krb4 port only if /usr/lib/libkrb.a doesn't exist WITHOUT_KERBEROS4 - disables using the base systems /usr/lib/libkrb.a (<=5.0), if it exists and MAKE_KERBEROS4 defined in /etc/make.conf * Changed the combined rcNG/rcOG scripts, so that the defaults are at the top of the rc.d script and not in an external file to the script. PR: 51505 Submitted by: maintainer
Diffstat (limited to 'security/cyrus-sasl/pkg-deinstall')
-rw-r--r--security/cyrus-sasl/pkg-deinstall28
1 files changed, 7 insertions, 21 deletions
diff --git a/security/cyrus-sasl/pkg-deinstall b/security/cyrus-sasl/pkg-deinstall
index 30fa993e9275..02d41095c0cf 100644
--- a/security/cyrus-sasl/pkg-deinstall
+++ b/security/cyrus-sasl/pkg-deinstall
@@ -12,6 +12,9 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local}
SASLDB_NAME=${PKG_PREFIX}/etc/%%SASLDB%%
+CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%}
+CYRUS_GROUP=${CYRUS_GROUP:=%%CYRUS_GROUP%%}
+
remove_file()
{
file=$1
@@ -22,22 +25,6 @@ remove_file()
rm -f ${file}.tmp
}
-delete_rc_conf_d() {
- PWCHECK_CONF=${PKG_PREFIX}/etc/rc.conf.d/cyrus_pwcheck
- SASLAUTHD_CONF=${PKG_PREFIX}/etc/rc.conf.d/saslauthd1
-
- if [ -f ${SASLAUTHD_CONF} ]; then
- echo "saslauthd1_enable=%%ENABLE_SASLAUTHD%%" >> ${SASLAUTHD_CONF}.tmp
- echo "saslauthd1_flags=\"-a pam\"" >> ${SASLAUTHD_CONF}.tmp
- remove_file ${SASLAUTHD_CONF}
- fi
- if [ -f ${PWCHECK_CONF} ]; then
- echo "cyrus_pwcheck_enable=%%ENABLE_PWCHECK%%" > ${PWCHECK_CONF}.tmp
- echo "cyrus_pwcheck_program=${PKG_PREFIX}/sbin/%%PWCHECK%%" >> ${PWCHECK_CONF}.tmp
- remove_file ${PWCHECK_CONF}
- fi
-}
-
# delete sasldb database
delete_sasldb() {
@@ -51,11 +38,11 @@ delete_sasldb() {
}
delete_user() {
- if pw usershow cyrus 2>/dev/null 1>&2; then
- echo "To delete Cyrus user permanently, use 'pw userdel cyrus'"
+ if pw usershow ${CYRUS_USER} 2>/dev/null 1>&2; then
+ echo "To delete Cyrus user permanently, use 'pw userdel ${CYRUS_USER}'"
fi
- if pw groupshow cyrus 2>/dev/null 1>&2; then
- echo "To delete Cyrus group permanently, use 'pw groupdel cyrus'"
+ if pw groupshow ${CYRUS_GROUP} 2>/dev/null 1>&2; then
+ echo "To delete Cyrus group permanently, use 'pw groupdel ${CYRUS_GROUP}'"
fi
}
@@ -72,7 +59,6 @@ sendmail_conf() {
case $2 in
DEINSTALL)
delete_sasldb
- delete_rc_conf_d
sendmail_conf
;;
POST-DEINSTALL)