mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
net-libs/libnftnl: version bump to 1.0.7
Gentoo-bug: 604940 Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
committed by
Robin H. Johnson
parent
9a43cb8d23
commit
8c756d4d16
@@ -1,2 +1,3 @@
|
||||
DIST libnftnl-1.0.5.tar.bz2 367016 SHA256 f6d4f5a702e38bc7987f2363f9fcd65930e8b702595c221a497e2f3a359be497 SHA512 85c71aaaeeafdffe09f2591f26d49d41e9f511a53ed313fe642b4968eae8aac1246a53d5908fc737c6eb9cc4f5f3ef2a4eaa17fe33db453a1fd60f2f9d5c5a1d WHIRLPOOL 15fb25aa9e23bfdcb19ab21ea1d6eadd22e5acc0c38e761e4637a06136c809f5a5827ac58643515432e1394e3e8d4575df11e52b5f16ca787157317e5e2ae463
|
||||
DIST libnftnl-1.0.6.tar.bz2 381897 SHA256 ad3b932a39a1e567308e91b683b32239a5e1aea9b4582dfffe2288c3400ab07e SHA512 d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62 WHIRLPOOL c4221c99ee437125c1b10d1d47db7586b979e0ce8e7187a2a9fd5ad3b866e0e6b451aba0956c9a48cec9fb7fc411f523c5f35cd9ef2cd1a939aaab7cb7570728
|
||||
DIST libnftnl-1.0.7.tar.bz2 384969 SHA256 9bb66ecbc64b8508249402f0093829f44177770ad99f6042b86b3a467d963982 SHA512 a220c6a2857b4ff7325bfa4fbf537c5afeb66232a7e190b50c3077f01b86f0fb1842055ccc719280b36820ac7103cbe8168944ffe10c55444830ff77449fa6a5 WHIRLPOOL 400edc3bf8268e6c7d4a6804fe36eaca271144019c2220b27865e755466318fe18e1ee5be583d63fc3cfcb1c6819ab557e17fefcba4b96c74e918d024012aadc
|
||||
|
||||
60
net-libs/libnftnl/libnftnl-1.0.7.ebuild
Normal file
60
net-libs/libnftnl/libnftnl-1.0.7.ebuild
Normal file
@@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools linux-info toolchain-funcs
|
||||
|
||||
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
|
||||
HOMEPAGE="http://netfilter.org/projects/nftables/"
|
||||
SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/4"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="examples json static-libs test threads"
|
||||
|
||||
RDEPEND=">=net-libs/libmnl-1.0.0
|
||||
json? ( >=dev-libs/jansson-2.3 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="test? ( json )"
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is ge 3 13; then
|
||||
CONFIG_CHECK="~NF_TABLES"
|
||||
linux-info_pkg_setup
|
||||
else
|
||||
eerror "This package requires kernel version 3.13 or newer to work properly."
|
||||
fi
|
||||
}
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with json json-parsing)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
cd tests || die
|
||||
./test-script.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
gen_usr_ldscript -a nftnl
|
||||
find "${D}" -name '*.la' -delete || die "Could not rm libtool files"
|
||||
|
||||
if use examples; then
|
||||
find examples/ -name 'Makefile*' -delete || die "Could not rm examples"
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user