blob: cd5fe9bd3ea2944d8e04994e7f069fd628887194 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Network monitoring tools"
2DESCRIPTION = "Utilities for the IP protocol, including \
3tracepath, tracepath6, ping, ping6 and arping."
4HOMEPAGE = "https://github.com/iputils/iputils"
5SECTION = "console/network"
6
7LICENSE = "BSD-3-Clause & GPL-2.0-or-later"
8
9LIC_FILES_CHKSUM = "file://LICENSE;md5=627cc07ec86a45951d43e30658bbd819"
10
11DEPENDS = "gnutls"
12
13SRC_URI = "git://github.com/iputils/iputils;branch=master;protocol=https"
14SRCREV = "5ffabc4190cab975c7332645259e286a032e183b"
15
16S = "${WORKDIR}/git"
17
18UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>20\d+)"
19
20# Fixed in 2000-10-10, but the versioning of iputils
21# breaks the version order.
22CVE_CHECK_IGNORE += "CVE-2000-1213 CVE-2000-1214"
23
24PACKAGECONFIG ??= "libcap"
25PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false -DNO_SETCAP_OR_SUID=true, libcap libcap-native"
26PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
27PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
28PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
29
30inherit meson update-alternatives pkgconfig
31
32EXTRA_OEMESON += "--prefix=${root_prefix}/ -DSKIP_TESTS=true"
33
34ALTERNATIVE_PRIORITY = "100"
35
36ALTERNATIVE:${PN}-ping = "ping"
37ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
38
39SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-clockdiff"
40PACKAGES += "${SPLITPKGS}"
41
42ALLOW_EMPTY:${PN} = "1"
43RDEPENDS:${PN} += "${SPLITPKGS}"
44
45FILES:${PN} = ""
46FILES:${PN}-ping = "${base_bindir}/ping.${BPN}"
47FILES:${PN}-arping = "${base_bindir}/arping"
48FILES:${PN}-tracepath = "${base_bindir}/tracepath"
49FILES:${PN}-clockdiff = "${base_bindir}/clockdiff"