diff options
author | Elan Ruusamäe | 2006-03-14 01:24:26 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 5a6306ff904b22606fc328545b1ffa8be78b9517 (patch) | |
tree | e3d9c5c607551686bc8e8a93882e040cf5fc8a7c | |
parent | f015f61fe0ecdc09159b4903bf16c68954165ad2 (diff) | |
download | cfingerd-5a6306ff904b22606fc328545b1ffa8be78b9517.zip cfingerd-5a6306ff904b22606fc328545b1ffa8be78b9517.tar.gz |
- unified rc-inetd usage (via %service), adapterized
Changed files:
cfingerd.spec -> 1.43
-rw-r--r-- | cfingerd.spec | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/cfingerd.spec b/cfingerd.spec index b7bccbb..8ff0e42 100644 --- a/cfingerd.spec +++ b/cfingerd.spec @@ -5,7 +5,6 @@ Version: 1.4.3 Release: 13 License: GPL Group: Networking/Daemons -Vendor: Martin Schulze <joey@infodrom.north.de> URL: http://www.infodrom.north.de/cfingerd/ Source0: http://www.infodrom.org/projects/cfingerd/download/%{name}-%{version}.tar.gz # Source0-md5: fe9365f811624248aa3df52c4a832fc7 @@ -16,16 +15,17 @@ Patch1: %{name}-config.patch Patch2: %{name}-security_format_bug.patch Patch3: %{name}-gpg.patch BuildRequires: perl-base +BuildRequires: rpmbuild(macros) >= 1.268 Requires: inetdaemon Requires: rc-inetd >= 0.8.1 Provides: fingerd -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Obsoletes: bsd-fingerd Obsoletes: cfingerd-nobody Obsoletes: cfingerd-noroot Obsoletes: efingerd Obsoletes: ffingerd Obsoletes: finger-server -Obsoletes: bsd-fingerd +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description CFINGERD is a free finger daemon replacement for standard finger @@ -68,15 +68,11 @@ install docs/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/ %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 [ -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 %clean |