SPECS: yate.spec - use %service
darekr
darekr at pld-linux.org
Tue May 2 22:02:40 CEST 2006
Author: darekr Date: Tue May 2 20:02:40 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
yate.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/yate.spec
diff -u SPECS/yate.spec:1.5 SPECS/yate.spec:1.6
--- SPECS/yate.spec:1.5 Mon May 16 19:15:22 2005
+++ SPECS/yate.spec Tue May 2 22:02:35 2006
@@ -1,7 +1,6 @@
# $Revision$, $Date$
# TODO:
# - subpackages for qt client (and maybe gtk)
-
Summary: Yet Another Telephony Engine
Summary(pl): Yet Another Telephony Engine - jeszcze jeden silnik do telefonii
Name: yate
@@ -25,7 +24,7 @@
BuildRequires: qt-devel
BuildRequires: sed >= 4.0
BuildRequires: spandsp-devel
-PreReq: rc-scripts
+Requires: rc-scripts
Requires(post,preun): /sbin/chkonfig
Requires(post): /sbin/ldconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -86,17 +85,11 @@
%post
/sbin/ldconfig
/sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} restart 1>&2
-else
- echo "Type \"/etc/rc.d/init.d/%{name} start\" to start %{name} server" 1>&2
-fi
+%service %{name} restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} stop >&2
- fi
+ %service %{name} stop
/sbin/chkconfig --del %{name}
fi
@@ -133,6 +126,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2006/05/02 20:02:35 darekr
+- use %service
+
Revision 1.5 2005/05/16 17:15:22 megabajt
- BR: sed >= 4.0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/yate.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list