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