diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2014-08-26 17:53:54 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2014-08-26 17:53:54 +0000 |
commit | 0b8ff3b8a91c5a417c17ef87d66c47eef3329e05 (patch) | |
tree | 52f2f8ae99376f9a0b2ace730bbb772042b731d5 /net-firewall | |
parent | bumped EAPI to 5 to help with dev-lang/perl upgrade (diff) | |
download | gentoo-2-0b8ff3b8a91c5a417c17ef87d66c47eef3329e05.tar.gz gentoo-2-0b8ff3b8a91c5a417c17ef87d66c47eef3329e05.tar.bz2 gentoo-2-0b8ff3b8a91c5a417c17ef87d66c47eef3329e05.zip |
Update init script.
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/nftables/ChangeLog | 8 | ||||
-rw-r--r-- | net-firewall/nftables/files/nftables.init | 6 | ||||
-rw-r--r-- | net-firewall/nftables/nftables-0.3-r1.ebuild | 53 |
3 files changed, 61 insertions, 6 deletions
diff --git a/net-firewall/nftables/ChangeLog b/net-firewall/nftables/ChangeLog index dcb61894db9c..29c7e6687ff1 100644 --- a/net-firewall/nftables/ChangeLog +++ b/net-firewall/nftables/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-firewall/nftables # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/nftables/ChangeLog,v 1.4 2014/08/26 10:58:38 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/nftables/ChangeLog,v 1.5 2014/08/26 17:53:54 mrueg Exp $ + +*nftables-0.3-r1 (26 Aug 2014) + + 26 Aug 2014; Manuel Rüger <mrueg@gentoo.org> +nftables-0.3-r1.ebuild, + files/nftables.init: + Update init script. 26 Aug 2014; Manuel Rüger <mrueg@gentoo.org> metadata.xml: Add myself as maintainer. Acked by Chainsaw. diff --git a/net-firewall/nftables/files/nftables.init b/net-firewall/nftables/files/nftables.init index a5c324602adf..ce2e5f75c6e4 100644 --- a/net-firewall/nftables/files/nftables.init +++ b/net-firewall/nftables/files/nftables.init @@ -38,7 +38,7 @@ checkfamilies() { return fi - local families=() + families=() for l3f in ip arp ip6 bridge inet; do ${nft_bin} list tables ${l3f} &> /dev/null if [ $? -eq 0 ]; then @@ -187,10 +187,6 @@ panic() { ebegin "Dropping all packets" clearNFT - if havefamily "inet"; then - einfo inet - fi - local l3f for l3f in ${families[@]}; do case ${l3f} in diff --git a/net-firewall/nftables/nftables-0.3-r1.ebuild b/net-firewall/nftables/nftables-0.3-r1.ebuild new file mode 100644 index 000000000000..9528cef0335e --- /dev/null +++ b/net-firewall/nftables/nftables-0.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/nftables/nftables-0.3-r1.ebuild,v 1.1 2014/08/26 17:53:54 mrueg Exp $ + +EAPI=5 + +inherit autotools base linux-info + +DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools" +HOMEPAGE="http://netfilter.org/projects/nftables/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="debug" +SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2" + +RDEPEND="net-libs/libmnl + >=net-libs/libnftnl-1.0.2 + dev-libs/gmp + sys-libs/readline" +DEPEND="${RDEPEND} + app-text/docbook2X + sys-devel/bison + sys-devel/flex" + +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() { + base_src_prepare + eautoreconf +} + +src_configure() { + econf \ + --sbindir="${EPREFIX}"/sbin \ + $(use_enable debug) +} + +src_install() { + default + + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.init ${PN} + keepdir /var/lib/nftables +} |