blob: e1940b77b5a802d2b811879302eb40957e4865f9 [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
Andrew Geissler5199d832021-09-24 16:47:35 -05007LICENSE = "BSD-3-Clause & GPLv2+"
Brad Bishop79641f22019-09-10 07:20:22 -04008
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 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://0001-rarpd-rdisc-Drop-PrivateUsers.patch \
Patrick Williams213cb262021-08-07 19:21:33 -050015 file://0001-meson-Make-tests-optional.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050016 "
Patrick Williams213cb262021-08-07 19:21:33 -050017SRCREV = "71bb2a6c72e9f658e90ac618c73d873a76bbaa81"
Brad Bishop79641f22019-09-10 07:20:22 -040018
19S = "${WORKDIR}/git"
20
Andrew Geissler5f350902021-07-23 13:09:54 -040021UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>20\d+)"
Brad Bishop79641f22019-09-10 07:20:22 -040022
Brad Bishop1d80a2e2019-11-15 16:35:03 -050023# Fixed in 2000-10-10, but the versioning of iputils
24# breaks the version order.
25CVE_CHECK_WHITELIST += "CVE-2000-1213 CVE-2000-1214"
26
Andrew Geisslerc9f78652020-09-18 14:11:35 -050027PACKAGECONFIG ??= "libcap rarpd \
Andrew Geissler82c905d2020-04-13 13:39:40 -050028 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ninfod traceroute6', '', d)} \
29 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060030PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false -DNO_SETCAP_OR_SUID=true, libcap libcap-native"
Brad Bishop79641f22019-09-10 07:20:22 -040031PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
32PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033PACKAGECONFIG[ninfod] = "-DBUILD_NINFOD=true,-DBUILD_NINFOD=false,"
Brad Bishop79641f22019-09-10 07:20:22 -040034PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
Andrew Geissler5199d832021-09-24 16:47:35 -050035PACKAGECONFIG[systemd] = "-Dsystemdunitdir=${systemd_system_unitdir},,systemd"
Andrew Geisslerc9f78652020-09-18 14:11:35 -050036PACKAGECONFIG[tftpd] = "-DBUILD_TFTPD=true, -DBUILD_TFTPD=false,"
Brad Bishop79641f22019-09-10 07:20:22 -040037PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false,"
38PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
39
Andrew Geissler5199d832021-09-24 16:47:35 -050040inherit meson systemd update-alternatives pkgconfig
Brad Bishop79641f22019-09-10 07:20:22 -040041
Patrick Williams213cb262021-08-07 19:21:33 -050042EXTRA_OEMESON += "--prefix=${root_prefix}/ -DSKIP_TESTS=true"
Brad Bishop79641f22019-09-10 07:20:22 -040043
44ALTERNATIVE_PRIORITY = "100"
45
Patrick Williams213cb262021-08-07 19:21:33 -050046ALTERNATIVE:${PN}-ping = "ping"
Brad Bishop79641f22019-09-10 07:20:22 -040047ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
48
Andrew Geisslerc9f78652020-09-18 14:11:35 -050049SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-clockdiff ${PN}-rdisc \
Andrew Geissler82c905d2020-04-13 13:39:40 -050050 ${@bb.utils.contains('PACKAGECONFIG', 'rarpd', '${PN}-rarpd', '', d)} \
Andrew Geisslerc9f78652020-09-18 14:11:35 -050051 ${@bb.utils.contains('PACKAGECONFIG', 'tftpd', '${PN}-tftpd', '', d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050052 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-traceroute6 ${PN}-ninfod', '', d)}"
Brad Bishop79641f22019-09-10 07:20:22 -040053PACKAGES += "${SPLITPKGS}"
54
Patrick Williams213cb262021-08-07 19:21:33 -050055ALLOW_EMPTY:${PN} = "1"
56RDEPENDS:${PN} += "${SPLITPKGS}"
Brad Bishop79641f22019-09-10 07:20:22 -040057
Patrick Williams213cb262021-08-07 19:21:33 -050058FILES:${PN} = ""
59FILES:${PN}-ping = "${base_bindir}/ping.${BPN}"
60FILES:${PN}-arping = "${base_bindir}/arping"
61FILES:${PN}-tracepath = "${base_bindir}/tracepath"
62FILES:${PN}-traceroute6 = "${base_bindir}/traceroute6"
63FILES:${PN}-clockdiff = "${base_bindir}/clockdiff"
64FILES:${PN}-tftpd = "${base_bindir}/tftpd ${sysconfdir}/xinetd.d/tftp"
Andrew Geissler5199d832021-09-24 16:47:35 -050065FILES:${PN}-rarpd = "${base_sbindir}/rarpd ${systemd_system_unitdir}/rarpd@.service"
Patrick Williams213cb262021-08-07 19:21:33 -050066FILES:${PN}-rdisc = "${base_sbindir}/rdisc"
67FILES:${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh"
Andrew Geissler82c905d2020-04-13 13:39:40 -050068
69SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '${PN}-ninfod', '', d)} \
70 ${PN}-rdisc"
Patrick Williams213cb262021-08-07 19:21:33 -050071SYSTEMD_SERVICE:${PN}-ninfod = "ninfod.service"
72SYSTEMD_SERVICE:${PN}-rdisc = "rdisc.service"