blob: 3f9e9917f0b9ee7dcc3a09067861caa24a5e4603 [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
13SRC_URI = "git://github.com/iputils/iputils"
14SRCREV = "13e00847176aa23683d68fce1d17ffb523510946"
15
16S = "${WORKDIR}/git"
17
18UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)"
19
Brad Bishop1d80a2e2019-11-15 16:35:03 -050020# Fixed in 2000-10-10, but the versioning of iputils
21# breaks the version order.
22CVE_CHECK_WHITELIST += "CVE-2000-1213 CVE-2000-1214"
23
Brad Bishop79641f22019-09-10 07:20:22 -040024PACKAGECONFIG ??= "libcap libgcrypt rarpd traceroute6"
25PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false, libcap"
26PACKAGECONFIG[libgcrypt] = "-DUSE_CRYPTO=gcrypt, -DUSE_CRYPTO=none, libgcrypt"
27PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
28PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
29PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
30PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false,"
31PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
32
33inherit meson update-alternatives
34
35EXTRA_OEMESON += "--prefix=${root_prefix}/"
36
37ALTERNATIVE_PRIORITY = "100"
38
39ALTERNATIVE_${PN}-ping = "ping"
40ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
41
42SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff ${PN}-tftpd ${PN}-rarpd ${PN}-rdisc ${PN}-ninfod"
43PACKAGES += "${SPLITPKGS}"
44
45ALLOW_EMPTY_${PN} = "1"
46ALLOW_EMPTY_${PN}-rarpd = "1"
47ALLOW_EMPTY_${PN}-traceroute6 = "1"
48RDEPENDS_${PN} += "${SPLITPKGS}"
49
50FILES_${PN} = ""
51FILES_${PN}-ping = "${base_bindir}/ping.${BPN}"
52FILES_${PN}-arping = "${base_bindir}/arping"
53FILES_${PN}-tracepath = "${base_bindir}/tracepath"
54FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6"
55FILES_${PN}-clockdiff = "${base_bindir}/clockdiff"
56FILES_${PN}-tftpd = "${base_bindir}/tftpd"
57FILES_${PN}-rarpd = "${base_sbindir}/rarpd"
58FILES_${PN}-rdisc = "${base_sbindir}/rdisc"
59FILES_${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh"