]> git.pld-linux.org Git - packages/freeradius.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:44 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    freeradius.spec -> 1.4

freeradius.spec

index e7cecaf397265460bb7c5d1fcf064b875afd4b26..ca3368cc6965578a87d69fa83782b080a2199b9f 100644 (file)
@@ -93,15 +93,11 @@ install radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
 install radiusd-pam       $RPM_BUILD_ROOT/etc/pam.d/radius
 cd ..
 
+%post
+NAME=radiusd.init; %chkconfig_add
+
 %preun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del radiusd.init
-fi
-
-%postin
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --add radiusd.init
-fi
+NAME=radiusd.init; %chkconfig_del
 
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
This page took 0.068547 seconds and 4 git commands to generate.