1 |
commit: 4086cf9ecb0418c6cb1ad3e717c3a2807641aea4 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 9 13:36:20 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 9 13:39:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4086cf9e |
7 |
|
8 |
net-libs/libpcap: Add USE=usb dependency, drop KEYWORDS=riscv |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Bug: https://bugs.gentoo.org/498896 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-libs/libpcap/libpcap-1.9.1-r2.ebuild | 80 ++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libpcap/libpcap-1.9.1-r2.ebuild b/net-libs/libpcap/libpcap-1.9.1-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..96323e01da6 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/libpcap/libpcap-1.9.1-r2.ebuild |
22 |
@@ -0,0 +1,80 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+inherit autotools multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="A system-independent library for user-level network packet capture" |
30 |
+HOMEPAGE=" |
31 |
+ https://www.tcpdump.org/ |
32 |
+ https://github.com/the-tcpdump-group/libpcap |
33 |
+" |
34 |
+SRC_URI=" |
35 |
+ https://github.com/the-tcpdump-group/${PN}/archive/${P/_}.tar.gz |
36 |
+" |
37 |
+ |
38 |
+LICENSE="BSD" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
41 |
+IUSE="bluetooth dbus netlink -remote static-libs usb -yydebug" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] ) |
45 |
+ dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
46 |
+ netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] ) |
47 |
+ usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] ) |
48 |
+" |
49 |
+DEPEND=" |
50 |
+ ${RDEPEND} |
51 |
+ sys-devel/flex |
52 |
+ virtual/yacc |
53 |
+ dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] ) |
54 |
+" |
55 |
+ |
56 |
+S=${WORKDIR}/${PN}-${P/_} |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}"/${PN}-1.8.1-usbmon.patch |
60 |
+ "${FILESDIR}"/${PN}-1.9.1-pcap-config.patch |
61 |
+) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ echo ${PV} > VERSION || die |
67 |
+ |
68 |
+ eautoreconf |
69 |
+} |
70 |
+ |
71 |
+multilib_src_configure() { |
72 |
+ ECONF_SOURCE="${S}" \ |
73 |
+ econf \ |
74 |
+ $(use_enable bluetooth) \ |
75 |
+ $(use_enable dbus) \ |
76 |
+ $(use_enable remote) \ |
77 |
+ $(use_enable usb) \ |
78 |
+ $(use_enable yydebug) \ |
79 |
+ $(use_with netlink libnl) \ |
80 |
+ --enable-ipv6 |
81 |
+} |
82 |
+ |
83 |
+multilib_src_compile() { |
84 |
+ emake all shared |
85 |
+} |
86 |
+ |
87 |
+multilib_src_install_all() { |
88 |
+ dodoc CREDITS CHANGES VERSION TODO README.* doc/README.* |
89 |
+ |
90 |
+ # remove static libraries (--disable-static does not work) |
91 |
+ if ! use static-libs; then |
92 |
+ find "${ED}" -name '*.a' -exec rm {} + || die |
93 |
+ fi |
94 |
+ |
95 |
+ find "${ED}" -name '*.la' -delete || die |
96 |
+ |
97 |
+ # We need this to build pppd on G/FBSD systems |
98 |
+ if [[ "${USERLAND}" == "BSD" ]]; then |
99 |
+ insinto /usr/include |
100 |
+ doins pcap-int.h portability.h |
101 |
+ fi |
102 |
+} |