1 |
commit: 9b0d36bac18bf995b33c778130d820bf6781612c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 23 15:35:10 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 23 17:02:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b0d36ba |
7 |
|
8 |
net-libs/libnftnl: Bump to version 1.1.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-libs/libnftnl/Manifest | 1 + |
14 |
net-libs/libnftnl/libnftnl-1.1.4.ebuild | 47 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libnftnl/Manifest b/net-libs/libnftnl/Manifest |
18 |
index e14496a52c5..902a7fc23c0 100644 |
19 |
--- a/net-libs/libnftnl/Manifest |
20 |
+++ b/net-libs/libnftnl/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libnftnl-1.1.3.tar.bz2 366521 BLAKE2B 9a46a46b68fd6d3e0ffc3d28713ee9a70017dd4d05763a49a655f172ae77928d9b54554e7609851f3a18e9465c53f53c1828311162013bc067493e4e02ff3fb8 SHA512 3fb96ea1a8bc9eb00fa2cf79f64cc9613250e8b97de6e90e440c7c44e92789e7c7fd603b7347bb02d9d74af725cf8fde5d2e435c5ffdcb784316c67b83ddf0fe |
23 |
+DIST libnftnl-1.1.4.tar.bz2 368262 BLAKE2B e5f396b582221b9f9a7d3303d65548e3597474b1cedf931728f3105b04a851eeeeff98fd2a49772f29849a9094c2e0cfef7d500050e8f205565e8dfd1ec7a49d SHA512 6fe248b1340decc1ec8ae40dd0ed60b8d4b819c2f36f2399d39e13e92fc5e6f6ec693b736d6c188bff954afb2bf2dbce67d54a9e664b45f43288b2c5c6cc08f6 |
24 |
|
25 |
diff --git a/net-libs/libnftnl/libnftnl-1.1.4.ebuild b/net-libs/libnftnl/libnftnl-1.1.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c7dd0aecc73 |
28 |
--- /dev/null |
29 |
+++ b/net-libs/libnftnl/libnftnl-1.1.4.ebuild |
30 |
@@ -0,0 +1,47 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools linux-info toolchain-funcs usr-ldscript |
37 |
+ |
38 |
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem" |
39 |
+HOMEPAGE="https://netfilter.org/projects/nftables/" |
40 |
+SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0/11" # libnftnl.so version |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
45 |
+IUSE="examples static-libs test" |
46 |
+ |
47 |
+RDEPEND=">=net-libs/libmnl-1.0.3" |
48 |
+BDEPEND="virtual/pkgconfig" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+ |
51 |
+pkg_setup() { |
52 |
+ if kernel_is ge 3 13; then |
53 |
+ CONFIG_CHECK="~NF_TABLES" |
54 |
+ linux-info_pkg_setup |
55 |
+ else |
56 |
+ eerror "This package requires kernel version 3.13 or newer to work properly." |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ local myeconfargs=( |
62 |
+ $(use_enable static-libs static) |
63 |
+ ) |
64 |
+ econf "${myeconfargs[@]}" |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
69 |
+ gen_usr_ldscript -a nftnl |
70 |
+ find "${ED}" -type f -name '*.la' -delete || die |
71 |
+ |
72 |
+ if use examples; then |
73 |
+ find examples/ -name 'Makefile*' -delete || die "Could not rm examples" |
74 |
+ dodoc -r examples |
75 |
+ docompress -x /usr/share/doc/${PF}/examples |
76 |
+ fi |
77 |
+} |