Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 1 | SUMMARY = "Network monitoring tools" |
| 2 | DESCRIPTION = "Utilities for the IP protocol, including traceroute6, \ |
| 3 | tracepath, tracepath6, ping, ping6 and arping." |
| 4 | HOMEPAGE = "https://github.com/iputils/iputils" |
| 5 | SECTION = "console/network" |
| 6 | |
| 7 | LICENSE = "BSD & GPLv2+" |
| 8 | |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=55aa8c9fcad0691cef0ecd420361e390" |
| 10 | |
| 11 | DEPENDS = "gnutls" |
| 12 | |
| 13 | SRC_URI = "git://github.com/iputils/iputils" |
| 14 | SRCREV = "13e00847176aa23683d68fce1d17ffb523510946" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)" |
| 19 | |
| 20 | PACKAGECONFIG ??= "libcap libgcrypt rarpd traceroute6" |
| 21 | PACKAGECONFIG[libcap] = "-DUSE_CAP=true, -DUSE_CAP=false, libcap" |
| 22 | PACKAGECONFIG[libgcrypt] = "-DUSE_CRYPTO=gcrypt, -DUSE_CRYPTO=none, libgcrypt" |
| 23 | PACKAGECONFIG[libidn] = "-DUSE_IDN=true, -DUSE_IDN=false, libidn2" |
| 24 | PACKAGECONFIG[gettext] = "-DUSE_GETTEXT=true, -DUSE_GETTEXT=false, gettext" |
| 25 | PACKAGECONFIG[rarpd] = "-DBUILD_RARPD=true,-DBUILD_RARPD=false," |
| 26 | PACKAGECONFIG[traceroute6] = "-DBUILD_TRACEROUTE6=true,-DBUILD_TRACEROUTE6=false," |
| 27 | PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -DBUILD_MANS=true,-DBUILD_HTML_MANS=false -DBUILD_MANS=false, libxslt" |
| 28 | |
| 29 | inherit meson update-alternatives |
| 30 | |
| 31 | EXTRA_OEMESON += "--prefix=${root_prefix}/" |
| 32 | |
| 33 | ALTERNATIVE_PRIORITY = "100" |
| 34 | |
| 35 | ALTERNATIVE_${PN}-ping = "ping" |
| 36 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" |
| 37 | |
| 38 | SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff ${PN}-tftpd ${PN}-rarpd ${PN}-rdisc ${PN}-ninfod" |
| 39 | PACKAGES += "${SPLITPKGS}" |
| 40 | |
| 41 | ALLOW_EMPTY_${PN} = "1" |
| 42 | ALLOW_EMPTY_${PN}-rarpd = "1" |
| 43 | ALLOW_EMPTY_${PN}-traceroute6 = "1" |
| 44 | RDEPENDS_${PN} += "${SPLITPKGS}" |
| 45 | |
| 46 | FILES_${PN} = "" |
| 47 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" |
| 48 | FILES_${PN}-arping = "${base_bindir}/arping" |
| 49 | FILES_${PN}-tracepath = "${base_bindir}/tracepath" |
| 50 | FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6" |
| 51 | FILES_${PN}-clockdiff = "${base_bindir}/clockdiff" |
| 52 | FILES_${PN}-tftpd = "${base_bindir}/tftpd" |
| 53 | FILES_${PN}-rarpd = "${base_sbindir}/rarpd" |
| 54 | FILES_${PN}-rdisc = "${base_sbindir}/rdisc" |
| 55 | FILES_${PN}-ninfod = "${base_sbindir}/ninfod ${sysconfdir}/init.d/ninfod.sh" |