]> git.pld-linux.org Git - packages/ftpproxy.git/commitdiff
- unified rc-inetd usage (via %service), adapterized
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Mar 2006 01:24:26 +0000 (01:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ftpproxy.spec -> 1.16

ftpproxy.spec

index c5973b898d30761def4552948fcbb6f6246d185e..9bace330c6f29e052e3cc385a8869a87bc51c508 100644 (file)
@@ -8,11 +8,12 @@ Group:                Applications/Networking
 Source0:       http://ftp.daemons.de/download/%{name}-%{version}.tgz
 # Source0-md5: c2068bc452e1d7554d3bda08030aa433
 Source1:       %{name}.inetd
-Requires:      rc-inetd >= 0.8.1
 URL:           http://ftp.daemons.de/
 BuildRequires: ctags
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      rc-inetd >= 0.8.1
 Conflicts:     proxytools
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 ftp.proxy is a proxy server for a subset of the file transfer protocol
@@ -48,15 +49,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpproxy
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
-fi
+%service -q rc-inetd reload
 
 %postun
-if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload
+if [ "$1" = "0" ]; then
+       %service -q rc-inetd reload
 fi
 
 %files
This page took 4.217702 seconds and 4 git commands to generate.