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