# ChangeLog for net-libs/libpcap
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/ChangeLog,v 1.65 2007/04/16 07:56:02 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/ChangeLog,v 1.66 2007/04/19 20:45:33 cedk Exp $
+
+ 19 Apr 2007; Cedric Krier <cedk@gentoo.org> libpcap-0.9.5.ebuild:
+ Add cross compile test for bug #172210
16 Apr 2007; Markus Rothe <corsair@gentoo.org> libpcap-0.9.5.ebuild:
Stable on ppc64
MD5 ebf49e31d3f5b853cf19c469a1854082 libpcap-0.9.4.ebuild 1537
RMD160 2a8e2c5c898dd4119217006145b60965345e74ad libpcap-0.9.4.ebuild 1537
SHA256 fab4e0c54b3e6ffbf2743c6905f2a1b84e828654efb2acecab768c737e8c91ab libpcap-0.9.4.ebuild 1537
-EBUILD libpcap-0.9.5.ebuild 1553 RMD160 27842750c557118a61da607a1df0b23baa2adc70 SHA1 a7d91222b9a37d2f4542a7d7833dad80e986719f SHA256 5ea0dc2333e4364149009b6f169ba762384cf741fb73253514be32958001d4d2
-MD5 df60c99617a1a93f288d5583784ddbf1 libpcap-0.9.5.ebuild 1553
-RMD160 27842750c557118a61da607a1df0b23baa2adc70 libpcap-0.9.5.ebuild 1553
-SHA256 5ea0dc2333e4364149009b6f169ba762384cf741fb73253514be32958001d4d2 libpcap-0.9.5.ebuild 1553
-MISC ChangeLog 8473 RMD160 883b85c0e3fb11e0ad1542a8963d72795229d8d4 SHA1 a2e4bef43b709d2a911ef8bcdff1a7136348bb32 SHA256 474da80d8147aa7336c522128ddf489bb969a78ccc6b5e79743ae4396337c028
-MD5 892427ed3a08f96dd94b5052b54c8866 ChangeLog 8473
-RMD160 883b85c0e3fb11e0ad1542a8963d72795229d8d4 ChangeLog 8473
-SHA256 474da80d8147aa7336c522128ddf489bb969a78ccc6b5e79743ae4396337c028 ChangeLog 8473
+EBUILD libpcap-0.9.5.ebuild 1933 RMD160 e89f611b8d132a38f823f8a657ba20279be4265a SHA1 cfff5dd3ad935581d29f21e59645271212106bb3 SHA256 e61f0d6826c2648513e66cd7aa0264e88187ca6e6f6723ccbb5aa82a3c69f4c6
+MD5 c36968426e05a792fb3c4072c8bcdeb1 libpcap-0.9.5.ebuild 1933
+RMD160 e89f611b8d132a38f823f8a657ba20279be4265a libpcap-0.9.5.ebuild 1933
+SHA256 e61f0d6826c2648513e66cd7aa0264e88187ca6e6f6723ccbb5aa82a3c69f4c6 libpcap-0.9.5.ebuild 1933
+MISC ChangeLog 8580 RMD160 6905e9f127fada14544b524b2e2f5f613e4bcfb6 SHA1 d044a815fe6523f7b7b9d14d95b0b0d38cdb9bde SHA256 0789e5bdd4a16abe2d8fe3216a8b17cddcd6faa875fcaaf49cefd63a079b1b3d
+MD5 b733fd3e2695dccfb830572b30a1c09a ChangeLog 8580
+RMD160 6905e9f127fada14544b524b2e2f5f613e4bcfb6 ChangeLog 8580
+SHA256 0789e5bdd4a16abe2d8fe3216a8b17cddcd6faa875fcaaf49cefd63a079b1b3d ChangeLog 8580
MISC metadata.xml 261 RMD160 5bcf72e234ef387b24ffb9221623eaf927a41f02 SHA1 31a589dbbde4597dc3df248c57b5213889c67423 SHA256 92d6c306fe13ead877997b8ff3007ffa601a1e7c96ca3ec2208f88884a95c791
MD5 50057505c6cef15415ae8f8ca7378d82 metadata.xml 261
RMD160 5bcf72e234ef387b24ffb9221623eaf927a41f02 metadata.xml 261
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-0.9.5.ebuild,v 1.7 2007/04/16 07:56:02 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-0.9.5.ebuild,v 1.8 2007/04/19 20:45:33 cedk Exp $
inherit eutils multilib toolchain-funcs
}
src_compile() {
- econf $(use_enable ipv6) || die "bad configure"
+ MY_OPTS=""
+ if is_crosscompile; then
+ if [[ "{LIBPCAP_PCAP}" == "linux" ]]; then
+ MY_OPTS="--with-pcap=linux"
+ elif [[ "${LIBPCAP_PCAP}" == "bpf" ]]; then
+ MY_OPTS="--with-pcap=bpf"
+ else
+ eerror "When cross compile, you must set"
+ eerror "the env variable to one of these values:"
+ eerror " linux"
+ eerror " bpf"
+ die "LIBPCAP_PCAP is not set"
+ fi
+ fi
+ econf $(use_enable ipv6) ${MY_OPTS} || die "bad configure"
emake || die "compile problem"
# no provision for this in the Makefile, so...