blob: 9123a40495d2b5be479a11b3cefb347e3e6837c3 [file] [log] [blame]
# This spec file is for _testing_.
%define ssdate 20121221
Summary: The ping program for checking to see if network hosts are alive.
Name: iputils
Version: s%{ssdate}
Release: 1local
License: GPLv2+
Group: System Environment/Daemons
Source0: iputils-s%{ssdate}.tar.bz2
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
#BuildPrereq: docbook-dtd31-sgml, perl
Requires: kernel >= 2.4.7
The iputils package contains ping, a basic networking tool. The ping
command sends a series of ICMP protocol ECHO_REQUEST packets to a
specified network host and can tell you if that machine is alive and
receiving network traffic.
%setup -q %{name}
make ninfod
make man
make html
rm -fr ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
install -c clockdiff ${RPM_BUILD_ROOT}%{_sbindir}/
install -cp arping ${RPM_BUILD_ROOT}%{_sbindir}/
install -cp ping ${RPM_BUILD_ROOT}%{_bindir}/
install -cp rdisc ${RPM_BUILD_ROOT}%{_sbindir}/
install -cp ping6 ${RPM_BUILD_ROOT}%{_bindir}/
install -cp tracepath ${RPM_BUILD_ROOT}%{_bindir}/
install -cp tracepath6 ${RPM_BUILD_ROOT}%{_bindir}/
install -cp ninfod/ninfod ${RPM_BUILD_ROOT}%{_sbindir}/
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
ln -sf ../bin/ping6 ${RPM_BUILD_ROOT}%{_sbindir}
ln -sf ../bin/tracepath ${RPM_BUILD_ROOT}%{_sbindir}
ln -sf ../bin/tracepath6 ${RPM_BUILD_ROOT}%{_sbindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
install -cp doc/clockdiff.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
install -cp doc/arping.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
install -cp doc/ping.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
install -cp doc/rdisc.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
install -cp doc/tracepath.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
install -cp doc/ninfod.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
ln -s ping.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/ping6.8.gz
ln -s tracepath.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/tracepath6.8.gz
iconv -f ISO88591 -t UTF8 RELNOTES -o RELNOTES.tmp
rm -rf ${RPM_BUILD_ROOT}
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/clockdiff
#%attr(4755,root,root) %{_sbindir}/clockdiff
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/arping
#%attr(4755,root,root) %{_sbindir}/arping
%attr(0755,root,root) %caps(cap_net_raw=ep cap_net_admin=ep) %{_bindir}/ping
#%attr(4755,root,root) %{_bindir}/ping
%attr(0755,root,root) %caps(cap_net_raw=ep cap_net_admin=ep) %{_bindir}/ping6
#%attr(4755,root,root) %{_bindir}/ping6
%attr(644,root,root) %{_mandir}/man8/*
* Fri Nov 30 2012 YOSHIFUJI Hideaki <>
Partically sync with current Fedora's specfile.
* Sat Feb 23 2001 Alexey Kuznetsov <>
Taken iputils rpm from ASPLinux-7.2 as pattern.