]> git.pld-linux.org Git - packages/bootparamd.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:42 +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:
    bootparamd.spec -> 1.18

bootparamd.spec

index ad39e9a8437823d18b86a8ac21bcfe480c3989f5..6a5bb8e01d4800b311e17d47ce3c91dcc3eca88f 100644 (file)
@@ -49,20 +49,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add bootparamd
-if [ -f /var/lock/subsys/rpc.bootparamd ]; then
-       /etc/rc.d/init.d/bootparamd restart 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
-fi
+DESC="rpc.bootparamd server"; %chkconfig_post
 
 %postun
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/rpc.bootparamd ]; then
-               /etc/rc.d/init.d/bootparamd stop 1>&2
-       fi
-       /sbin/chkconfig --del bootparamd
-fi
+%chkconfig_postun
 
 %files
 %defattr(644,root,root,755)
This page took 0.038034 seconds and 4 git commands to generate.