aboutsummaryrefslogtreecommitdiffstats
path: root/net/freeradius2
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2010-04-11 19:43:26 +0800
committerwxs <wxs@FreeBSD.org>2010-04-11 19:43:26 +0800
commitf2667b3fb12352565d8f45f5856dd65476de5b02 (patch)
tree0da83e3f424876cdad4565a49a92ef5716a48850 /net/freeradius2
parentf8d95e771d817dcc6d607442cacaecd1c75fd500 (diff)
downloadfreebsd-ports-gnome-f2667b3fb12352565d8f45f5856dd65476de5b02.tar.gz
freebsd-ports-gnome-f2667b3fb12352565d8f45f5856dd65476de5b02.tar.zst
freebsd-ports-gnome-f2667b3fb12352565d8f45f5856dd65476de5b02.zip
- If radiusd_flags did not contain -d all arguments would be incorrectly added
to required_dirs and cause the script to block. - If radiusd_flags contains -s the daemon never forks so deal with this by adding & to command_args. PR: ports/144969, ports/144970 Submitted by: Ryan Steinmetz <rpsfa@rit.edu> (maintainer)
Diffstat (limited to 'net/freeradius2')
-rw-r--r--net/freeradius2/files/radiusd.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/freeradius2/files/radiusd.sh.in b/net/freeradius2/files/radiusd.sh.in
index 6e623e392c0d..066993ebb965 100644
--- a/net/freeradius2/files/radiusd.sh.in
+++ b/net/freeradius2/files/radiusd.sh.in
@@ -30,13 +30,14 @@ debug_cmd="radiusd_debug"
# The radiusd_config parameter is now obsolete. Instead, derive the
# configuration directory name from radiusd_flags if possible, otherwise
# default to %%PREFIX%%/etc/raddb
-required_dirs=`echo ${radiusd_flags} | sed -Ee 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:'`
+required_dirs=`echo ${radiusd_flags} | sed -Ene 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:p'`
required_dirs=${required_dirs:-"%%PREFIX%%/etc/raddb"}
required_files="${required_dirs}/radiusd.conf"
radiusd_enable=${radiusd_enable-"NO"}
+command_args="&"
radiusd_debug()
{