1 |
commit: 0413d2b898a1af51702744e6df3c7293b7971177 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 12:09:44 2021 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 12:10:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0413d2b8 |
7 |
|
8 |
net-libs/xdp-tools: bump to 1.2.0 |
9 |
|
10 |
Github shows both "releases" (unmaintained) and "tags" (maintained). |
11 |
Choose the latter and bump this package. |
12 |
|
13 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
14 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
15 |
|
16 |
net-libs/xdp-tools/Manifest | 2 +- |
17 |
.../{xdp-tools-0.0.3.ebuild => xdp-tools-1.2.0.ebuild} | 10 +++------- |
18 |
2 files changed, 4 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/xdp-tools/Manifest b/net-libs/xdp-tools/Manifest |
21 |
index 1ce4a87a70a..5ecf7cd4b23 100644 |
22 |
--- a/net-libs/xdp-tools/Manifest |
23 |
+++ b/net-libs/xdp-tools/Manifest |
24 |
@@ -1 +1 @@ |
25 |
-DIST xdp-tools-0.0.3.tar.gz 381386 BLAKE2B 1160d9a7cc2b6cf7b49e7223acdbeba72046c00ec710c21140da0607cac1e8a1231992a8967b2f8f2a964da593dfe0af08b28abbc3b13818ddafebbc2c3961a7 SHA512 c2a4278db41af020cf42b1139c93786a49ad2a071b2002177ac39e8d6b74203d251bd7823399d9e156c969d2ae741b0ecd4178edf446fe5c7270e53295458fce |
26 |
+DIST xdp-tools-1.2.0.tar.gz 233676 BLAKE2B 488bd24c5b0c25cb90cc434c0d7cecaf0cf2818d949008fabf4a1245f773e1a1e7a6520c4155df5a6364b0cc8ce2ae49b7b428209b762ecd11f9d6adc10cc57b SHA512 484e5aed6d695665e9e7edec8033b6034281fb215c758a8a8600b5b2215c7decb538efbafa4204306497197a329c3ad7c51beb33717fbe0296a345a1aca8c0a9 |
27 |
|
28 |
diff --git a/net-libs/xdp-tools/xdp-tools-0.0.3.ebuild b/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
29 |
similarity index 79% |
30 |
rename from net-libs/xdp-tools/xdp-tools-0.0.3.ebuild |
31 |
rename to net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
32 |
index 0966087d398..c3baff158c9 100644 |
33 |
--- a/net-libs/xdp-tools/xdp-tools-0.0.3.ebuild |
34 |
+++ b/net-libs/xdp-tools/xdp-tools-1.2.0.ebuild |
35 |
@@ -5,7 +5,7 @@ EAPI=8 |
36 |
|
37 |
DESCRIPTION="The libxdp library and various tools for use with XDP" |
38 |
HOMEPAGE="https://github.com/xdp-project/xdp-tools" |
39 |
-SRC_URI="https://github.com/xdp-project/${PN}/releases/download/v${PV}/${P}.tar.gz" |
40 |
+SRC_URI="https://github.com/xdp-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
|
42 |
LICENSE="GPL-2 LGPL-2.1 BSD-2" |
43 |
SLOT="0" |
44 |
@@ -26,16 +26,11 @@ QA_PREBUILT="usr/lib/bpf/*.o" |
45 |
|
46 |
MAKEOPTS+=" V=1" |
47 |
|
48 |
-src_prepare() { |
49 |
- # A form of this kludge is upstream but hasn't yet been released: |
50 |
- sed -i 's/install -m 0755 \$(SHARED_LIBS)/cp -fpR \$(SHARED_LIBS)/' lib/libxdp/Makefile || die |
51 |
- default |
52 |
-} |
53 |
- |
54 |
src_configure() { |
55 |
export PRODUCTION=1 |
56 |
export DYNAMIC_LIBXDP=1 |
57 |
export FORCE_EMACS=$(usex doc 1 0) |
58 |
+ export FORCE_SYSTEM_LIBBPF=1 |
59 |
default |
60 |
{ |
61 |
echo "PREFIX := ${EPREFIX}/usr" |
62 |
@@ -46,6 +41,7 @@ src_configure() { |
63 |
|
64 |
src_install() { |
65 |
default |
66 |
+ rm -rf "${D}/${EPREFIX}/usr/share/xdp-tools" |
67 |
use static-libs || rm -f "${D}/${EPREFIX}/usr/$(get_libdir)/libxdp.a" |
68 |
use tools || rm -f "${D}/${EPREFIX}/usr/"{sbin,bin}/* |
69 |
dostrip -x /usr/lib/bpf |