blob: 0125739b0341057b922cb080778cfdb164c7e680 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -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://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
14DEPENDS = "gnutls libcap libgcrypt"
15
16SRC_URI = "git://github.com/iputils/iputils \
17 file://0001-Fix-build-on-MUSL.patch \
18 "
19S = "${WORKDIR}/git"
20SRCREV = "bffc0e957b98d626ab4cea218c89251201425442"
21
22UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>s\d+)"
23
24EXTRA_OEMAKE = "-e MAKEFLAGS="
25
26PACKAGECONFIG ?= ""
27PACKAGECONFIG[libidn] = "USE_IDN=yes,USE_IDN=no,libidn"
28
29do_compile () {
30 oe_runmake 'CC=${CC} -D_GNU_SOURCE' VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" ${PACKAGECONFIG_CONFARGS} all
31}
32
33do_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
45inherit update-alternatives
46
47ALTERNATIVE_PRIORITY = "100"
48
49ALTERNATIVE_${PN}-ping = "ping"
50ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
51
52PACKAGES += "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff"
53
54ALLOW_EMPTY_${PN} = "1"
55RDEPENDS_${PN} += "${PN}-ping ${PN}-arping ${PN}-tracepath ${PN}-traceroute6 ${PN}-clockdiff"
56
57FILES_${PN} = ""
58FILES_${PN}-ping = "${base_bindir}/ping.${BPN}"
59FILES_${PN}-arping = "${base_bindir}/arping"
60FILES_${PN}-tracepath = "${base_bindir}/tracepath"
61FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6"
62FILES_${PN}-clockdiff = "${base_bindir}/clockdiff"