mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +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
|
PORTNAME= saslauthd
|
||||||
PORTVERSION= 2.1.18
|
PORTVERSION= 2.1.18
|
||||||
#PORTREVISION= 0
|
PORTREVISION= 1
|
||||||
CATEGORIES= security ipv6
|
CATEGORIES= security ipv6
|
||||||
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
|
||||||
ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
|
ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
|
||||||
@ -141,5 +141,6 @@ post-install:
|
|||||||
.endif
|
.endif
|
||||||
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} \
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} \
|
||||||
POST-INSTALL
|
POST-INSTALL
|
||||||
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# PROVIDE: saslauthd
|
||||||
@ -19,18 +19,27 @@ prefix=%%PREFIX%%
|
|||||||
# /etc/rc.conf.local
|
# /etc/rc.conf.local
|
||||||
# /etc/rc.conf.d/saslauthd
|
# /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
|
#saslauthd_program="${prefix}/sbin/saslauthd" # Location of saslauthd
|
||||||
[ -z "$saslauthd_flags" ] && saslauthd_flags="-a pam" # Flags to saslauthd program
|
|
||||||
|
|
||||||
. %%RC_SUBR%%
|
. %%RC_SUBR%%
|
||||||
|
|
||||||
name="saslauthd"
|
name="saslauthd"
|
||||||
rcvar=`set_rcvar`
|
rcvar=`set_rcvar`
|
||||||
command="${prefix}/sbin/${name}"
|
command="${prefix}/sbin/${name}"
|
||||||
pidfile="/var/state/${name}/${name}.pid"
|
|
||||||
|
|
||||||
load_rc_config $name
|
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"
|
run_rc_command "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user