summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2006-03-14 01:24:26 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitfdecde62509b0b26de90df7936a48fd6036d5521 (patch)
tree27706be515d56a43d31d1e06967fb2a9f295fe06
parent20f0d7a3cef1b5b23b8c480dfdd4d4d652809116 (diff)
downloadrshproxy-fdecde62509b0b26de90df7936a48fd6036d5521.zip
rshproxy-fdecde62509b0b26de90df7936a48fd6036d5521.tar.gz
- unified rc-inetd usage (via %service), adapterized
Changed files: rshproxy.spec -> 1.15
-rw-r--r--rshproxy.spec15
1 files changed, 6 insertions, 9 deletions
diff --git a/rshproxy.spec b/rshproxy.spec
index 6a82b9b..da2a15a 100644
--- a/rshproxy.spec
+++ b/rshproxy.spec
@@ -9,10 +9,11 @@ Source0: http://www.quietsche-entchen.de/download/%{name}-%{version}.tar.gz
# Source0-md5: eb147a7adf67185e3e7098f62ad1ddd0
Source1: %{name}.inetd
Patch0: %{name}-crypt.patch
-Prereq: rc-inetd >= 0.8.1
URL: http://www.quietsche-entchen.de/software/rsh.proxy.html
-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
rsh.proxy is a proxy server for remote shell protocol.
@@ -44,15 +45,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rshproxy
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