mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
- 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]
This commit is contained in:
parent
c5dd4b42a9
commit
26d924929a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105792
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user