blob: 3ddce0be54b08a90a9d67373afaf7de33485b083 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "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
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00007LICENSE = "BSD-3-Clause & GPL-2.0-or-later"
Andrew Geissler595f6302022-01-24 19:11:47 +00008
9LIC_FILES_CHKSUM = "file://LICENSE;md5=bb64c89bb0e23b72930d2380894c47a1"
10
11DEPENDS = "gnutls"
12
13SRC_URI = "git://github.com/iputils/iputils;branch=master;protocol=https \
14 file://0001-rarpd-rdisc-Drop-PrivateUsers.patch \
15 "
16SRCREV = "1d1e7c43210d8af316a41cb2c53d612a4c16f34d"
17
18S = "${WORKDIR}/git"
19
20UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>20\d+)"
21
22# Fixed in 2000-10-10, but the versioning of iputils
23# breaks the version order.
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000024CVE_CHECK_IGNORE += "CVE-2000-1213 CVE-2000-1214"
Andrew Geissler595f6302022-01-24 19:11:47 +000025
26PACKAGECONFIG ??= "libcap rarpd \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ninfod', '', d)} \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
29PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false -DNO_SETCAP_OR_SUID=true, libcap libcap-native"
30PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
31PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
32PACKAGECONFIG[ninfod] = "-DBUILD_NINFOD=true,-DBUILD_NINFOD=false,"
33PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
34PACKAGECONFIG[systemd] = "-Dsystemdunitdir=${systemd_system_unitdir},,systemd"
35PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
36
37inherit meson systemd update-alternatives pkgconfig
38
39EXTRA_OEMESON += "--prefix=${root_prefix}/ -DSKIP_TESTS=true"
40
41ALTERNATIVE_PRIORITY = "100"
42
43ALTERNATIVE:${PN}-ping = "ping"
44ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
45
46SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-clockdiff ${PN}-rdisc \
47 ${@bb.utils.contains('PACKAGECONFIG', 'rarpd', '${PN}-rarpd', '', d)} \
48 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-ninfod', '', d)}"
49PACKAGES += "${SPLITPKGS}"
50
51ALLOW_EMPTY:${PN} = "1"
52RDEPENDS:${PN} += "${SPLITPKGS}"
53
54FILES:${PN} = ""
55FILES:${PN}-ping = "${base_bindir}/ping.${BPN}"
56FILES:${PN}-arping = "${base_bindir}/arping"
57FILES:${PN}-tracepath = "${base_bindir}/tracepath"
58FILES:${PN}-clockdiff = "${base_bindir}/clockdiff"
59FILES:${PN}-rarpd = "${base_sbindir}/rarpd ${systemd_system_unitdir}/rarpd@.service"
60FILES:${PN}-rdisc = "${base_sbindir}/rdisc"
61FILES:${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh"
62
63SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-ninfod', '', d)} \
64 ${PN}-rdisc"
65SYSTEMD_SERVICE:${PN}-ninfod = "ninfod.service"
66SYSTEMD_SERVICE:${PN}-rdisc = "rdisc.service"