[net-firewall/iptables] sync with tree, bump subslot

This commit is contained in:
Robert Förster 2016-09-29 11:53:17 +02:00
parent 20a71e32d8
commit 315fcbceff
3 changed files with 14 additions and 18 deletions

View File

@ -1,6 +0,0 @@
[Unit]
Description=Store and restore ip6tables firewall rules
[Install]
Also=ip6tables-store.service
Also=ip6tables-restore.service

View File

@ -1,6 +0,0 @@
[Unit]
Description=Store and restore iptables firewall rules
[Install]
Also=iptables-store.service
Also=iptables-restore.service

View File

@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation # Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Id$ # $Id$
@ -16,19 +16,26 @@ EGIT_REPO_URI="git://git.netfilter.org/iptables.git"
LICENSE="GPL-2" LICENSE="GPL-2"
# Subslot tracks libxtables as that's the one other packages generally link # Subslot tracks libxtables as that's the one other packages generally link
# against and iptables changes. Will have to revisit if other sonames change. # against and iptables changes. Will have to revisit if other sonames change.
SLOT="0/10" SLOT="0/12"
KEYWORDS="" KEYWORDS=""
IUSE="conntrack ipv6 netlink pcap static-libs" IUSE="conntrack ipv6 netlink nftables pcap static-libs"
RDEPEND=" RDEPEND="
conntrack? ( net-libs/libnetfilter_conntrack ) conntrack? ( net-libs/libnetfilter_conntrack )
netlink? ( net-libs/libnfnetlink ) netlink? ( net-libs/libnfnetlink )
nftables? (
>=net-libs/libmnl-1.0
>=net-libs/libnftnl-1.0.5
)
pcap? ( net-libs/libpcap ) pcap? ( net-libs/libpcap )
net-libs/libnftnl
" "
DEPEND="${RDEPEND} DEPEND="${RDEPEND}
virtual/os-headers virtual/os-headers
virtual/pkgconfig virtual/pkgconfig
nftables? (
sys-devel/flex
virtual/yacc
)
" "
src_prepare() { src_prepare() {
@ -55,6 +62,7 @@ src_configure() {
--libexecdir="${EPREFIX}/$(get_libdir)" \ --libexecdir="${EPREFIX}/$(get_libdir)" \
--enable-devel \ --enable-devel \
--enable-shared \ --enable-shared \
$(use_enable nftables) \
$(use_enable pcap bpf-compiler) \ $(use_enable pcap bpf-compiler) \
$(use_enable pcap nfsynproxy) \ $(use_enable pcap nfsynproxy) \
$(use_enable static-libs static) \ $(use_enable static-libs static) \
@ -90,9 +98,9 @@ src_install() {
newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables
fi fi
systemd_dounit "${FILESDIR}"/systemd/iptables{,-{re,}store}.service systemd_dounit "${FILESDIR}"/systemd/iptables-{re,}store.service
if use ipv6 ; then if use ipv6 ; then
systemd_dounit "${FILESDIR}"/systemd/ip6tables{,-{re,}store}.service systemd_dounit "${FILESDIR}"/systemd/ip6tables-{re,}store.service
fi fi
# Move important libs to /lib #332175 # Move important libs to /lib #332175