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

pdnsd.spec

index dc97f348ea2e86372be559363dbed2c1be40643b..80e1d4207dbc7174497d3b389f2a00c7f19059f8 100644 (file)
@@ -53,20 +53,10 @@ gzip -9nf AUTHORS ChangeLog NEWS README TODO \
 rm -rf $RPM_BUILD_ROOT
                                                                                 
 %post
-/sbin/chkconfig --add pdnsd
-if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
-       /etc/rc.d/init.d/pdnsd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
-fi
+%chkconfig_add
 
 %preun
-if [ "$1" = "0" ]; then
-       if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
-               /etc/rc.d/init.d/pdnsd stop
-       fi
-       /sbin/chkconfig --del pdnsd
-fi
+%chkconfig_del
 
 %files
 %defattr(644,root,root,755)
This page took 0.029543 seconds and 4 git commands to generate.