]> git.pld-linux.org Git - packages/vtun.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Mar 2006 23:14:32 +0000 (23:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    vtun.spec -> 1.66

vtun.spec

index 9044af40133ce40e8a47b57b813b6e2afff0cf8c..3d5d522064897688af8f3952a0412570f8f3e1b2 100644 (file)
--- a/vtun.spec
+++ b/vtun.spec
@@ -10,9 +10,8 @@ Release:      2
 Epoch:         2
 License:       GPL
 Group:         Networking/Daemons
-Vendor:                Maxim Krasnyansky <max_mk@yahoo.com>
-# Source0-md5: 309534fd03c5d13a19c43916f61f4bbf
 Source0:       http://dl.sourceforge.net/vtun/%{name}-%{version}.tar.gz
+# Source0-md5: 309534fd03c5d13a19c43916f61f4bbf
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Patch0:                %{name}-makefile.patch
@@ -29,6 +28,7 @@ BuildRequires:        bison
 BuildRequires: flex
 BuildRequires: lzo-devel >= 2.0.1
 %{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
@@ -93,17 +93,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add vtund
-if [ -f /var/lock/subsys/vtund ]; then
-       /etc/rc.d/init.d/vtund restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/vtund start\" to start vtun daemons."
-fi
+%service vtund restart "vtun daemons"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/vtund ]; then
-               /etc/rc.d/init.d/vtund stop >&2
-       fi
+       %service vtund stop
        /sbin/chkconfig --del vtund
 fi
 
This page took 0.028294 seconds and 4 git commands to generate.