Author: darekr                       Date: Tue Oct  2 15:32:34 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:


---- Files affected:
SPECS:
   snmptt.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/snmptt.spec
diff -u SPECS/snmptt.spec:1.16 SPECS/snmptt.spec:1.17
--- SPECS/snmptt.spec:1.16      Mon Feb 12 23:09:15 2007
+++ SPECS/snmptt.spec   Tue Oct  2 17:32:29 2007
@@ -8,13 +8,14 @@
 Summary(pl.UTF-8):     Program do obsługi pułapek SNMP do używania z 
NET-SNMP/UCD-SNMP
 Name:          snmptt
 Version:       1.0
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Networking
 Source0:       http://dl.sourceforge.net/snmptt/%{name}_%{version}.tgz
 # Source0-md5: ad93fc3d7b28eb59c153ce2761644838
 Source1:       %{name}.init
 URL:           http://www.snmptt.org/
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: rpm-perlprov
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -68,18 +69,12 @@
 
 %post init
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-       /etc/rc.d/init.d/%{name} restart
-else
-       echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} service."
-fi
+%service snmptt restart
 
 %preun init
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/%{name} ]; then
-               /etc/rc.d/init.d/%{name} stop
-       fi
-       /sbin/chkconfig --del
+       %service snmptt stop
+       /sbin/chkconfig --del snmptt
 fi
 
 %files
@@ -102,6 +97,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2007/10/02 15:32:29  darekr
+*** empty log message ***
+
 Revision 1.16  2007/02/12 22:09:15  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/snmptt.spec?r1=1.16&r2=1.17&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to