Date: Tue, 23 Mar 2010 02:33:01 GMT From: Ryan Steinmetz <rpsfa@rit.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/144969: [maintainer update] net/freeradius - fix rc script issues Message-ID: <201003230233.o2N2X1oc028851@www.freebsd.org> Resent-Message-ID: <201003230240.o2N2e4en022169@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144969 >Category: ports >Synopsis: [maintainer update] net/freeradius - fix rc script issues >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Mar 23 02:40:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Ryan Steinmetz >Release: 7.2-RELEASE >Organization: Rochester Institute of Technology >Environment: FreeBSD xxx.rit.edu 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #7: Wed Feb 3 18:40:17 EST 2010 root@xxx.rit.edu:/usr/obj/usr/src/sys/xxx i386 >Description: -Fix problem reported in ports/139064 [1] -Fix rc script: radiusd_flags did not work properly unless you specified -d. [1] Reported By: Craig Leres <leres@ee.lbl.gov> >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN /root/freeradius/files/radiusd.sh.in /usr/ports/net/freeradius/files/radiusd.sh.in --- /root/freeradius/files/radiusd.sh.in 2010-03-21 17:31:46.000000000 -0400 +++ /usr/ports/net/freeradius/files/radiusd.sh.in 2010-03-21 17:32:25.000000000 -0400 @@ -22,11 +22,13 @@ # 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="&" + run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003230233.o2N2X1oc028851>