]> git.ipfire.org Git - ipfire-3.x.git/blob - iputils/iputils.nm
5bcab41e933a81d4b1ee9eba689728ca4590b29a
[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 = 20221126
8 release = 1
9
10 groups = Networking/Tools
11 url = https://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 = https://github.com/iputils/iputils/archive/refs/tags/%{version}.tar.gz#/
23
24 build
25 requires
26 gettext-devel
27 iproute2
28 libcap-devel
29 libidn2-devel
30 libxslt
31 meson
32 ninja
33 openssl-devel
34 docbook-xsl <= 1.79.2
35 end
36
37 build
38 %{meson}
39 %{meson_build}
40 end
41
42 install
43 %{meson_install}
44
45 # Create ping6 as a symlink to ping
46 ln -svf ping %{BUILDROOT}%{bindir}/ping6
47 ln -svf ping.8 %{BUILDROOT}%{mandir}/man8/ping6.8
48
49 ln -svf tracepath %{BUILDROOT}%{bindir}/tracepath6
50 ln -svf tracepath.8 %{BUILDROOT}%{mandir}/man8/tracepath6.8
51
52 # This currently does not work in pakfire
53 #setcap cap_net_admin=ep %{BUILDROOT}%{bindir}/ping
54 #setcap cap_net_raw=ep %{BUILDROOT}%{bindir}/arping
55 end
56 end
57
58 packages
59 package %{name}
60 provides
61 /bin/arping
62 /bin/ping
63 /bin/ping6
64 end
65 end
66
67 package %{name}-debuginfo
68 template DEBUGINFO
69 end
70 end