diff --git a/.cvsignore b/.cvsignore index b8a3f7b..c54dfc5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ iputils-ss020927.tar.gz +rdisc.initd diff --git a/iputils.spec b/iputils.spec index 1996799..0134ad0 100644 --- a/iputils.spec +++ b/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 20020927-21 +- rdisc init script added (#151614) + * Fri Mar 04 2005 Radek Vokal 20020927-20 - arping fix for infiniband (#150156) diff --git a/sources b/sources index 48b91a2..ed63d2d 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ b5493f7a2997130a4f86c486c9993b86 iputils-ss020927.tar.gz +e7747e71819d69dfc599e2630df47b36 rdisc.initd