aboutsummaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2-saslauthd
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2004-03-31 16:32:17 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2004-03-31 16:32:17 +0000
commit26d924929adef1411d22662dd4f9aa8d1fb91480 (patch)
treee1a5d2caeac37cf2931b34407276d5a69608de16 /security/cyrus-sasl2-saslauthd
parentc5dd4b42a974e95448871473453731f29cacc153 (diff)
downloadports-26d924929adef1411d22662dd4f9aa8d1fb91480.tar.gz
ports-26d924929adef1411d22662dd4f9aa8d1fb91480.zip
Notes
Diffstat (limited to 'security/cyrus-sasl2-saslauthd')
-rw-r--r--security/cyrus-sasl2-saslauthd/Makefile3
-rw-r--r--security/cyrus-sasl2-saslauthd/files/saslauthd.sh19
2 files changed, 16 insertions, 6 deletions
diff --git a/security/cyrus-sasl2-saslauthd/Makefile b/security/cyrus-sasl2-saslauthd/Makefile
index f651c643684b..105314b15b35 100644
--- a/security/cyrus-sasl2-saslauthd/Makefile
+++ b/security/cyrus-sasl2-saslauthd/Makefile
@@ -7,7 +7,7 @@
PORTNAME= saslauthd
PORTVERSION= 2.1.18
-#PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
@@ -141,5 +141,6 @@ post-install:
.endif
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} \
POST-INSTALL
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/security/cyrus-sasl2-saslauthd/files/saslauthd.sh b/security/cyrus-sasl2-saslauthd/files/saslauthd.sh
index c079603c8e1c..c212409d83da 100644
--- a/security/cyrus-sasl2-saslauthd/files/saslauthd.sh
+++ b/security/cyrus-sasl2-saslauthd/files/saslauthd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/security/cyrus-sasl2-saslauthd/files/Attic/saslauthd.sh,v 1.3 2003-10-01 17:56:06 ume Exp $
+# $FreeBSD: /tmp/pcvs/ports/security/cyrus-sasl2-saslauthd/files/Attic/saslauthd.sh,v 1.4 2004-03-31 16:32:17 ume Exp $
#
# PROVIDE: saslauthd
@@ -19,18 +19,27 @@ prefix=%%PREFIX%%
# /etc/rc.conf.local
# /etc/rc.conf.d/saslauthd
#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-[ -z "$saslauthd_enable" ] && saslauthd_enable="YES" # Enable saslauthd
+saslauthd_enable=${saslauthd_enable:-"NO"} # Enable saslauthd
+saslauthd_flags=${saslauthd_flags:-"-a pam"} # Flags to saslauthd program
+#saslauthd_runpath="/var/state/saslauthd" # Working directory
#saslauthd_program="${prefix}/sbin/saslauthd" # Location of saslauthd
-[ -z "$saslauthd_flags" ] && saslauthd_flags="-a pam" # Flags to saslauthd program
. %%RC_SUBR%%
name="saslauthd"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
-pidfile="/var/state/${name}/${name}.pid"
load_rc_config $name
+
+if [ -z "$saslauthd_runpath" ]; then
+ pidfile="/var/state/${name}/${name}.pid"
+ flags="${saslauthd_flags}"
+else
+ pidfile="${saslauthd_runpath}/${name}.pid"
+ flags="${saslauthd_flags} -m ${saslauthd_runpath}"
+fi
+
run_rc_command "$1"