blob: 2aed6b56ca9980a30d6766121d24872980bd9a48 [file] [log] [blame]
Brad Bishop79641f22019-09-10 07:20:22 -04001SUMMARY = "Network monitoring tools"
2DESCRIPTION = "Utilities for the IP protocol, including traceroute6, \
3tracepath, tracepath6, ping, ping6 and arping."
4HOMEPAGE = "https://github.com/iputils/iputils"
5SECTION = "console/network"
6
7LICENSE = "BSD & GPLv2+"
8
9LIC_FILES_CHKSUM = "file://LICENSE;md5=55aa8c9fcad0691cef0ecd420361e390"
10
11DEPENDS = "gnutls"
12
Andrew Geissler82c905d2020-04-13 13:39:40 -050013SRC_URI = "git://github.com/iputils/iputils \
14 file://0001-ninfod-change-variable-name-to-avoid-colliding-with-.patch \
15 file://0001-ninfod-fix-systemd-Documentation-url-error.patch \
16 file://0001-rarpd-rdisc-Drop-PrivateUsers.patch \
17 "
Brad Bishop79641f22019-09-10 07:20:22 -040018SRCREV = "13e00847176aa23683d68fce1d17ffb523510946"
19
20S = "${WORKDIR}/git"
21
22UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)"
23
Brad Bishop1d80a2e2019-11-15 16:35:03 -050024# Fixed in 2000-10-10, but the versioning of iputils
25# breaks the version order.
26CVE_CHECK_WHITELIST += "CVE-2000-1213 CVE-2000-1214"
27
Andrew Geissler82c905d2020-04-13 13:39:40 -050028PACKAGECONFIG ??= "libcap libgcrypt rarpd \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ninfod traceroute6', '', d)} \
30 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
Brad Bishop79641f22019-09-10 07:20:22 -040031PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false, libcap"
32PACKAGECONFIG[libgcrypt] = "-DUSE_CRYPTO=gcrypt, -DUSE_CRYPTO=none, libgcrypt"
33PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
34PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
Andrew Geissler82c905d2020-04-13 13:39:40 -050035PACKAGECONFIG[ninfod] = "-DBUILD_NINFOD=true,-DBUILD_NINFOD=false,"
Brad Bishop79641f22019-09-10 07:20:22 -040036PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
Andrew Geissler82c905d2020-04-13 13:39:40 -050037PACKAGECONFIG[systemd] = "-Dsystemdunitdir=${systemd_unitdir}/system,,systemd"
Brad Bishop79641f22019-09-10 07:20:22 -040038PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false,"
39PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
40
Andrew Geissler82c905d2020-04-13 13:39:40 -050041inherit meson systemd update-alternatives
Brad Bishop79641f22019-09-10 07:20:22 -040042
Andrew Geissler82c905d2020-04-13 13:39:40 -050043# Have to disable setcap/suid as its not deterministic
44EXTRA_OEMESON += "--prefix=${root_prefix}/ -DNO_SETCAP_OR_SUID=true"
Brad Bishop79641f22019-09-10 07:20:22 -040045
46ALTERNATIVE_PRIORITY = "100"
47
48ALTERNATIVE_${PN}-ping = "ping"
49ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
50
Andrew Geissler82c905d2020-04-13 13:39:40 -050051SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-clockdiff ${PN}-tftpd ${PN}-rdisc \
52 ${@bb.utils.contains('PACKAGECONFIG', 'rarpd', '${PN}-rarpd', '', d)} \
53 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-traceroute6 ${PN}-ninfod', '', d)}"
Brad Bishop79641f22019-09-10 07:20:22 -040054PACKAGES += "${SPLITPKGS}"
55
56ALLOW_EMPTY_${PN} = "1"
Brad Bishop79641f22019-09-10 07:20:22 -040057RDEPENDS_${PN} += "${SPLITPKGS}"
58
59FILES_${PN} = ""
60FILES_${PN}-ping = "${base_bindir}/ping.${BPN}"
61FILES_${PN}-arping = "${base_bindir}/arping"
62FILES_${PN}-tracepath = "${base_bindir}/tracepath"
63FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6"
64FILES_${PN}-clockdiff = "${base_bindir}/clockdiff"
65FILES_${PN}-tftpd = "${base_bindir}/tftpd"
Andrew Geissler82c905d2020-04-13 13:39:40 -050066FILES_${PN}-rarpd = "${base_sbindir}/rarpd ${systemd_unitdir}/system/rarpd@.service"
Brad Bishop79641f22019-09-10 07:20:22 -040067FILES_${PN}-rdisc = "${base_sbindir}/rdisc"
68FILES_${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -050069
70SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-ninfod', '', d)} \
71 ${PN}-rdisc"
72SYSTEMD_SERVICE_${PN}-ninfod = "ninfod.service"
73SYSTEMD_SERVICE_${PN}-rdisc = "rdisc.service"