1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Base 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.
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 mkdir -pv %{BUILDROOT}/{bin,sbin} %{BUILDROOT}/usr/sbin
47 install -cp clockdiff %{BUILDROOT}/usr/sbin/
48 install -cp arping %{BUILDROOT}/sbin/
49 install -cp ping %{BUILDROOT}/bin/
50 install -cp ping6 %{BUILDROOT}/bin/
51 install -cp rdisc %{BUILDROOT}/sbin/
52 install -cp tracepath %{BUILDROOT}/bin/
53 install -cp tracepath6 %{BUILDROOT}/bin/
55 ln -svf ../../sbin/arping %{BUILDROOT}/usr/sbin/arping
56 ln -svf ../../bin/ping6 %{BUILDROOT}/usr/sbin/
57 ln -svf ../../bin/tracepath %{BUILDROOT}/usr/sbin/
58 ln -svf ../../bin/tracepath6 %{BUILDROOT}/usr/sbin/
60 setcap cap_net_admin=ep %{BUILDROOT}/bin/ping
61 setcap cap_net_admin=ep %{BUILDROOT}/bin/ping6