>From 71520c691d0f20b2472b553a2adde80e71813756 Mon Sep 17 00:00:00 2001
From: Chris Moules <chris@gms.lu>
Date: Thu, 19 Feb 2009 15:38:43 +0000
Subject: [PATCH] Update debian patch for changes to radiusd.conf logic.

---
 debian/patches/01-radiusd-to-freeradius.dpatch |   38 ++++++++---------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/debian/patches/01-radiusd-to-freeradius.dpatch b/debian/patches/01-radiusd-to-freeradius.dpatch
index 42426b6..b4e526e 100755
--- a/debian/patches/01-radiusd-to-freeradius.dpatch
+++ b/debian/patches/01-radiusd-to-freeradius.dpatch
@@ -17,37 +17,25 @@
  SBINDIR		= ${sbindir}
  RADIR		= ${radacctdir}
  
---- old/raddb/radiusd.conf.in	(revision 1519)
-+++ new/raddb/radiusd.conf.in	(working copy)
-@@ -33,7 +33,7 @@
- 
- #  Location of config and logfiles.
- confdir = ${raddbdir}
--run_dir = ${localstatedir}/run/radiusd
-+run_dir = ${localstatedir}/run/freeradius
- 
- #
- #  The logging messages for the server are appended to the
-@@ -95,9 +95,9 @@
- #
- #  This file is written when ONLY running in daemon mode.
- #
--#  e.g.:  kill -HUP `cat /var/run/radiusd/radiusd.pid`
-+#  e.g.:  kill -HUP `cat /var/run/freeradius/freeradius.pid`
- #
--pidfile = ${run_dir}/${name}.pid
-+pidfile = ${run_dir}/freeradius.pid
+--- old/raddb/radiusd.conf.in   2009-02-19 15:25:59.723240012 +0000
++++ new/raddb/radiusd.conf.in   2009-02-19 15:32:18.215568132 +0000
+@@ -62,7 +62,7 @@
 
+ #
+ #  name of the running server.  See also the "-n" command-line option.
+-name = radiusd
++name = freeradius
 
- # user/group: The name (or #number) of the user/group to run radiusd as.
-@@ -121,8 +121,8 @@
- #  that the debugging mode server is running as a user that can read the
- #  shadow info, and the user listed below can not.
+ #  Location of config and logfiles.
+ confdir = ${raddbdir}
+@@ -164,8 +164,8 @@
+ #  It will join all groups where "user" is a member.  This can allow
+ #  for some finer-grained access controls.
  #
 -#user = radius
 -#group = radius
 +user = freerad
 +group = freerad
- 
+
  #  max_request_time: The maximum time (in seconds) to handle a request.
  #
-- 
1.5.6.5


