- rdisc init script added (#151614)
This commit is contained in:
parent
e911e71ad3
commit
4bb7f2ab0b
@ -1 +1,2 @@
|
||||
iputils-ss020927.tar.gz
|
||||
rdisc.initd
|
||||
|
26
iputils.spec
26
iputils.spec
@ -1,12 +1,13 @@
|
||||
Summary: Network monitoring tools including ping.
|
||||
Name: iputils
|
||||
Version: 20020927
|
||||
Release: 20
|
||||
Release: 21
|
||||
License: BSD
|
||||
Group: System Environment/Daemons
|
||||
Source0: http://www.tux.org/pub/net/ip-routing/%{name}-ss020927.tar.gz
|
||||
Source1: ifenslave.c
|
||||
Source2: README.bonding
|
||||
Source3: rdisc.initd
|
||||
Patch0: iputils-20020927-rh.patch
|
||||
Patch1: iputils-20020124-ping_sparcfix.patch
|
||||
Patch2: iputils-20020124-rdisc-server.patch
|
||||
@ -96,6 +97,25 @@ install -c doc/ping.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
||||
install -c doc/rdisc.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
||||
install -c doc/tracepath.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
||||
|
||||
#install service
|
||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d
|
||||
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d/rdisc
|
||||
|
||||
%post
|
||||
/sbin/chkconfig --add rdisc
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
service rdisc stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del rdisc
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ "$1" -ge "1" ]; then
|
||||
service rdisc restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
|
||||
@ -123,8 +143,12 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_sbindir}/tracepath6
|
||||
%{_sbindir}/traceroute6
|
||||
%{_mandir}/man8/*
|
||||
%config(noreplace) %{_sysconfdir}/rc.d/init.d/rdisc
|
||||
|
||||
%changelog
|
||||
* Tue Apr 05 2005 Radek Vokal <rvokal@redhat.com> 20020927-21
|
||||
- rdisc init script added (#151614)
|
||||
|
||||
* Fri Mar 04 2005 Radek Vokal <rvokal@redhat.com> 20020927-20
|
||||
- arping fix for infiniband (#150156)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user