1 SECTION
= "console/network"
2 DESCRIPTION
= "Utilities for the IP protocol, including traceroute6, \
3 tracepath, tracepath6, ping, ping6 and arping."
4 SECTION
= "console/network"
6 DEPENDS
= "docbook-utils-native sgmlspl-native"
10 DEFAULT_PREFERENCE_angstrom
= "2"
12 SRC_URI
= "http://ftp.de.debian.org/debian/pool/main/i/iputils/iputils_${PV}.orig.tar.gz \
13 file://debian/fix-dead-host-ping-stats.diff \
14 file://debian/add-icmp-return-codes.diff \
15 file://debian/use_gethostbyname2.diff \
16 file://debian/fix-cmsghdr-offset-bug.diff \
17 file://debian/cleanup-docbook-formatting.diff \
18 file://debian/targets.diff \
19 file://debian/fix-tracepath-docs.diff \
20 file://debian/fix-arping-timeouts.diff \
23 S
= "${WORKDIR}/iputils_20071127.orig"
25 PACKAGES
+= "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"
27 ALLOW_EMPTY_$
{PN
} = "1"
28 RDEPENDS_
{PN
} += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"
31 FILES_$
{PN
}-ping
= "${base_bindir}/ping.${PN}"
32 FILES_$
{PN
}-ping6
= "${base_bindir}/ping6.${PN}"
33 FILES_$
{PN
}-arping
= "${bindir}/arping"
34 FILES_$
{PN
}-tracepath
= "${bindir}/tracepath"
35 FILES_$
{PN
}-tracepath6
= "${bindir}/tracepath6"
36 FILES_$
{PN
}-traceroute6
= "${bindir}/traceroute6"
37 FILES_$
{PN
}-doc
= "${mandir}/man8"
40 oe_runmake 'CC
=$
{CC
}' \
41 KERNEL_INCLUDE
="${STAGING_INCDIR}" \
42 LIBC_INCLUDE
="${STAGING_INCDIR}" all man
46 install
-m
0755 -d $
{D
}$
{base_bindir
} $
{D
}$
{bindir
} $
{D
}$
{mandir
}/man8
48 install
-m
4555 ping $
{D
}$
{base_bindir
}/ping.$
{PN
}
49 install
-m
4555 ping6 $
{D
}$
{base_bindir
}/ping6.$
{PN
}
50 install
-m
4555 traceroute6 $
{D
}$
{bindir
}/
52 for i in arping tracepath tracepath6
; do
53 install
-m
0755 $i $
{D
}$
{bindir
}/
55 # Manual pages
for things we build packages
for
56 for i in tracepath
.8 traceroute6.8 ping
.8 arping
.8; do
57 install
-m
0644 doc
/$i $
{D
}$
{mandir
}/man8
/ ||
true
61 # Busybox also provides ping
and ping6
, so use update
-alternatives
62 # Also fixup SUID bit
for applications that need it
63 pkg_postinst_$
{PN
}-ping
() {
64 chmod
4555 $
{base_bindir
}/ping.$
{PN
}
65 update
-alternatives
--install $
{base_bindir
}/ping ping ping.$
{PN
} 100
67 pkg_prerm_$
{PN
}-ping
() {
68 update
-alternatives
--remove ping ping.$
{PN
}
71 pkg_postinst_$
{PN
}-ping6
() {
72 chmod
4555 $
{base_bindir
}/ping6.$
{PN
}
73 update
-alternatives
--install $
{base_bindir
}/ping6 ping6 ping6.$
{PN
} 100
75 pkg_prerm_$
{PN
}-ping6
() {
76 update
-alternatives
--remove ping6 ping6.$
{PN
}
79 pkg_postinst_$
{PN
}-traceroute6
() {
80 chmod
4555 $
{bindir
}/traceroute6
83 SRC_URI
[md5sum
] = "a1d0aca33da380d6045c5c0e5002c09d"
84 SRC_URI
[sha256sum
] = "9e4ab143828fefb3b67ce2bc3ad63a91cacc45d97161822915778683fb80343b"