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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 24 10:22:16 2015 UTC (5 years, 4 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
ia64 stable wrt bug #553758

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

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-1.7.4.ebuild,v 1.3 2015/07/23 09:34:02 ago Exp $
4
5 EAPI=5
6 inherit autotools eutils multilib-minimal
7
8 DESCRIPTION="A system-independent library for user-level network packet capture"
9 HOMEPAGE="http://www.tcpdump.org/"
10 SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz
11 http://www.jp.tcpdump.org/release/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16 IUSE="bluetooth dbus ipv6 netlink static-libs canusb"
17
18 RDEPEND="
19 bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
20 dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
21 netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
22 canusb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
23 "
24 DEPEND="${RDEPEND}
25 sys-devel/flex
26 virtual/yacc
27 dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
28 "
29
30 src_prepare() {
31 epatch \
32 "${FILESDIR}"/${PN}-1.2.0-cross-linux.patch \
33 "${FILESDIR}"/${PN}-1.6.1-configure.patch \
34 "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch \
35 "${FILESDIR}"/${PN}-1.7.2-libnl.patch
36
37 mkdir bluetooth || die
38 cp "${FILESDIR}"/mgmt.h bluetooth/ || die
39
40 eautoreconf
41 }
42
43 multilib_src_configure() {
44 ECONF_SOURCE="${S}" \
45 econf \
46 $(use_enable bluetooth) \
47 $(use_enable ipv6) \
48 $(use_enable canusb) \
49 $(use_enable dbus) \
50 $(use_with netlink libnl)
51 }
52
53 multilib_src_compile() {
54 emake all shared
55 }
56
57 multilib_src_install_all() {
58 dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
59
60 # remove static libraries (--disable-static does not work)
61 if ! use static-libs; then
62 find "${ED}" -name '*.a' -exec rm {} + || die
63 fi
64 prune_libtool_files
65
66 # We need this to build pppd on G/FBSD systems
67 if [[ "${USERLAND}" == "BSD" ]]; then
68 insinto /usr/include
69 doins pcap-int.h
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20