Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -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://ping.c;beginline=1;endline=35;md5=f9ceb201733e9a6cf8f00766dd278d82 \ |
| 10 | file://tracepath.c;beginline=1;endline=10;md5=0ecea2bf60bff2f3d840096d87647f3d \ |
| 11 | file://arping.c;beginline=1;endline=11;md5=fe84301b5c2655c950f8b92a057fafa6 \ |
| 12 | file://tftpd.c;beginline=1;endline=32;md5=28834bf8a91a5b8a92755dbee709ef96 " |
| 13 | |
| 14 | DEPENDS = "gnutls libcap libgcrypt" |
| 15 | |
| 16 | SRC_URI = "git://github.com/iputils/iputils \ |
| 17 | file://0001-Fix-build-on-MUSL.patch \ |
| 18 | " |
| 19 | S = "${WORKDIR}/git" |
| 20 | SRCREV = "bffc0e957b98d626ab4cea218c89251201425442" |
| 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,libidn" |
| 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 | install -m 0755 -d ${D}${base_bindir} |
| 35 | # SUID root programs |
| 36 | install -m 4555 ping ${D}${base_bindir}/ping |
| 37 | install -m 4555 traceroute6 ${D}${base_bindir}/ |
| 38 | install -m 4555 clockdiff ${D}${base_bindir}/ |
| 39 | # Other programgs |
| 40 | for i in arping tracepath; do |
| 41 | install -m 0755 $i ${D}${base_bindir}/ |
| 42 | done |
| 43 | } |
| 44 | |
| 45 | inherit update-alternatives |
| 46 | |
| 47 | ALTERNATIVE_PRIORITY = "100" |
| 48 | |
| 49 | ALTERNATIVE_${PN}-ping = "ping" |
| 50 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" |
| 51 | |
| 52 | PACKAGES += "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff" |
| 53 | |
| 54 | ALLOW_EMPTY_${PN} = "1" |
| 55 | RDEPENDS_${PN} += "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff" |
| 56 | |
| 57 | FILES_${PN} = "" |
| 58 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" |
| 59 | FILES_${PN}-arping = "${base_bindir}/arping" |
| 60 | FILES_${PN}-tracepath = "${base_bindir}/tracepath" |
| 61 | FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6" |
| 62 | FILES_${PN}-clockdiff = "${base_bindir}/clockdiff" |