SPECS: exiscan.spec - kill PreReq, use %service
darekr
darekr at pld-linux.org
Mon Jul 2 00:22:35 CEST 2007
Author: darekr Date: Sun Jul 1 22:22:35 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- kill PreReq, use %service
---- Files affected:
SPECS:
exiscan.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/exiscan.spec
diff -u SPECS/exiscan.spec:1.17 SPECS/exiscan.spec:1.18
--- SPECS/exiscan.spec:1.17 Mon Feb 12 22:23:55 2007
+++ SPECS/exiscan.spec Mon Jul 2 00:22:30 2007
@@ -16,7 +16,8 @@
BuildRequires: perl-MailTools
BuildRequires: perl-Unix-Syslog
BuildRequires: rpm-perlprov
-PreReq: rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: rc-scripts
Requires(post,preun): /sbin/chkconfig
Requires: exim >= 3.00
# http://www.pldaniels.com/ripmime/
@@ -64,17 +65,13 @@
%post
/sbin/chkconfig --add %{name}
-if [ -f %{_var}/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service exiscan restart
%preun
if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} stop 1>&2
+ %service exiscan stop
+ /sbin/chkconfig --del %{name}
fi
-/sbin/chkconfig --del %{name}
%files
%defattr(644,root,root,755)
@@ -90,6 +87,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2007/07/01 22:22:30 darekr
+- kill PreReq, use %service
+
Revision 1.17 2007/02/12 21:23:55 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/exiscan.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list