Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/
Date: Tue, 03 Nov 2015 08:42:43
Message-Id: 1446531088.37bdeb0c57ba3978658d2b4373a5e2958f0ca5a6.idella4@gentoo
1 commit: 37bdeb0c57ba3978658d2b4373a5e2958f0ca5a6
2 Author: Nicholas Vinson <nvinson234 <AT> gmail <DOT> com>
3 AuthorDate: Tue Nov 3 06:10:22 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 06:11:28 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37bdeb0c
7
8 net-firewall/nftables: revbump to nftables-0.5-r2
9
10 Required for supporting systemd
11
12 Package-Manager: portage-2.2.23
13
14 net-firewall/nftables/nftables-0.5-r2.ebuild | 62 ++++++++++++++++++++++++++++
15 1 file changed, 62 insertions(+)
16
17 diff --git a/net-firewall/nftables/nftables-0.5-r2.ebuild b/net-firewall/nftables/nftables-0.5-r2.ebuild
18 new file mode 100644
19 index 0000000..a495588
20 --- /dev/null
21 +++ b/net-firewall/nftables/nftables-0.5-r2.ebuild
22 @@ -0,0 +1,62 @@
23 +# Copyright 1999-2015 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=5
28 +
29 +inherit autotools linux-info eutils systemd
30 +
31 +DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
32 +HOMEPAGE="http://netfilter.org/projects/nftables/"
33 +SRC_URI="http://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~x86"
38 +IUSE="debug gmp +readline"
39 +
40 +RDEPEND=">=net-libs/libmnl-1.0.3
41 + >=net-libs/libnftnl-1.0.5
42 + gmp? ( dev-libs/gmp:0= )
43 + readline? ( sys-libs/readline:0= )"
44 +DEPEND="${RDEPEND}
45 + >=app-text/docbook2X-0.8.8-r4
46 + sys-devel/bison
47 + sys-devel/flex"
48 +
49 +S="${WORKDIR}"/v${PV}
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_prepare() {
61 + epatch_user
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + econf \
67 + --sbindir="${EPREFIX}"/sbin \
68 + $(use_enable debug) \
69 + $(use_with readline cli) \
70 + $(use_with !gmp mini_gmp)
71 +}
72 +
73 +src_install() {
74 + default
75 +
76 + dodir /usr/libexec/${PN}
77 + cp -p "${FILESDIR}"/libexec/${PN}.sh "${D}"/usr/libexec/${PN}/${PN}.sh
78 +
79 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
80 + newinitd "${FILESDIR}"/${PN}.init-r2 ${PN}
81 + keepdir /var/lib/nftables
82 +
83 + systemd_dounit "${FILESDIR}"/systemd/${PN}{,-{re,}store}.service
84 +}