]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - iputils/iputils.nm
glibc: Update to 2.19.
[people/ms/ipfire-3.x.git] / iputils / iputils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = iputils
7 version = s20071127
8 release = 4
9
10 groups = Networking/Tools
11 url = http://www.skbuff.net/iputils
12 license = BSD
13 summary = Network monitoring tools including ping.
14
15 description
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.
20 end
21
22 source_dl = http://www.skbuff.net/iputils/
23 sources = %{thisapp}.tar.bz2
24
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
37
38 build
39 requires
40 docbook-utils
41 libcap-devel
42 libidn-devel
43 end
44
45 # Generate manpages with docbook.
46 build_cmds
47 make -C doc man
48 end
49
50 install
51 mkdir -pv %{BUILDROOT}{%{bindir},%{sbindir}}
52 mkdir -pv %{BUILDROOT}%{mandir}/man8
53
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}
61
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/
67
68 ln -svf ../bin/ping6 %{BUILDROOT}%{sbindir}
69 ln -svf ../bin/tracepath %{BUILDROOT}%{sbindir}
70 ln -svf ../bin/tracepath6 %{BUILDROOT}%{sbindir}
71
72 ln -s ping.8 %{BUILDROOT}%{mandir}/man8/ping6.8
73 ln -s tracepath.8 %{BUILDROOT}%{mandir}/man8/tracepath6.8
74
75 setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping
76 setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping6
77 end
78 end
79
80 packages
81 package %{name}
82 groups += Base
83
84 provides
85 /bin/ping
86 /bin/ping6
87 /sbin/arping
88 /sbin/rdisc
89 end
90 end
91
92 package %{name}-debuginfo
93 template DEBUGINFO
94 end
95 end