1 |
commit: b153f9e565097857c853c3e0c628ee41a5f7e8d0 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 19 20:43:06 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 20:47:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b153f9e5 |
7 |
|
8 |
net-libs/libpcap: Add USE=rdma |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
...libpcap-9999.ebuild => libpcap-1.9.1-r3.ebuild} | 22 +++++++++++++++------- |
14 |
net-libs/libpcap/libpcap-9999.ebuild | 4 +++- |
15 |
net-libs/libpcap/metadata.xml | 1 + |
16 |
3 files changed, 19 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/libpcap/libpcap-9999.ebuild b/net-libs/libpcap/libpcap-1.9.1-r3.ebuild |
19 |
similarity index 70% |
20 |
copy from net-libs/libpcap/libpcap-9999.ebuild |
21 |
copy to net-libs/libpcap/libpcap-1.9.1-r3.ebuild |
22 |
index a6571d9395c..71cfe9d377e 100644 |
23 |
--- a/net-libs/libpcap/libpcap-9999.ebuild |
24 |
+++ b/net-libs/libpcap/libpcap-1.9.1-r3.ebuild |
25 |
@@ -2,24 +2,27 @@ |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
-inherit autotools git-r3 multilib-minimal |
30 |
+inherit autotools multilib-minimal |
31 |
|
32 |
DESCRIPTION="A system-independent library for user-level network packet capture" |
33 |
-EGIT_REPO_URI="https://github.com/the-tcpdump-group/libpcap" |
34 |
HOMEPAGE=" |
35 |
https://www.tcpdump.org/ |
36 |
- ${EGIT_REPO_URI} |
37 |
+ https://github.com/the-tcpdump-group/libpcap |
38 |
+" |
39 |
+SRC_URI=" |
40 |
+ https://github.com/the-tcpdump-group/${PN}/archive/${P/_}.tar.gz |
41 |
" |
42 |
|
43 |
LICENSE="BSD" |
44 |
SLOT="0" |
45 |
-IUSE="bluetooth dbus netlink -remote static-libs usb -yydebug" |
46 |
-KEYWORDS="" |
47 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
48 |
+IUSE="bluetooth dbus netlink rdma -remote static-libs usb -yydebug" |
49 |
|
50 |
RDEPEND=" |
51 |
bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] ) |
52 |
dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
53 |
netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] ) |
54 |
+ rdma? ( sys-cluster/rdma-core ) |
55 |
usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] ) |
56 |
" |
57 |
DEPEND=" |
58 |
@@ -29,14 +32,18 @@ DEPEND=" |
59 |
dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] ) |
60 |
" |
61 |
|
62 |
+S=${WORKDIR}/${PN}-${P/_} |
63 |
+ |
64 |
PATCHES=( |
65 |
+ "${FILESDIR}"/${PN}-1.8.1-usbmon.patch |
66 |
"${FILESDIR}"/${PN}-1.9.1-pcap-config.patch |
67 |
- "${FILESDIR}"/${PN}-9999-prefix-darwin.patch |
68 |
) |
69 |
|
70 |
src_prepare() { |
71 |
default |
72 |
|
73 |
+ echo ${PV} > VERSION || die |
74 |
+ |
75 |
eautoreconf |
76 |
} |
77 |
|
78 |
@@ -45,6 +52,7 @@ multilib_src_configure() { |
79 |
econf \ |
80 |
$(use_enable bluetooth) \ |
81 |
$(use_enable dbus) \ |
82 |
+ $(use_enable rdma) \ |
83 |
$(use_enable remote) \ |
84 |
$(use_enable usb) \ |
85 |
$(use_enable yydebug) \ |
86 |
@@ -57,7 +65,7 @@ multilib_src_compile() { |
87 |
} |
88 |
|
89 |
multilib_src_install_all() { |
90 |
- dodoc CREDITS CHANGES VERSION TODO README* |
91 |
+ dodoc CREDITS CHANGES VERSION TODO README.* doc/README.* |
92 |
|
93 |
# remove static libraries (--disable-static does not work) |
94 |
if ! use static-libs; then |
95 |
|
96 |
diff --git a/net-libs/libpcap/libpcap-9999.ebuild b/net-libs/libpcap/libpcap-9999.ebuild |
97 |
index a6571d9395c..b8aa2691022 100644 |
98 |
--- a/net-libs/libpcap/libpcap-9999.ebuild |
99 |
+++ b/net-libs/libpcap/libpcap-9999.ebuild |
100 |
@@ -13,13 +13,14 @@ HOMEPAGE=" |
101 |
|
102 |
LICENSE="BSD" |
103 |
SLOT="0" |
104 |
-IUSE="bluetooth dbus netlink -remote static-libs usb -yydebug" |
105 |
+IUSE="bluetooth dbus netlink rdma -remote static-libs usb -yydebug" |
106 |
KEYWORDS="" |
107 |
|
108 |
RDEPEND=" |
109 |
bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] ) |
110 |
dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
111 |
netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] ) |
112 |
+ rdma? ( sys-cluster/rdma-core ) |
113 |
usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] ) |
114 |
" |
115 |
DEPEND=" |
116 |
@@ -45,6 +46,7 @@ multilib_src_configure() { |
117 |
econf \ |
118 |
$(use_enable bluetooth) \ |
119 |
$(use_enable dbus) \ |
120 |
+ $(use_enable rdma) \ |
121 |
$(use_enable remote) \ |
122 |
$(use_enable usb) \ |
123 |
$(use_enable yydebug) \ |
124 |
|
125 |
diff --git a/net-libs/libpcap/metadata.xml b/net-libs/libpcap/metadata.xml |
126 |
index 6fb2c6c97ae..9c9e8fcf34e 100644 |
127 |
--- a/net-libs/libpcap/metadata.xml |
128 |
+++ b/net-libs/libpcap/metadata.xml |
129 |
@@ -7,6 +7,7 @@ |
130 |
</maintainer> |
131 |
<use> |
132 |
<flag name="netlink">Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces in monitor mode.</flag> |
133 |
+<flag name="rdma">Enable RDMA capture support using <pkg>sys-cluster/rdma-core</pkg></flag> |
134 |
<flag name="remote">Enable remote packet capture which may expose libpcap-based applications to attacks by malicious remote capture servers!</flag> |
135 |
<flag name="yydebug">Enable parser debugging code</flag> |
136 |
</use> |