/[gentoo-x86]/net-libs/libpcap/libpcap-9999.ebuild
Gentoo

Contents of /net-libs/libpcap/libpcap-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jul 3 04:20:58 2015 UTC (5 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -6 lines
Drop scanner patch.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-9999.ebuild,v 1.2 2015/03/11 08:58:46 jer Exp $
4
5 EAPI=5
6 inherit autotools eutils git-r3 multilib-minimal
7
8 DESCRIPTION="A system-independent library for user-level network packet capture"
9 HOMEPAGE="http://www.tcpdump.org/"
10 EGIT_REPO_URI="https://github.com/the-tcpdump-group/libpcap"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS=""
15 IUSE="bluetooth dbus ipv6 netlink static-libs canusb"
16
17 RDEPEND="
18 bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
19 dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
20 netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
21 canusb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
22 "
23 DEPEND="${RDEPEND}
24 sys-devel/flex
25 virtual/yacc
26 dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
27 "
28
29 src_prepare() {
30 epatch \
31 "${FILESDIR}"/${PN}-1.2.0-cross-linux.patch \
32 "${FILESDIR}"/${PN}-1.6.1-configure.patch \
33 "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch \
34 "${FILESDIR}"/${PN}-1.7.2-libnl.patch
35
36 mkdir bluetooth || die
37 cp "${FILESDIR}"/mgmt.h bluetooth/ || die
38
39 eautoreconf
40 }
41
42 multilib_src_configure() {
43 ECONF_SOURCE="${S}" \
44 econf \
45 $(use_enable bluetooth) \
46 $(use_enable ipv6) \
47 $(use_enable canusb) \
48 $(use_enable dbus) \
49 $(use_with netlink libnl)
50 }
51
52 multilib_src_compile() {
53 emake all shared
54 }
55
56 multilib_src_install_all() {
57 dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
58
59 # remove static libraries (--disable-static does not work)
60 if ! use static-libs; then
61 find "${ED}" -name '*.a' -exec rm {} + || die
62 fi
63 prune_libtool_files
64
65 # We need this to build pppd on G/FBSD systems
66 if [[ "${USERLAND}" == "BSD" ]]; then
67 insinto /usr/include
68 doins pcap-int.h
69 fi
70 }

  ViewVC Help
Powered by ViewVC 1.1.20