]> git.pld-linux.org Git - packages/noip.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Mar 2006 15:14:39 +0000 (15:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- no globs for suid programs

Changed files:
    noip.spec -> 1.22

noip.spec

index a6cae80f5fab7c1b0a890aa51a58fc1862ba8bee..8248abad73c8f2f92681521e23140d0cc324bc46 100644 (file)
--- a/noip.spec
+++ b/noip.spec
@@ -12,6 +12,7 @@ Source1:      %{name}.init
 Patch0:                %{name}-Makefile.patch
 Patch1:                %{name}-config_location.patch
 URL:           http://www.no-ip.com/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -66,17 +67,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add noip
-if [ -f /var/lock/subsys/noip ]; then
-        /etc/rc.d/init.d/noip restart >&2
-else
-        echo "Run \"/etc/rc.d/init.d/noip start\" to start noip client daemon."
-fi
+%service noip restart "noip client daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/noip ]; then
-               /etc/rc.d/init.d/noip stop >&2
-       fi
+       %service noip stop
        /sbin/chkconfig --del noip
 fi
 
@@ -84,5 +79,5 @@ fi
 %defattr(644,root,root,755)
 %doc README.FIRST
 %attr(754,root,root) /etc/rc.d/init.d/noip
-%attr(4750,root,adm) %{_sbindir}/*
+%attr(4750,root,adm) %{_sbindir}/noip
 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
This page took 0.13465 seconds and 4 git commands to generate.