]>
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 |
fc7ba2cf | 7 | version = 20221126 |
6b93b933 | 8 | release = 2 |
9bb99a82 | 9 | |
a10a16b0 | 10 | groups = Networking/Tools |
fc7ba2cf | 11 | url = https://www.skbuff.net/iputils |
802ea3af MT |
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 | ||
fc7ba2cf | 22 | source_dl = https://github.com/iputils/iputils/archive/refs/tags/%{version}.tar.gz#/ |
9bb99a82 | 23 | |
802ea3af MT |
24 | build |
25 | requires | |
fc7ba2cf MT |
26 | gettext-devel |
27 | iproute2 | |
802ea3af | 28 | libcap-devel |
fc7ba2cf MT |
29 | libidn2-devel |
30 | libxslt | |
31 | meson | |
32 | ninja | |
80f79383 | 33 | openssl-devel |
fb37a3c2 | 34 | docbook-xsl <= 1.79.2 |
802ea3af | 35 | end |
9bb99a82 | 36 | |
fc7ba2cf MT |
37 | build |
38 | %{meson} | |
39 | %{meson_build} | |
28e9d98b SS |
40 | end |
41 | ||
802ea3af | 42 | install |
fc7ba2cf | 43 | %{meson_install} |
2c9c6fd6 | 44 | |
fc7ba2cf MT |
45 | # Create ping6 as a symlink to ping |
46 | ln -svf ping %{BUILDROOT}%{bindir}/ping6 | |
fb37a3c2 | 47 | ln -svf ping.8 %{BUILDROOT}%{mandir}/man8/ping6.8 |
2c9c6fd6 | 48 | |
fc7ba2cf | 49 | ln -svf tracepath %{BUILDROOT}%{bindir}/tracepath6 |
fb37a3c2 | 50 | ln -svf tracepath.8 %{BUILDROOT}%{mandir}/man8/tracepath6.8 |
2c9c6fd6 | 51 | |
6b93b933 SS |
52 | # Set capabilities |
53 | setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping | |
54 | setcap cap_net_raw=ep %{BUILDROOT}%{bindir}/arping | |
802ea3af MT |
55 | end |
56 | end | |
9bb99a82 | 57 | |
802ea3af MT |
58 | packages |
59 | package %{name} | |
2c9c6fd6 | 60 | provides |
fc7ba2cf | 61 | /bin/arping |
2c9c6fd6 MT |
62 | /bin/ping |
63 | /bin/ping6 | |
2c9c6fd6 | 64 | end |
802ea3af | 65 | end |
1f9bc2f0 MT |
66 | |
67 | package %{name}-debuginfo | |
68 | template DEBUGINFO | |
69 | end | |
802ea3af | 70 | end |