Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132643 Details for
Bug 194794
net-dialup/freeradius-1.1.7 - check-radiusd-config fix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated version of the script that gets installed to /usr/sbin/check-radiusd-config as described in the bug
freeradius-1.1.7-check-radiusd-config-gentoo.patch (text/plain), 1.78 KB, created by
Matt Courtney
on 2007-10-05 11:37:56 UTC
(
hide
)
Description:
Updated version of the script that gets installed to /usr/sbin/check-radiusd-config as described in the bug
Filename:
MIME Type:
Creator:
Matt Courtney
Created:
2007-10-05 11:37:56 UTC
Size:
1.78 KB
patch
obsolete
>--- freeradius-1.1.7.orig/scripts/check-radiusd-config.in 2001-03-13 05:36:17.000000000 +1300 >+++ freeradius-1.1.7/scripts/check-radiusd-config.in 2007-10-05 16:29:27.000000000 +1300 >@@ -13,6 +13,16 @@ > # AUTHOR: Alan DeKok <aland@ox.org> > # Wed Apr 12 15:21:51 EDT 2000 > # >+# Used the "port" configuration item in radiusd.conf rather than radiusd's >+# "-p" option, which is no longer supported as of freeradius-1.0.0. >+# Without apologies, this script requires ksh and perl. It is a hack on >+# a hack, and not worth more effort since a proper configuration file >+# checking option for radiusd (such as "-C") would probably be the best >+# solution. >+# - Dave Plonka <plonka AT doit DOT wisc DOT edu>, Feb 1, 2005 >+# >+# Edited Dave Ploka's modifcations to work with bash rather than ksh >+# - Matt Courtney <matt AT matt DOT net DOT nz>, Oct 5, 2007 > > prefix=@prefix@ > exec_prefix=@exec_prefix@ >@@ -35,7 +45,26 @@ > # Note that you might have to add a '-d raddb' to the command line > # options, if your database is somewhere other than /etc/raddb > # >-$sbindir/radiusd -X -p 32768 > startup.log 2>&1 & >+ >+TMPCONFIG=/tmp/$(basename "$0")."$$" >+ >+trap 'rm -rf "${TMPCONFIG}"; exit' EXIT >+trap 'rm -rf "${TMPCONFIG}"; exit 1' TERM INT HUP KILL >+ >+# >+# Duplicate raddbdir to a temporary directory >+# >+if ! `mkdir "${TMPCONFIG}" && cp -rp "${raddbdir}" "${TMPCONFIG}" && cd "${TMPCONFIG}"`; then >+ exit 1 >+fi >+ >+# >+# Since radiusd's "-p" option is no longer supported as of freeradius-1.0.0, >+# edit lines that look like "port = n" to test radiusd on port 32768 instead: >+# >+perl -pi -e 's/^(port\s*=\s*)\d+/${1}32768/' "${TMPCONFIG}/$(basename ${raddbdir})/radiusd.conf" >+ >+$sbindir/radiusd -X -d "${TMPCONFIG}/$(basename ${raddbdir})/" > startup.log 2>&1 & > > # > # Remember what it's process ID was.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194794
: 132643 |
132645
|
132646
|
132685