]>
Commit | Line | Data |
---|---|---|
9bb99a82 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
9bb99a82 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = iputils |
80f79383 SS |
7 | version = s20140519 |
8 | release = 1 | |
9bb99a82 | 9 | |
a10a16b0 | 10 | groups = Networking/Tools |
802ea3af MT |
11 | url = http://www.skbuff.net/iputils |
12 | license = BSD | |
13 | summary = Network monitoring tools including ping. | |
9bb99a82 | 14 | |
802ea3af | 15 | description |
28e9d98b SS |
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 | |
9bb99a82 | 19 | the target machine is alive and receiving network traffic. |
802ea3af MT |
20 | end |
21 | ||
80f79383 | 22 | source_dl = https://github.com/iputils/iputils/archive/%{version}.tar.gz#/ |
9bb99a82 | 23 | |
802ea3af MT |
24 | build |
25 | requires | |
28e9d98b | 26 | docbook-utils |
802ea3af MT |
27 | libcap-devel |
28 | libidn-devel | |
80f79383 | 29 | openssl-devel |
802ea3af | 30 | end |
9bb99a82 | 31 | |
28e9d98b SS |
32 | # Generate manpages with docbook. |
33 | build_cmds | |
34 | make -C doc man | |
35 | end | |
36 | ||
802ea3af | 37 | install |
2c9c6fd6 MT |
38 | mkdir -pv %{BUILDROOT}{%{bindir},%{sbindir}} |
39 | mkdir -pv %{BUILDROOT}%{mandir}/man8 | |
40 | ||
41 | install -cp clockdiff %{BUILDROOT}%{sbindir} | |
42 | install -cp arping %{BUILDROOT}%{sbindir} | |
43 | install -cp ping %{BUILDROOT}%{bindir} | |
44 | install -cp ping6 %{BUILDROOT}%{bindir} | |
2c9c6fd6 MT |
45 | install -cp tracepath %{BUILDROOT}%{bindir} |
46 | install -cp tracepath6 %{BUILDROOT}%{bindir} | |
47 | ||
48 | install -cp doc/clockdiff.8 %{BUILDROOT}%{mandir}/man8/ | |
49 | install -cp doc/arping.8 %{BUILDROOT}%{mandir}/man8/ | |
50 | install -cp doc/ping.8 %{BUILDROOT}%{mandir}/man8/ | |
51 | install -cp doc/rdisc.8 %{BUILDROOT}%{mandir}/man8/ | |
52 | install -cp doc/tracepath.8 %{BUILDROOT}%{mandir}/man8/ | |
53 | ||
54 | ln -svf ../bin/ping6 %{BUILDROOT}%{sbindir} | |
55 | ln -svf ../bin/tracepath %{BUILDROOT}%{sbindir} | |
56 | ln -svf ../bin/tracepath6 %{BUILDROOT}%{sbindir} | |
57 | ||
58 | ln -s ping.8 %{BUILDROOT}%{mandir}/man8/ping6.8 | |
59 | ln -s tracepath.8 %{BUILDROOT}%{mandir}/man8/tracepath6.8 | |
60 | ||
61 | setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping | |
62 | setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping6 | |
802ea3af MT |
63 | end |
64 | end | |
9bb99a82 | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
a10a16b0 | 68 | groups += Base |
2c9c6fd6 MT |
69 | |
70 | provides | |
71 | /bin/ping | |
72 | /bin/ping6 | |
73 | /sbin/arping | |
2c9c6fd6 | 74 | end |
802ea3af | 75 | end |
1f9bc2f0 MT |
76 | |
77 | package %{name}-debuginfo | |
78 | template DEBUGINFO | |
79 | end | |
802ea3af | 80 | end |