blob: 28dd194a12b3a47592e0d818ef0a004a5019fb1d [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 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://0001-rarpd-rdisc-Drop-PrivateUsers.patch \
15 "
Andrew Geisslerc9f78652020-09-18 14:11:35 -050016SRCREV = "23c3782ae0c7f9c6ae59dbed8ad9204f8758542b"
Brad Bishop79641f22019-09-10 07:20:22 -040017
18S = "${WORKDIR}/git"
19
20UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)"
21
Brad Bishop1d80a2e2019-11-15 16:35:03 -050022# Fixed in 2000-10-10, but the versioning of iputils
23# breaks the version order.
24CVE_CHECK_WHITELIST += "CVE-2000-1213 CVE-2000-1214"
25
Andrew Geisslerc9f78652020-09-18 14:11:35 -050026PACKAGECONFIG ??= "libcap rarpd \
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ninfod traceroute6', '', d)} \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
Brad Bishop79641f22019-09-10 07:20:22 -040029PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false, libcap"
Brad Bishop79641f22019-09-10 07:20:22 -040030PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
31PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
Andrew Geissler82c905d2020-04-13 13:39:40 -050032PACKAGECONFIG[ninfod] = "-DBUILD_NINFOD=true,-DBUILD_NINFOD=false,"
Brad Bishop79641f22019-09-10 07:20:22 -040033PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034PACKAGECONFIG[systemd] = "-Dsystemdunitdir=${systemd_unitdir}/system,,systemd"
Andrew Geisslerc9f78652020-09-18 14:11:35 -050035PACKAGECONFIG[tftpd] = "-DBUILD_TFTPD=true, -DBUILD_TFTPD=false,"
Brad Bishop79641f22019-09-10 07:20:22 -040036PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false,"
37PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
38
Andrew Geissler82c905d2020-04-13 13:39:40 -050039inherit meson systemd update-alternatives
Brad Bishop79641f22019-09-10 07:20:22 -040040
Andrew Geissler82c905d2020-04-13 13:39:40 -050041# Have to disable setcap/suid as its not deterministic
42EXTRA_OEMESON += "--prefix=${root_prefix}/ -DNO_SETCAP_OR_SUID=true"
Brad Bishop79641f22019-09-10 07:20:22 -040043
44ALTERNATIVE_PRIORITY = "100"
45
46ALTERNATIVE_${PN}-ping = "ping"
47ALTERNATIVE_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
55ALLOW_EMPTY_${PN} = "1"
Brad Bishop79641f22019-09-10 07:20:22 -040056RDEPENDS_${PN} += "${SPLITPKGS}"
57
58FILES_${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"
Andrew Geisslerc9f78652020-09-18 14:11:35 -050064FILES_${PN}-tftpd = "${base_bindir}/tftpd ${sysconfdir}/xinetd.d/tftp"
Andrew Geissler82c905d2020-04-13 13:39:40 -050065FILES_${PN}-rarpd = "${base_sbindir}/rarpd ${systemd_unitdir}/system/rarpd@.service"
Brad Bishop79641f22019-09-10 07:20:22 -040066FILES_${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"
71SYSTEMD_SERVICE_${PN}-ninfod = "ninfod.service"
72SYSTEMD_SERVICE_${PN}-rdisc = "rdisc.service"