]> git.ipfire.org Git - ipfire-3.x.git/blob - iputils/iputils.nm
Move all packages to root.
[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 = 1
9
10 groups = Base 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 =
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 libcap-devel
41 libidn-devel
42 end
43
44 install
45 mkdir -pv %{BUILDROOT}/{bin,sbin} %{BUILDROOT}/usr/sbin
46
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/
54
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/
59
60 setcap cap_net_admin=ep %{BUILDROOT}/bin/ping
61 setcap cap_net_admin=ep %{BUILDROOT}/bin/ping6
62 end
63 end
64
65 packages
66 package %{name}
67 end
68 end