1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Tools
11 url = http://www.skbuff.net/iputils
13 summary = Network monitoring tools including ping.
16 The iputils package contains basic utilities for monitoring a network,
17 including ping. The ping command sends a series of ICMP protocol
18 ECHO_REQUEST packets to a specified network host to discover whether
19 the target machine is alive and receiving network traffic.
22 source_dl = http://www.skbuff.net/iputils/
23 sources = %{thisapp}.tar.bz2
25 patches = %{thisapp}-addrcache.patch
26 patches += %{thisapp}-arping-infiniband.patch
27 patches += %{thisapp}-arping_timeout.patch
28 patches += %{thisapp}-countermeasures.patch
29 patches += %{thisapp}-idn.patch
30 patches += %{thisapp}-open-max.patch
31 patches += %{thisapp}-ping-subint.patch
32 patches += %{thisapp}-ping_cleanup.patch
33 patches += %{thisapp}-rh.patch
34 patches += %{thisapp}-traffic_class.patch
35 patches += %{thisapp}-warnings.patch
36 patches += %{thisapp}-output.patch
45 # Generate manpages with docbook.
51 mkdir -pv %{BUILDROOT}{%{bindir},%{sbindir}}
52 mkdir -pv %{BUILDROOT}%{mandir}/man8
54 install -cp clockdiff %{BUILDROOT}%{sbindir}
55 install -cp arping %{BUILDROOT}%{sbindir}
56 install -cp ping %{BUILDROOT}%{bindir}
57 install -cp ping6 %{BUILDROOT}%{bindir}
58 install -cp rdisc %{BUILDROOT}%{sbindir}
59 install -cp tracepath %{BUILDROOT}%{bindir}
60 install -cp tracepath6 %{BUILDROOT}%{bindir}
62 install -cp doc/clockdiff.8 %{BUILDROOT}%{mandir}/man8/
63 install -cp doc/arping.8 %{BUILDROOT}%{mandir}/man8/
64 install -cp doc/ping.8 %{BUILDROOT}%{mandir}/man8/
65 install -cp doc/rdisc.8 %{BUILDROOT}%{mandir}/man8/
66 install -cp doc/tracepath.8 %{BUILDROOT}%{mandir}/man8/
68 ln -svf ../bin/ping6 %{BUILDROOT}%{sbindir}
69 ln -svf ../bin/tracepath %{BUILDROOT}%{sbindir}
70 ln -svf ../bin/tracepath6 %{BUILDROOT}%{sbindir}
72 ln -s ping.8 %{BUILDROOT}%{mandir}/man8/ping6.8
73 ln -s tracepath.8 %{BUILDROOT}%{mandir}/man8/tracepath6.8
75 setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping
76 setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping6
92 package %{name}-debuginfo