Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [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=b792e38abdc59f766a3153908f23e766 \ |
| 10 | file://LICENSE.BSD3;md5=0f00d99239d922ffd13cabef83b33444 \ |
| 11 | file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 12 | |
| 13 | DEPENDS = "gnutls libcap libgcrypt" |
| 14 | |
| 15 | SRC_URI = "git://github.com/iputils/iputils \ |
| 16 | file://ai_canonidn.patch \ |
| 17 | file://install.patch" |
| 18 | SRCREV = "f6aac8dbe3f8c45c53424854a3312bdd8cdd58d3" |
| 19 | |
| 20 | S = "${WORKDIR}/git" |
| 21 | |
| 22 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)" |
| 23 | |
| 24 | EXTRA_OEMAKE = "-e MAKEFLAGS=" |
| 25 | |
| 26 | PACKAGECONFIG ??= "" |
| 27 | PACKAGECONFIG[libidn] = "USE_IDN=yes,USE_IDN=no,libidn2" |
| 28 | |
| 29 | do_compile () { |
| 30 | oe_runmake 'CC=${CC} -D_GNU_SOURCE' VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" ${PACKAGECONFIG_CONFARGS} all |
| 31 | } |
| 32 | |
| 33 | do_install() { |
| 34 | oe_runmake DESTDIR=${D} bindir=${base_bindir} install |
| 35 | for b in ping traceroute6 clockdiff; do |
| 36 | chmod u+s ${D}${base_bindir}/$b |
| 37 | done |
| 38 | } |
| 39 | |
| 40 | inherit update-alternatives |
| 41 | |
| 42 | ALTERNATIVE_PRIORITY = "100" |
| 43 | |
| 44 | ALTERNATIVE_${PN}-ping = "ping" |
| 45 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" |
| 46 | |
| 47 | SPLITPKGS = "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff ${PN}-tftpd ${PN}-rarpd ${PN}-rdisc" |
| 48 | PACKAGES += "${SPLITPKGS}" |
| 49 | |
| 50 | ALLOW_EMPTY_${PN} = "1" |
| 51 | RDEPENDS_${PN} += "${SPLITPKGS}" |
| 52 | |
| 53 | FILES_${PN} = "" |
| 54 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" |
| 55 | FILES_${PN}-arping = "${base_bindir}/arping" |
| 56 | FILES_${PN}-tracepath = "${base_bindir}/tracepath" |
| 57 | FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6" |
| 58 | FILES_${PN}-clockdiff = "${base_bindir}/clockdiff" |
| 59 | FILES_${PN}-tftpd = "${base_bindir}/tftpd" |
| 60 | FILES_${PN}-rarpd = "${base_bindir}/rarpd" |
| 61 | FILES_${PN}-rdisc = "${base_bindir}/rdisc" |