refresh quilt patches
[freeradius.git] / debian / patches / radiusd-to-freeradius.diff
1 Index: freeradius-server/Make.inc.in
2 ===================================================================
3 --- freeradius-server.orig/Make.inc.in
4 +++ freeradius-server/Make.inc.in
5 @@ -95,7 +95,7 @@ LDFLAGS               = $(OPENSSL_LDFLAGS) $(TALLOC_L
6  
7  LOGDIR         = ${logdir}
8  RADDBDIR       = ${raddbdir}
9 -RUNDIR         = ${localstatedir}/run/radiusd
10 +RUNDIR         = ${localstatedir}/run/freeradius
11  SBINDIR                = ${sbindir}
12  RADIR          = ${radacctdir}
13  LIBRADIUS      = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la $(TALLOC_LIBS)
14 Index: freeradius-server/raddb/radiusd.conf.in
15 ===================================================================
16 --- freeradius-server.orig/raddb/radiusd.conf.in
17 +++ freeradius-server/raddb/radiusd.conf.in
18 @@ -61,7 +61,7 @@ radacctdir = @radacctdir@
19  
20  #
21  #  name of the running server.  See also the "-n" command-line option.
22 -name = radiusd
23 +name = freeradius
24  
25  #  Location of config and logfiles.
26  confdir = ${raddbdir}
27 @@ -436,8 +436,8 @@ security {
28         #  member.  This can allow for some finer-grained access
29         #  controls.
30         #
31 -#      user = radius
32 -#      group = radius
33 +       user = freerad
34 +       group = freerad
35  
36         #  Core dumps are a bad thing.  This should only be set to
37         #  'yes' if you're debugging a problem with the server.
38 Index: freeradius-server/scripts/monit/freeradius.monitrc
39 ===================================================================
40 --- freeradius-server.orig/scripts/monit/freeradius.monitrc
41 +++ freeradius-server/scripts/monit/freeradius.monitrc
42 @@ -8,9 +8,9 @@
43  #  Totalmem limit should be lowered to 200.0 if none of the 
44  #  interpreted language modules or rlm_cache are being used.
45  #
46 -check process radiusd with pidfile /var/run/radiusd/radiusd.pid
47 -   start program = "/etc/init.d/radiusd start"
48 -   stop program = "/etc/init.d/radiusd stop"
49 +check process freeradius with pidfile /var/run/freeradius/freeradius.pid
50 +   start program = "/etc/init.d/freeradius start"
51 +   stop program = "/etc/init.d/freeradius stop"
52     if failed host 127.0.0.1 port 1812 type udp protocol radius secret testing123 then alert
53     if failed host 127.0.0.1 port 1813 type udp protocol radius secret testing123 then alert
54     if cpu > 95% for 2 cycles then alert