diff options
author | Peter Volkov <pva@gentoo.org> | 2010-04-08 05:53:18 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-04-08 05:53:18 +0000 |
commit | 75e477f4dbc4b25e8a9b03fae1021106638fe179 (patch) | |
tree | f7ba440fb9c802f13814ed750acf59784cdcf5d9 /net-libs/libpcap/libpcap-1.1.1.ebuild | |
parent | Version bump for beta channel release. (diff) | |
download | historical-75e477f4dbc4b25e8a9b03fae1021106638fe179.tar.gz historical-75e477f4dbc4b25e8a9b03fae1021106638fe179.tar.bz2 historical-75e477f4dbc4b25e8a9b03fae1021106638fe179.zip |
Version bump.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'net-libs/libpcap/libpcap-1.1.1.ebuild')
-rw-r--r-- | net-libs/libpcap/libpcap-1.1.1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-libs/libpcap/libpcap-1.1.1.ebuild b/net-libs/libpcap/libpcap-1.1.1.ebuild new file mode 100644 index 000000000000..8f9d91113b56 --- /dev/null +++ b/net-libs/libpcap/libpcap-1.1.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-1.1.1.ebuild,v 1.1 2010/04/08 05:53:18 pva Exp $ + +EAPI=2 +inherit autotools eutils multilib toolchain-funcs + +DESCRIPTION="A system-independent library for user-level network packet capture" +HOMEPAGE="http://www.tcpdump.org/" +SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz + http://www.jp.tcpdump.org/release/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="bluetooth ipv6 libnl" + +RDEPEND="!virtual/libpcap + bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) ) + libnl? ( dev-libs/libnl )" +DEPEND="${RDEPEND} + sys-devel/flex" + +PROVIDE="virtual/libpcap" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.1-cross-linux.patch" + eautoreconf +} + +src_configure() { + econf $(use_enable ipv6) \ + $(use_with libnl) \ + $(use_enable bluetooth) +} + +src_compile() { + emake all shared || die "compile problem" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # We need this to build pppd on G/FBSD systems + if [[ "${USERLAND}" == "BSD" ]]; then + insinto /usr/include + doins pcap-int.h || die "failed to install pcap-int.h" + fi + + # We are not installing README.{Win32,aix,hpux,tru64} (bug 183057) + dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel} || die +} |