diff options
Diffstat (limited to 'meta/recipes-extended/iputils/iputils_s20121221.bb')
-rw-r--r-- | meta/recipes-extended/iputils/iputils_s20121221.bb | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/recipes-extended/iputils/iputils_s20121221.bb b/meta/recipes-extended/iputils/iputils_s20121221.bb new file mode 100644 index 0000000000..45108a4e48 --- /dev/null +++ b/meta/recipes-extended/iputils/iputils_s20121221.bb | |||
@@ -0,0 +1,70 @@ | |||
1 | SUMMARY = "Network monitoring tools" | ||
2 | DESCRIPTION = "Utilities for the IP protocol, including traceroute6, \ | ||
3 | tracepath, tracepath6, ping, ping6 and arping." | ||
4 | HOMEPAGE = "http://www.skbuff.net/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 docbook-utils-native sgmlspl-native libcap" | ||
15 | |||
16 | PR = "r0" | ||
17 | |||
18 | SRC_URI = "http://www.skbuff.net/iputils/${BPN}-${PV}.tar.bz2 \ | ||
19 | file://debian/use_gethostbyname2.diff \ | ||
20 | file://debian/targets.diff \ | ||
21 | file://nsgmls-path-fix.patch \ | ||
22 | file://fix-build-command-line-argument-with-gnutls.patch \ | ||
23 | " | ||
24 | |||
25 | SRC_URI[md5sum] = "6072aef64205720dd1893b375e184171" | ||
26 | SRC_URI[sha256sum] = "450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f" | ||
27 | |||
28 | do_compile () { | ||
29 | oe_runmake 'CC=${CC} -D_GNU_SOURCE' VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" all man | ||
30 | } | ||
31 | |||
32 | do_install () { | ||
33 | install -m 0755 -d ${D}${base_bindir} ${D}${mandir}/man8 | ||
34 | # SUID root programs | ||
35 | install -m 4555 ping ${D}${base_bindir}/ping | ||
36 | install -m 4555 ping6 ${D}${base_bindir}/ping6 | ||
37 | install -m 4555 traceroute6 ${D}${base_bindir}/ | ||
38 | # Other programgs | ||
39 | for i in arping tracepath tracepath6; do | ||
40 | install -m 0755 $i ${D}${base_bindir}/ | ||
41 | done | ||
42 | # Manual pages for things we build packages for | ||
43 | for i in tracepath.8 traceroute6.8 ping.8 arping.8; do | ||
44 | install -m 0644 doc/$i ${D}${mandir}/man8/ || true | ||
45 | done | ||
46 | } | ||
47 | |||
48 | inherit update-alternatives | ||
49 | |||
50 | ALTERNATIVE_PRIORITY = "100" | ||
51 | |||
52 | ALTERNATIVE_${PN}-ping = "ping" | ||
53 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" | ||
54 | |||
55 | ALTERNATIVE_${PN}-ping6 = "ping6" | ||
56 | ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6" | ||
57 | |||
58 | PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6" | ||
59 | |||
60 | ALLOW_EMPTY_${PN} = "1" | ||
61 | RDEPENDS_${PN} += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6" | ||
62 | |||
63 | FILES_${PN} = "" | ||
64 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" | ||
65 | FILES_${PN}-ping6 = "${base_bindir}/ping6.${BPN}" | ||
66 | FILES_${PN}-arping = "${base_bindir}/arping" | ||
67 | FILES_${PN}-tracepath = "${base_bindir}/tracepath" | ||
68 | FILES_${PN}-tracepath6 = "${base_bindir}/tracepath6" | ||
69 | FILES_${PN}-traceroute6 = "${base_bindir}/traceroute6" | ||
70 | FILES_${PN}-doc = "${mandir}/man8" | ||