Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | DESCRIPTION = "This package includes some useful diagnostics tools for \ |
| 2 | IPv6 networks, including ndisc6, rdisc6, tcptraceroute6 and traceroute6." |
| 3 | SECTION = "net" |
| 4 | HOMEPAGE = "http://www.remlab.net/ndisc6/" |
| 5 | LICENSE = "GPL-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 7 | |
| 8 | PV = "1.0.4+git${SRCPV}" |
| 9 | SRCREV = "4c794b5512d23c649def1f94a684225dcbb6ac3e" |
| 10 | SRC_URI = "git://git.remlab.net/git/ndisc6.git;protocol=http \ |
| 11 | file://0001-replace-VLAIS-with-malloc-free-pair.patch \ |
| 12 | file://0002-Do-not-undef-_GNU_SOURCE.patch \ |
| 13 | file://0001-autogen-Do-not-symlink-gettext.h-from-build-host.patch \ |
| 14 | " |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | inherit autotools gettext |
| 19 | |
| 20 | EXTRA_OECONF += "PERL=${USRBINPATH}/perl" |
| 21 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | USE_NLS = "yes" |
| 23 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 24 | EXTRA_OECONF += "--disable-rpath" |
| 25 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | do_configure_prepend() { |
| 27 | cp ${STAGING_DATADIR_NATIVE}/gettext/gettext.h ${S}/include |
| 28 | ${S}/autogen.sh |
| 29 | } |
| 30 | |
| 31 | do_install_append () { |
| 32 | rm -rf ${D}${localstatedir} |
| 33 | # Enable SUID bit for applications that need it |
| 34 | chmod 4555 ${D}${bindir}/rltraceroute6 |
| 35 | chmod 4555 ${D}${bindir}/ndisc6 |
| 36 | chmod 4555 ${D}${bindir}/rdisc6 |
| 37 | } |
| 38 | ALLOW_EMPTY_${PN} = "1" |
| 39 | |
| 40 | # Split into seperate packages since we normal don't want them all |
| 41 | # The main package is left empty and therefore not created. |
| 42 | PACKAGES += "${PN}-ndisc6 ${PN}-tcpspray6 ${PN}-rdisc6 \ |
| 43 | ${PN}-tcptraceroute6 ${PN}-rltraceroute6 \ |
| 44 | ${PN}-tracert6 ${PN}-rdnssd ${PN}-misc" |
| 45 | FILES_${PN} = "" |
| 46 | FILES_${PN}-ndisc6 = "${bindir}/ndisc6" |
| 47 | FILES_${PN}-tcpspray6 = "${bindir}/tcpspray6" |
| 48 | FILES_${PN}-rdisc6 = "${bindir}/rdisc6" |
| 49 | FILES_${PN}-tcptraceroute6 = "${bindir}/tcptraceroute6" |
| 50 | FILES_${PN}-rltraceroute6 = "${bindir}/rltraceroute6" |
| 51 | FILES_${PN}-tracert6 = "${bindir}/tracert6" |
| 52 | FILES_${PN}-rdnssd = "${sbindir}/rdnssd ${sysconfdir}/rdnssd" |
| 53 | FILES_${PN}-misc = "${bindir}/dnssort ${bindir}/name2addr ${bindir}/tcpspray ${bindir}/addr2name" |
| 54 | |
| 55 | DESCRIPTION_${PN}-ndisc6 = "ICMPv6 Neighbor Discovery tool. \ |
| 56 | Performs IPv6 neighbor discovery in userland. Replaces arping from the \ |
| 57 | IPv4 world." |
| 58 | DESCRIPTION_${PN}-rdisc6 = "ICMPv6 Router Discovery tool. \ |
| 59 | Queries IPv6 routers on the network for advertised prefixes. Can be used \ |
| 60 | to detect rogue IPv6 routers, monitor legitimate IPv6 routers." |
| 61 | DESCRITPION_${PN}-tcpspray6 = "Performs bandwidth measurements of TCP \ |
| 62 | sessions between the local system and a remote echo server in either IPv6 \ |
| 63 | or IPv4." |
| 64 | |
| 65 | DESCRITPION_${PN}-rdnssd = "Daemon to autoconfigure the list of DNS \ |
| 66 | servers through slateless IPv6 autoconfiguration." |
| 67 | |
| 68 | # The tcptraceroute6 and tracert6 commands depend on rltraceroute6 to |
| 69 | # perform the actual trace operation. |
| 70 | RDEPENDS_${PN}-tcptraceroute6 = "${PN}-rltraceroute6" |
| 71 | RDEPENDS_${PN}-tracert6 = "${PN}-rltraceroute6" |
| 72 | RDEPENDS_${PN}-misc += "perl" |
| 73 | |