SPECS: nvtv.spec - use %service
darekr
darekr at pld-linux.org
Mon May 8 13:43:10 CEST 2006
Author: darekr Date: Mon May 8 11:43:10 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
nvtv.spec (1.22 -> 1.23)
---- Diffs:
================================================================
Index: SPECS/nvtv.spec
diff -u SPECS/nvtv.spec:1.22 SPECS/nvtv.spec:1.23
--- SPECS/nvtv.spec:1.22 Wed Feb 22 23:08:19 2006
+++ SPECS/nvtv.spec Mon May 8 13:43:05 2006
@@ -21,6 +21,7 @@
BuildRequires: libtool
BuildRequires: pciutils-devel
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: rc-scripts
Requires(post,preun): /sbin/chkconfig
# uses <sys/io.h> interface to setup some adapters
@@ -115,17 +116,11 @@
%post
/sbin/chkconfig --add nvtv
-if [ -f /var/lock/subsys/nvtv ]; then
- /etc/rc.d/init.d/nvtv restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/nvtv start\" to start NvTV daemon." >&2
-fi
+%service nvtv restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/nvtv ]; then
- /etc/rc.d/init.d/nvtv stop >&2
- fi
+ %service nvtv stop
/sbin/chkconfig --del nvtv
fi
@@ -164,6 +159,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2006/05/08 11:43:05 darekr
+- use %service
+
Revision 1.22 2006/02/22 22:08:19 freetz
- drop xrender-devel BR (already in dependency tree)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nvtv.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list