handle /var/run on tmpfs
OBS-URL: https://build.opensuse.org/package/show/network/freeradius-server?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
87aeb49470
commit
6ef329501c
30
freeradius-server-initscript-pidfile.patch
Normal file
30
freeradius-server-initscript-pidfile.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
Index: freeradius-server-2.1.8/suse/rcradiusd
|
||||
===================================================================
|
||||
--- freeradius-server-2.1.8.orig/suse/rcradiusd 2010-05-03 15:37:35.000000000 +0200
|
||||
+++ freeradius-server-2.1.8/suse/rcradiusd 2010-05-03 15:38:08.000000000 +0200
|
||||
@@ -31,6 +31,10 @@ rc_reset
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting RADIUS daemon "
|
||||
+ # /var/run might be on tmpfs, create runtime directory if needed
|
||||
+ if [ ! -d /var/run/radiusd ]; then
|
||||
+ install -d -m 0700 -g radiusd -o radiusd /var/run/radiusd
|
||||
+ fi
|
||||
startproc $RADIUSD_BIN >/dev/null
|
||||
rc_status -v
|
||||
;;
|
||||
Index: freeradius-server-2.1.8/suse/rcradius-relayd
|
||||
===================================================================
|
||||
--- freeradius-server-2.1.8.orig/suse/rcradius-relayd 2010-05-03 15:37:35.000000000 +0200
|
||||
+++ freeradius-server-2.1.8/suse/rcradius-relayd 2010-05-03 15:38:58.000000000 +0200
|
||||
@@ -31,6 +31,10 @@ rc_reset
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting RADIUS Relay daemon "
|
||||
+ # /var/run might be on tmpfs, create runtime directory if needed
|
||||
+ if [ ! -d /var/run/radiusd ]; then
|
||||
+ install -d -m 0700 -g radiusd -o radiusd /var/run/radiusd
|
||||
+ fi
|
||||
startproc $RADIUSD_BIN -s -n radrelay >/dev/null
|
||||
rc_status -v
|
||||
;;
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 3 13:50:08 UTC 2010 - puzel@novell.com
|
||||
|
||||
- add freeradius-server-initscript-pidfile.patch
|
||||
- handle /var/run on tmpfs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 21 08:43:58 UTC 2010 - puzel@novell.com
|
||||
|
||||
|
@@ -36,6 +36,7 @@ Patch4: %{name}-2.1.6-edir-64bit.patch
|
||||
Patch5: %{name}-2.1.6-overflow.patch
|
||||
Patch6: freeradius-server-sha1-default.patch
|
||||
Patch7: freeradius-server-fix-cert-bootstrap.patch
|
||||
Patch8: freeradius-server-initscript-pidfile.patch
|
||||
PreReq: perl openssl pwdutils coreutils
|
||||
PreReq: %insserv_prereq %fillup_prereq
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -235,6 +236,7 @@ Authors:
|
||||
%patch5
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%build
|
||||
# This package failed when testing with -Wl,-as-needed being default.
|
||||
@@ -402,7 +404,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/policy.conf
|
||||
%{_sysconfdir}/raddb/policy.txt
|
||||
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/templates.conf
|
||||
%attr(700,radiusd,radiusd) %dir %{_localstatedir}/run/radiusd/
|
||||
%attr(700,radiusd,radiusd) %dir %ghost %{_localstatedir}/run/radiusd/
|
||||
# binaries
|
||||
%defattr(-,root,root)
|
||||
%{_sbindir}/checkrad
|
||||
|
Reference in New Issue
Block a user