Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libpcap/
Date: Tue, 26 Jul 2016 13:46:42
Message-Id: 1469540775.91bf73c995adfe2555200b128f99c6f9432eb145.jer@gentoo
1 commit: 91bf73c995adfe2555200b128f99c6f9432eb145
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 26 13:25:21 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 26 13:46:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91bf73c9
7
8 net-libs/libpcap: Version bump.
9
10 Package-Manager: portage-2.3.0
11
12 net-libs/libpcap/Manifest | 1 +
13 net-libs/libpcap/libpcap-1.8.0.ebuild | 78 +++++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/net-libs/libpcap/Manifest b/net-libs/libpcap/Manifest
17 index 935a2be..d433f59 100644
18 --- a/net-libs/libpcap/Manifest
19 +++ b/net-libs/libpcap/Manifest
20 @@ -1 +1,2 @@
21 DIST libpcap-1.7.4.tar.gz 663021 SHA256 7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0 SHA512 83c55aa4173a90e8080a63dc6f0faeb4339d5def998abb9a578f08210c1784a1787ac6975f8bd27b02f8854dd18f03a23c1cd5fa611f46247090b2cc13943cf9 WHIRLPOOL b74cb9f55fd58f4521b0c074ae71448af8bc9e3d66577b6631b5ee59e27cca40f38519b9f2ab097755bd5a86a298bb3edb6d37aad9d0530060eb7ec9dc6221a8
22 +DIST libpcap-1.8.0.tar.gz 698506 SHA256 aef925af509cfe8c50224299a2748b0fbf85e4ae6cf1c5ce332f9eb240d8761f SHA512 1d8d455f64c67627e12e9b4e8fa7d311fa71e63db1864f7287bb8cf598f0b51a178cf92e0ad8c1c6d0229b8b8d23aa493450e324af1ec5f35acee9a9fd0254f7 WHIRLPOOL 2ec86289dd18e807a96b54475b6651e12c7920594494f43dc31bdb29713c5208ccacace33954a23031b5dbd3984a91d85deca7bd54daccf7a4460ef2589b1764
23
24 diff --git a/net-libs/libpcap/libpcap-1.8.0.ebuild b/net-libs/libpcap/libpcap-1.8.0.ebuild
25 new file mode 100644
26 index 0000000..93bda60
27 --- /dev/null
28 +++ b/net-libs/libpcap/libpcap-1.8.0.ebuild
29 @@ -0,0 +1,78 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +inherit autotools eutils multilib-minimal
36 +
37 +DESCRIPTION="A system-independent library for user-level network packet capture"
38 +HOMEPAGE="http://www.tcpdump.org/"
39 +SRC_URI="
40 + https://github.com/the-tcpdump-group/${PN}/archive/${P}.tar.gz
41 +"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +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"
46 +IUSE="bluetooth dbus ipv6 netlink static-libs canusb"
47 +
48 +RDEPEND="
49 + bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
50 + dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
51 + netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
52 + canusb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
53 +"
54 +DEPEND="${RDEPEND}
55 + sys-devel/flex
56 + virtual/yacc
57 + dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
58 +"
59 +
60 +S=${WORKDIR}/${PN}-${P}
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${PN}-1.2.0-cross-linux.patch
64 + "${FILESDIR}"/${PN}-1.6.1-configure.patch
65 + "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
66 + "${FILESDIR}"/${PN}-1.7.2-libnl.patch
67 + )
68 +src_prepare() {
69 + default
70 +
71 + mkdir bluetooth || die
72 + cp "${FILESDIR}"/mgmt.h bluetooth/ || die
73 +
74 + eapply_user
75 +
76 + eautoreconf
77 +}
78 +
79 +multilib_src_configure() {
80 + ECONF_SOURCE="${S}" \
81 + econf \
82 + $(use_enable bluetooth) \
83 + $(use_enable ipv6) \
84 + $(use_enable canusb) \
85 + $(use_enable dbus) \
86 + $(use_with netlink libnl)
87 +}
88 +
89 +multilib_src_compile() {
90 + emake all shared
91 +}
92 +
93 +multilib_src_install_all() {
94 + dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
95 +
96 + # remove static libraries (--disable-static does not work)
97 + if ! use static-libs; then
98 + find "${ED}" -name '*.a' -exec rm {} + || die
99 + fi
100 + prune_libtool_files
101 +
102 + # We need this to build pppd on G/FBSD systems
103 + if [[ "${USERLAND}" == "BSD" ]]; then
104 + insinto /usr/include
105 + doins pcap-int.h
106 + fi
107 +}