net-libs/libpcap: Update live ebuild.
authorJeroen Roovers <jer@gentoo.org>
Thu, 25 May 2017 10:07:48 +0000 (12:07 +0200)
committerJeroen Roovers <jer@gentoo.org>
Thu, 25 May 2017 10:07:48 +0000 (12:07 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

net-libs/libpcap/files/libpcap-1.6.1-prefix-solaris.patch
net-libs/libpcap/files/libpcap-9999-cross-linux.patch [moved from net-libs/libpcap/files/libpcap-1.2.0-cross-linux.patch with 89% similarity]
net-libs/libpcap/files/libpcap-9999-libnl.patch [moved from net-libs/libpcap/files/libpcap-1.7.2-libnl.patch with 88% similarity]
net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch [moved from net-libs/libpcap/files/libpcap-1.6.1-configure.patch with 84% similarity]
net-libs/libpcap/files/mgmt.h [deleted file]
net-libs/libpcap/libpcap-1.8.1-r1.ebuild
net-libs/libpcap/libpcap-1.8.1.ebuild
net-libs/libpcap/libpcap-9999.ebuild
net-libs/libpcap/metadata.xml

index 7b5efb6182308e71f46c2f587fafa8b6550ce82e..324aead551aed2074d09b109674ec012c225860a 100644 (file)
@@ -1,6 +1,5 @@
 Prefix' Solaris uses GNU ld
 
-
 --- a/aclocal.m4
 +++ b/aclocal.m4
 @@ -415,7 +415,7 @@
similarity index 89%
rename from net-libs/libpcap/files/libpcap-1.2.0-cross-linux.patch
rename to net-libs/libpcap/files/libpcap-9999-cross-linux.patch
index fa3b300d8f4d0e8b5f3d92450d70d8f7bb0f037e..f01a9ca5c9353677d18ff9bfca9da76e07fb9adc 100644 (file)
@@ -1,6 +1,6 @@
---- a/configure.in
-+++ b/configure.in
-@@ -291,7 +291,12 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -317,7 +317,12 @@
  dnl XXX This could be done for cross-compiling, but for now it's not.
  dnl
  if test -z "$with_pcap" && test "$cross_compiling" = yes; then
similarity index 88%
rename from net-libs/libpcap/files/libpcap-1.7.2-libnl.patch
rename to net-libs/libpcap/files/libpcap-9999-libnl.patch
index 6854539587627b52c6413598d3edb476e13cc5cd..f243906ebad2ec820dd2cb7cbeaebbadfacfd4ea 100644 (file)
@@ -1,6 +1,6 @@
---- a/configure.in
-+++ b/configure.in
-@@ -453,10 +453,6 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -492,10 +492,6 @@
  
                  incdir=-I/usr/include/libnl3
                  libnldir=
@@ -11,7 +11,7 @@
  
                #
                # Try libnl 3.x first.
-@@ -471,7 +467,7 @@
+@@ -510,7 +506,7 @@
                        AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
                        AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
                        AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
similarity index 84%
rename from net-libs/libpcap/files/libpcap-1.6.1-configure.patch
rename to net-libs/libpcap/files/libpcap-9999-prefix-darwin.patch
index 538e49d51d1f61c0598976082729e94c99be6c4e..9bcbfe92ee0adb2856e75ed231c83e880781b50e 100644 (file)
@@ -1,10 +1,9 @@
 Prefix' Darwin systems are single arch, hijack Darwin7 case which assumes this setup
 Check for bluetooth/mgmt.h before use
 
-
---- a/configure.in
-+++ b/configure.in
-@@ -1117,7 +1117,7 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1271,7 +1267,7 @@
        if test "$enable_universal" != "no"; then
                case "$host_os" in
  
diff --git a/net-libs/libpcap/files/mgmt.h b/net-libs/libpcap/files/mgmt.h
deleted file mode 100644 (file)
index d7fc9c8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- *  BlueZ - Bluetooth protocol stack for Linux
- *
- *  Copyright (C) 2010  Nokia Corporation
- *  Copyright (C) 2010  Marcel Holtmann <marcel@holtmann.org>
- *
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- */
-
-#ifndef __packed
-#define __packed __attribute__((packed))
-#endif
-
-struct mgmt_hdr {
-       uint16_t opcode;
-       uint16_t index;
-       uint16_t len;
-} __packed;
-#define MGMT_HDR_SIZE  6
index 8c51c5ee645b64ad4314dca87aef5a9dcfff0711..af93e87f6c243345fa92a09a61afe5cec85b8730 100644 (file)
@@ -43,9 +43,6 @@ PATCHES=(
 src_prepare() {
        default
 
-#      mkdir bluetooth || die
-#      cp "${FILESDIR}"/mgmt.h bluetooth/ || die
-
        eapply_user
 
        echo ${PV} > VERSION || die
index 62110c6267fd5ad0e11387cc12cd8e39e5c0ddcc..3a8543b92dd7b2bf3d437a124bce3339de15d631 100644 (file)
@@ -43,9 +43,6 @@ PATCHES=(
 src_prepare() {
        default
 
-#      mkdir bluetooth || die
-#      cp "${FILESDIR}"/mgmt.h bluetooth/ || die
-
        eapply_user
 
        echo ${PV} > VERSION || die
index 27f4a5e3810d89e3e9107b4d13d7fdcf31e3eacc..28f3488e0abde37da9f6a4f49e0b1d52f829d32e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -13,36 +13,32 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="bluetooth dbus netlink static-libs canusb"
+IUSE="bluetooth dbus netlink static-libs usb"
 KEYWORDS=""
 
 RDEPEND="
        bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
        dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
        netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
-       canusb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
+       usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
 "
-DEPEND="${RDEPEND}
+DEPEND="
+       ${RDEPEND}
        sys-devel/flex
        virtual/yacc
        dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
 "
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.2.0-cross-linux.patch
-       "${FILESDIR}"/${PN}-1.6.1-configure.patch
        "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
-       "${FILESDIR}"/${PN}-1.7.2-libnl.patch
+       "${FILESDIR}"/${PN}-9999-cross-linux.patch
+       "${FILESDIR}"/${PN}-9999-libnl.patch
+       "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
 )
 
 src_prepare() {
        default
 
-       mkdir bluetooth || die
-       cp "${FILESDIR}"/mgmt.h bluetooth/ || die
-
-       eapply_user
-
        eautoreconf
 }
 
@@ -50,8 +46,8 @@ multilib_src_configure() {
        ECONF_SOURCE="${S}" \
        econf \
                $(use_enable bluetooth) \
-               $(use_enable canusb) \
                $(use_enable dbus) \
+               $(use_enable usb) \
                $(use_with netlink libnl)
 }
 
index eae7eecb145afcbe064081519ed163d1d3548298..488e8703b179d64dd46bb2b7ecaaa35565ae0ddc 100644 (file)
@@ -1,19 +1,14 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <maintainer type="project">
-    <email>netmon@gentoo.org</email>
-    <name>Gentoo network monitoring and analysis project</name>
-  </maintainer>
-  <use>
-    <flag name="netlink">
-      Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces in monitor mode.
-    </flag>
-    <flag name="canusb">
-      Use <pkg>virtual/libusb</pkg> to support Controller Area Network over USB (CAN USB)
-    </flag>
-  </use>
-  <upstream>
-    <remote-id type="github">the-tcpdump-group/libpcap</remote-id>
-  </upstream>
+<maintainer type="project">
+<email>netmon@gentoo.org</email>
+<name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<use>
+<flag name="netlink">Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces in monitor mode.</flag>
+</use>
+<upstream>
+<remote-id type="github">the-tcpdump-group/libpcap</remote-id>
+</upstream>
 </pkgmetadata>