blob: d8f2470d0c5c487b115d299f1ae004f8859c1c4d [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
20PACKAGECONFIG ??= "libcap libgcrypt rarpd traceroute6"
21PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false, libcap"
22PACKAGECONFIG[libgcrypt] = "-DUSE_CRYPTO=gcrypt, -DUSE_CRYPTO=none, libgcrypt"
23PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2"
24PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext"
25PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false,"
26PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false,"
27PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt"
28
29inherit meson update-alternatives
30
31EXTRA_OEMESON += "--prefix=${root_prefix}/"
32
33ALTERNATIVE_PRIORITY = "100"
34
35ALTERNATIVE_${PN}-ping = "ping"
36ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
37
38SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff ${PN}-tftpd ${PN}-rarpd ${PN}-rdisc ${PN}-ninfod"
39PACKAGES += "${SPLITPKGS}"
40
41ALLOW_EMPTY_${PN} = "1"
42ALLOW_EMPTY_${PN}-rarpd = "1"
43ALLOW_EMPTY_${PN}-traceroute6 = "1"
44RDEPENDS_${PN} += "${SPLITPKGS}"
45
46FILES_${PN} = ""
47FILES_${PN}-ping = "${base_bindir}/ping.${BPN}"
48FILES_${PN}-arping = "${base_bindir}/arping"
49FILES_${PN}-tracepath = "${base_bindir}/tracepath"
50FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6"
51FILES_${PN}-clockdiff = "${base_bindir}/clockdiff"
52FILES_${PN}-tftpd = "${base_bindir}/tftpd"
53FILES_${PN}-rarpd = "${base_sbindir}/rarpd"
54FILES_${PN}-rdisc = "${base_sbindir}/rdisc"
55FILES_${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh"