diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-09-06 20:57:58 -0700 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-09-12 10:55:09 -0400 |
| commit | a5a6d11d9e69a4e02984d5a87a35e71d3a6e9ffa (patch) | |
| tree | 9502964123332a4ada22edfa77db95dc2b62cd86 /meta-networking/recipes-support/ndisc6/ndisc6_git.bb | |
| parent | 30d389c2f11695686a72de4bb315b45eaa7564e8 (diff) | |
| download | meta-openembedded-a5a6d11d9e69a4e02984d5a87a35e71d3a6e9ffa.tar.gz | |
ndisc6: Fix build with clang and update to latest on git
Change recipe to git and http protocol
Pass PERL variable to configure
Add patches to fix VLAIS
Re-organize structure of recipe
Copy gettext.h from native sysroot instead of depending on build host
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/ndisc6/ndisc6_git.bb')
| -rw-r--r-- | meta-networking/recipes-support/ndisc6/ndisc6_git.bb | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6_git.bb b/meta-networking/recipes-support/ndisc6/ndisc6_git.bb new file mode 100644 index 0000000000..002303c96c --- /dev/null +++ b/meta-networking/recipes-support/ndisc6/ndisc6_git.bb | |||
| @@ -0,0 +1,79 @@ | |||
| 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 | |||
| 22 | LDFLAGS += "-fuse-ld=gold" | ||
| 23 | TOOLCHAIN = "gcc" | ||
| 24 | |||
| 25 | do_configure_prepend() { | ||
| 26 | cp ${STAGING_DATADIR_NATIVE}/gettext/gettext.h ${S}/include | ||
| 27 | ${S}/autogen.sh | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install_append () { | ||
| 31 | rm -rf ${D}${localstatedir} | ||
| 32 | # Enable SUID bit for applications that need it | ||
| 33 | chmod 4555 ${D}${bindir}/rltraceroute6 | ||
| 34 | chmod 4555 ${D}${bindir}/ndisc6 | ||
| 35 | chmod 4555 ${D}${bindir}/rdisc6 | ||
| 36 | } | ||
| 37 | ALLOW_EMPTY_${PN} = "1" | ||
| 38 | |||
| 39 | # Split into seperate packages since we normal don't want them all | ||
| 40 | # The main package is left empty and therefore not created. | ||
| 41 | PACKAGES += "${PN}-ndisc6 ${PN}-tcpspray6 ${PN}-rdisc6 \ | ||
| 42 | ${PN}-tcptraceroute6 ${PN}-rltraceroute6 \ | ||
| 43 | ${PN}-tracert6 ${PN}-rdnssd ${PN}-misc" | ||
| 44 | FILES_${PN} = "" | ||
| 45 | FILES_${PN}-ndisc6 = "${bindir}/ndisc6" | ||
| 46 | FILES_${PN}-tcpspray6 = "${bindir}/tcpspray6" | ||
| 47 | FILES_${PN}-rdisc6 = "${bindir}/rdisc6" | ||
| 48 | FILES_${PN}-tcptraceroute6 = "${bindir}/tcptraceroute6" | ||
| 49 | FILES_${PN}-rltraceroute6 = "${bindir}/rltraceroute6" | ||
| 50 | FILES_${PN}-tracert6 = "${bindir}/tracert6" | ||
| 51 | FILES_${PN}-rdnssd = "${sbindir}/rdnssd ${sysconfdir}/rdnssd" | ||
| 52 | FILES_${PN}-misc = "${bindir}/dnssort ${bindir}/name2addr ${bindir}/tcpspray ${bindir}/addr2name" | ||
| 53 | |||
| 54 | DESCRIPTION_${PN}-ndisc6 = "ICMPv6 Neighbor Discovery tool. \ | ||
| 55 | Performs IPv6 neighbor discovery in userland. Replaces arping from the \ | ||
| 56 | IPv4 world." | ||
| 57 | DESCRIPTION_${PN}-rdisc6 = "ICMPv6 Router Discovery tool. \ | ||
| 58 | Queries IPv6 routers on the network for advertised prefixes. Can be used \ | ||
| 59 | to detect rogue IPv6 routers, monitor legitimate IPv6 routers." | ||
| 60 | DESCRITPION_${PN}-tcpspray6 = "Performs bandwidth measurements of TCP \ | ||
| 61 | sessions between the local system and a remote echo server in either IPv6 \ | ||
| 62 | or IPv4." | ||
| 63 | |||
| 64 | DESCRITPION_${PN}-rdnssd = "Daemon to autoconfigure the list of DNS \ | ||
| 65 | servers through slateless IPv6 autoconfiguration." | ||
| 66 | |||
| 67 | # The tcptraceroute6 and tracert6 commands depend on rltraceroute6 to | ||
| 68 | # perform the actual trace operation. | ||
| 69 | RDEPENDS_${PN}-tcptraceroute6 = "${PN}-rltraceroute6" | ||
| 70 | RDEPENDS_${PN}-tracert6 = "${PN}-rltraceroute6" | ||
| 71 | RDEPENDS_${PN}-misc += "perl" | ||
| 72 | |||
| 73 | do_install_append () { | ||
| 74 | rm -rf ${D}${localstatedir} | ||
| 75 | # Enable SUID bit for applications that need it | ||
| 76 | chmod 4555 ${D}${bindir}/rltraceroute6 | ||
| 77 | chmod 4555 ${D}${bindir}/ndisc6 | ||
| 78 | chmod 4555 ${D}${bindir}/rdisc6 | ||
| 79 | } | ||
