Author: dzeus                        Date: Thu Dec 14 11:22:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.96, use %service

---- Files affected:
SPECS:
   stun.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/stun.spec
diff -u SPECS/stun.spec:1.7 SPECS/stun.spec:1.8
--- SPECS/stun.spec:1.7 Sat May 27 09:45:14 2006
+++ SPECS/stun.spec     Thu Dec 14 12:22:51 2006
@@ -2,18 +2,19 @@
 Summary:       Simple Traversal of UDP through NATs
 Summary(pl):   STUN - Proste Przepuszczanie UDP przez NAT-a
 Name:          stun
-Version:       0.94
+Version:       0.96
 Release:       1
 Group:         Networking/Daemons
 License:       Vovida Software License
-Source0:       http://dl.sourceforge.net/stun/%{name}d_%{version}_Oct29.tgz
-# Source0-md5: 5c5b1b206c9f9d8fdbb826a83da1fb0e
+Source0:       
http://download.sourceforge.net/stun/%{name}d_%{version}_Aug13.tgz
+# Source0-md5: 3273abb1a6f299f4e611b658304faefa
 Source1:       %{name}.sysconfig
 Source2:       %{name}.init
 Source3:       %{name}.logrotate
 URL:           http://www.vovida.org/applications/downloads/stun/
 BuildRequires: libstdc++-devel
 BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -79,17 +80,11 @@
 
 %post server
 /sbin/chkconfig --add stund
-if [ -f /var/lock/subsys/stund ]; then
-        /etc/rc.d/init.d/stund restart >&2
-else
-        echo "Run \"/etc/rc.d/init.d/stund start\" to start STUN server 
daemon."
-fi
+%service stund restart "STUN server daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/stund ]; then
-                /etc/rc.d/init.d/stund stop >&2
-        fi
+       %service stund stop
         /sbin/chkconfig --del stund
 fi
 
@@ -113,6 +108,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2006/12/14 11:22:51  dzeus
+- up to 0.96, use %service
+
 Revision 1.7  2006/05/27 07:45:14  pascalek
 - BR: openssl-devel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/stun.spec?r1=1.7&r2=1.8&f=u

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

Reply via email to