diff options
author | ume <ume@FreeBSD.org> | 2004-04-01 00:32:17 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-04-01 00:32:17 +0800 |
commit | 3bcc458d50e6a211429bd71d0e8134a534ccaea0 (patch) | |
tree | dfeecf0c730af4a7d96abcb50570a2fffec84cb9 /security | |
parent | 9fd34af658caad4172977c3002340b480ea35af0 (diff) | |
download | freebsd-ports-gnome-3bcc458d50e6a211429bd71d0e8134a534ccaea0.tar.gz freebsd-ports-gnome-3bcc458d50e6a211429bd71d0e8134a534ccaea0.tar.zst freebsd-ports-gnome-3bcc458d50e6a211429bd71d0e8134a534ccaea0.zip |
- add saslauthd_runpath option to change run path which is specified
by -m option of saslauthd. since this option affects a location of
a pidfile, we need to separate it from saslauthd_flags.[1]
- change the default of saslauthd_enable to NO as other potrs do.
Requested by: "Paul-Andrew Joseph Miseiko" <esoteric@teardrop.ca> [1]
Diffstat (limited to 'security')
-rw-r--r-- | security/cyrus-sasl2-saslauthd/Makefile | 3 | ||||
-rw-r--r-- | security/cyrus-sasl2-saslauthd/files/saslauthd.sh | 19 |
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" |