]> git.pld-linux.org Git - packages/freeradius.git/commitdiff
- Req user-radius
authorpascalek <pascalek@pld-linux.org>
Sat, 10 May 2003 09:53:45 +0000 (09:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freeradius.spec -> 1.20

freeradius.spec

index 4eb09ca8f795e2b689b1df0c418e84854e45331b..4e62b183556c8c2f5fed500e8e48bf6681c86c2a 100644 (file)
@@ -16,7 +16,8 @@ Source1:      %{name}.logrotate
 Source2:       %{name}.init
 Source3:       %{name}.pam
 URL:           http://www.freeradius.org/
-Prereq:                /sbin/chkconfig
+Requires(post,preun):  /sbin/chkconfig
+Requires(pre): user-radius
 Requires:      libtool
 BuildRequires: gdbm-devel
 BuildRequires: libltdl-devel
@@ -88,16 +89,6 @@ install %{SOURCE3}   $RPM_BUILD_ROOT/etc/pam.d/radius
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ -n "`id -u radius 2>/dev/null`" ]; then
-        if [ "`id -u radius`" != "29" ]; then
-                echo "Error: user radius doesn't have uid=29. Correct this before installing radius server." 1>&2
-                exit 1
-        fi
-else
-        /usr/sbin/useradd -u 29 -d %{_localstatedir} -s /bin/false -M -r -c "%{name}" -g nobody radius 1>&2
-fi
-        
 %post
 /sbin/chkconfig --add %{name}
 if [ -f /var/lock/subsys/%{name} ]; then
@@ -114,11 +105,6 @@ if [ "$1" = "0" ]; then
         /sbin/chkconfig --del %{name}
 fi
 
-%postun
-if [ "$1" = "0" ]; then
-        /usr/sbin/userdel %{name}
-fi
-
 %files
 %defattr(644,root,root,755)
 %doc doc/*
This page took 0.049116 seconds and 4 git commands to generate.