1 |
commit: 6d99df4f1157e23c300ad18f50512e718d8795c3 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 12:15:52 2021 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 12:18:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d99df4f |
7 |
|
8 |
net-libs/xdp-tools: incorporate suggestions from QA |
9 |
|
10 |
Thanks sam@. |
11 |
|
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
14 |
|
15 |
net-libs/xdp-tools/xdp-tools-1.2.0.ebuild | 10 +++++----- |
16 |
1 file changed, 5 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild b/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
19 |
index c3baff158c9..d4fa6749732 100644 |
20 |
--- a/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
21 |
+++ b/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
22 |
@@ -11,9 +11,9 @@ LICENSE="GPL-2 LGPL-2.1 BSD-2" |
23 |
SLOT="0" |
24 |
KEYWORDS="~amd64 ~x86" |
25 |
|
26 |
-IUSE="+doc +tools static-libs" |
27 |
+IUSE="+doc +tools" |
28 |
|
29 |
-DEPEND="dev-libs/libbpf |
30 |
+DEPEND="dev-libs/libbpf:= |
31 |
sys-libs/zlib |
32 |
net-libs/libpcap |
33 |
virtual/libelf" |
34 |
@@ -41,8 +41,8 @@ src_configure() { |
35 |
|
36 |
src_install() { |
37 |
default |
38 |
- rm -rf "${D}/${EPREFIX}/usr/share/xdp-tools" |
39 |
- use static-libs || rm -f "${D}/${EPREFIX}/usr/$(get_libdir)/libxdp.a" |
40 |
- use tools || rm -f "${D}/${EPREFIX}/usr/"{sbin,bin}/* |
41 |
+ rm -r "${ED}/usr/share/xdp-tools" || die |
42 |
+ rm "${ED}/usr/$(get_libdir)/libxdp.a" || die |
43 |
+ use tools || { rm "${ED}/usr/sbin"/* || die; } |
44 |
dostrip -x /usr/lib/bpf |
45 |
} |