SPECS: shout.spec - kill PreReq, use %service
darekr
darekr at pld-linux.org
Sat Mar 31 22:36:21 CEST 2007
Author: darekr Date: Sat Mar 31 20:36:21 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- kill PreReq, use %service
---- Files affected:
SPECS:
shout.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: SPECS/shout.spec
diff -u SPECS/shout.spec:1.21 SPECS/shout.spec:1.22
--- SPECS/shout.spec:1.21 Mon Feb 12 23:09:15 2007
+++ SPECS/shout.spec Sat Mar 31 22:36:15 2007
@@ -14,7 +14,7 @@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: rpmbuild(macros) >= 1.202
-PreReq: rc-scripts
+Requires: rc-scripts
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
@@ -73,17 +73,11 @@
%post
/sbin/chkconfig --add shout
-if [ -f /var/lock/subsys/shout ]; then
- /etc/rc.d/init.d/shout restart >&2
-else
- echo "Run '/etc/rc.d/init.d/shout start' to start shout daemon." >&2
-fi
+%service shout restart
%preun
if [ "$1" = "0" ] ; then
- if [ -f /var/lock/subsys/shout ]; then
- /etc/rc.d/init.d/shout stop >&2
- fi
+ %service shout stop
/sbin/chkconfig --del shout >&2
fi
@@ -106,6 +100,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2007/03/31 20:36:15 darekr
+- kill PreReq, use %service
+
Revision 1.21 2007/02/12 22:09:15 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/shout.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list