1 |
commit: cb585b48fdda1b4916e32222f77aa52490e02e75 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 17 14:05:45 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 17 14:12:08 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb585b48 |
7 |
|
8 |
net-libs/libnftnl: Bump to version 1.0.8 |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
net-libs/libnftnl/Manifest | 1 + |
13 |
net-libs/libnftnl/libnftnl-1.0.8.ebuild | 61 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libnftnl/Manifest b/net-libs/libnftnl/Manifest |
17 |
index 01ce37861ba..47266594485 100644 |
18 |
--- a/net-libs/libnftnl/Manifest |
19 |
+++ b/net-libs/libnftnl/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST libnftnl-1.0.5.tar.bz2 367016 SHA256 f6d4f5a702e38bc7987f2363f9fcd65930e8b702595c221a497e2f3a359be497 SHA512 85c71aaaeeafdffe09f2591f26d49d41e9f511a53ed313fe642b4968eae8aac1246a53d5908fc737c6eb9cc4f5f3ef2a4eaa17fe33db453a1fd60f2f9d5c5a1d WHIRLPOOL 15fb25aa9e23bfdcb19ab21ea1d6eadd22e5acc0c38e761e4637a06136c809f5a5827ac58643515432e1394e3e8d4575df11e52b5f16ca787157317e5e2ae463 |
22 |
DIST libnftnl-1.0.6.tar.bz2 381897 SHA256 ad3b932a39a1e567308e91b683b32239a5e1aea9b4582dfffe2288c3400ab07e SHA512 d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62 WHIRLPOOL c4221c99ee437125c1b10d1d47db7586b979e0ce8e7187a2a9fd5ad3b866e0e6b451aba0956c9a48cec9fb7fc411f523c5f35cd9ef2cd1a939aaab7cb7570728 |
23 |
DIST libnftnl-1.0.7.tar.bz2 384969 SHA256 9bb66ecbc64b8508249402f0093829f44177770ad99f6042b86b3a467d963982 SHA512 a220c6a2857b4ff7325bfa4fbf537c5afeb66232a7e190b50c3077f01b86f0fb1842055ccc719280b36820ac7103cbe8168944ffe10c55444830ff77449fa6a5 WHIRLPOOL 400edc3bf8268e6c7d4a6804fe36eaca271144019c2220b27865e755466318fe18e1ee5be583d63fc3cfcb1c6819ab557e17fefcba4b96c74e918d024012aadc |
24 |
+DIST libnftnl-1.0.8.tar.bz2 400496 SHA256 e6bdd799ef9c59fc247954aba9f2c6469d8e04cfaee73526728011eaa3632038 SHA512 df9f5967908ce5e6a6a85fe4328bdf6e7501ce6b0e42239b750782aeb76c30b1aae80dd07f73a06fb077d072b1269c4e0c5fd525feed1055400201567d215ef9 WHIRLPOOL f56667a5b385414d620e33c17e2fe2daafee3770cb61bdad89d7b3d5396677ed8ad8cf9f3bd6a5dbf6ce92c031bdf451727e70e0054f8d971c2dc76fb63aa120 |
25 |
|
26 |
diff --git a/net-libs/libnftnl/libnftnl-1.0.8.ebuild b/net-libs/libnftnl/libnftnl-1.0.8.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e3b959e4f8a |
29 |
--- /dev/null |
30 |
+++ b/net-libs/libnftnl/libnftnl-1.0.8.ebuild |
31 |
@@ -0,0 +1,61 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit autotools linux-info toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem" |
40 |
+HOMEPAGE="https://netfilter.org/projects/nftables/" |
41 |
+SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0/4" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
46 |
+IUSE="examples json static-libs test threads" |
47 |
+ |
48 |
+RDEPEND=">=net-libs/libmnl-1.0.0 |
49 |
+ json? ( >=dev-libs/jansson-2.3 )" |
50 |
+DEPEND="virtual/pkgconfig |
51 |
+ ${RDEPEND}" |
52 |
+ |
53 |
+REQUIRED_USE="test? ( json )" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ if kernel_is ge 3 13; then |
57 |
+ CONFIG_CHECK="~NF_TABLES" |
58 |
+ linux-info_pkg_setup |
59 |
+ else |
60 |
+ eerror "This package requires kernel version 3.13 or newer to work properly." |
61 |
+ fi |
62 |
+} |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ eautoreconf |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ local myeconfargs=( |
70 |
+ $(use_enable static-libs static) |
71 |
+ $(use_with json json-parsing) |
72 |
+ ) |
73 |
+ econf "${myeconfargs[@]}" |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ default |
78 |
+ cd tests || die |
79 |
+ ./test-script.sh || die |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ default |
84 |
+ gen_usr_ldscript -a nftnl |
85 |
+ find "${D}" -name '*.la' -delete || die "Could not rm libtool files" |
86 |
+ |
87 |
+ if use examples; then |
88 |
+ find examples/ -name 'Makefile*' -delete || die "Could not rm examples" |
89 |
+ dodoc -r examples |
90 |
+ docompress -x /usr/share/doc/${PF}/examples |
91 |
+ fi |
92 |
+} |