aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-02-08 18:30:41 +0000
committerStuart Shelton <stuart@shelton.me>2016-02-08 18:30:41 +0000
commit7018047738137989ce8997ee8aabf5dbcbd9edc5 (patch)
tree2199e10cc516113cc91c42a5a14e2f00af747a8f /net-firewall
parentUpdate app-shells/bash-4.3_p42-r1 (diff)
downloadsrcshelton-7018047738137989ce8997ee8aabf5dbcbd9edc5.tar.gz
srcshelton-7018047738137989ce8997ee8aabf5dbcbd9edc5.tar.bz2
srcshelton-7018047738137989ce8997ee8aabf5dbcbd9edc5.zip
Add net-firewall/iptables-nftables-1.4.21-r4, update net-firewall/iptables-nftables-1.4.21-r1, net-firewall/iptables-nftables-1.4.21-r3
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/iptables-nftables/Manifest9
-rw-r--r--net-firewall/iptables-nftables/files/iptables-1.4.13-r1.init17
-rwxr-xr-xnet-firewall/iptables-nftables/files/iptables.init1
-rw-r--r--net-firewall/iptables-nftables/iptables-nftables-1.4.21-r1.ebuild3
-rw-r--r--net-firewall/iptables-nftables/iptables-nftables-1.4.21-r3.ebuild20
-rw-r--r--net-firewall/iptables-nftables/iptables-nftables-1.4.21-r4.ebuild120
6 files changed, 148 insertions, 22 deletions
diff --git a/net-firewall/iptables-nftables/Manifest b/net-firewall/iptables-nftables/Manifest
index 7c01d3df..21cd277d 100644
--- a/net-firewall/iptables-nftables/Manifest
+++ b/net-firewall/iptables-nftables/Manifest
@@ -1,14 +1,15 @@
AUX ip6tables-1.4.13.confd 690 SHA256 2938fe4206514d9868047bd8f888a699fa2097ca69edab176453436d4259abaa SHA512 8de9a5de4061bef217fbc07577688a8110f1116af7f3b936dfd18100a6a7a47ec6e70c456b24cf3432fb4f2034b741a487fe6af8d9740f174d51c6eb16945c6e WHIRLPOOL f2f4903812b5b97d5bdf9cb28f0bcb6f8c866f197b46a9128530721a8d9db1cdcedffe2512c9235391a67f494c2daf1266d7bc8a6185949756437221c3861a10
-AUX iptables-1.4.13-r1.init 3225 SHA256 810403ff413a1feed28a2f877739d1fb151e2eadb165a7637f91bb3e8e21fa0e SHA512 16087ccb9b9a62b9ae212609ae650658fc7b59bcf360a14d0de328eb89ce190d899b5972777030d98bf79053598dbe895f375f98a1b5109a38536e042e62c743 WHIRLPOOL d75685a2e702fda20e099932e138d05f2c9fe18c19bb64dff60df326bf42df4981dd94e8ffb6ba98157b9bba127bc003ee46a3e526601332b7bc48ca0dedf5d4
+AUX iptables-1.4.13-r1.init 3132 SHA256 d583b93ea203dc0d5b981e891e864a7b86c8f6f96492deda756c77aa1f62f427 SHA512 c256bb958d152854843bf4876567ef2cec2987946adc3bd4301798d8d8ae781203e9186ed990d123638edd95d6a915fabfb16d8ec29463d96e861488eb04d9cc WHIRLPOOL a6730d87e5366156bfd83343513680ee17651ac2e8133e587c4585c221115f293bb61f6abe882ab8cdb264fd6d9d3277527deb9b1b3576acda85ee2189c347a3
AUX iptables-1.4.13.confd 687 SHA256 7e2341211ca14997b7a8a1f930f94db855291af597c568f680f80031c20d45b6 SHA512 bd67d53e997ea65755148ba071fe6e3856d6e604b9167c666900721bc3dc24f63d395bc33a1a34ae50f95e72760da630db1a8d35afc81ec5973e60ba5343dc70 WHIRLPOOL 111b809b3122b04cce8ac0e551cfcdec7fde1ad563e1001bbbb3dbb4cae0ddf13851ece1024e13fb26aab2fe306dfc4fd9e59ab5a10127b301bc7a65ec20486b
AUX iptables-1.4.21-configure.patch 1066 SHA256 73454c278b48fae5debcdb72ada8f2d60a36b5134cb1052b1a332b83169cbdc0 SHA512 45445d1460072ed19ba617be983be82094fdd0535a25de4f6159173de4a08be9bee9da13c7aeea419291beb92402ca25efba3a0e269510e221f7eacc8bcd5176 WHIRLPOOL 55c56c9e0711409c54b8635dc9b480be885c852b60ac336a32b3a48586c85ba5b7b9a0b4d2d427f7d646dfdc4d49c9fe6957ed39eac5cdd7de3526249f99e6ed
AUX iptables-1.4.21-static-connlabel-config.patch 2195 SHA256 e03de480a940b0ac386bba2ec681f724ba39f5e53153398e061f2d74ae491c49 SHA512 d838773bf2db9f97548d2f7eaab0ce3205265a7ec8b274df479fcecb474ba09ed061abae50534c0379a1290479c2e94927595eca0f4570b27744ec165348b6b1 WHIRLPOOL c1b79bb8e9a915d27940b443c564d0d00ccbd31728b8519bd18a6957ca7085c19dd09592d94a4aecee48102303a000130eba85710ad1de1533ef783ef1c28811
-AUX iptables.init 3149 SHA256 374c4816a538bb2fbc95f36cfb4cb3c3ef563e4a1c4584f275e05fbc52d6816c SHA512 a9b95ed821ea6d83e85c39aa2cf9d8bc793119718b92ff71b270aaeb910212fa10ef263ad0b077bb4015b1997e0f5cc5a73dc629d426848706d8a7c99ac1e11d WHIRLPOOL 8bade5473e3269d940b022c835d5cd8533601bc49199da5dd20701c73ff919a05454e8e6513342c8ea68b51ad1e82d1c9451f420389d3affb317498f34855e12
+AUX iptables.init 3153 SHA256 e27ff5dd149133df9087c5a262bdfed50a1c4883573c5c205160e7320855d65f SHA512 84689d326ace1fea6176034e3fd073e2842321a3da3568439f1255d0768ce3bd010be4c531182d0b705f7faa3d95d88645960535de6a412c720800073be18bf0 WHIRLPOOL bfe3e64ebf0c6e96f9e1a8bd8f5ba4145bec8f580db52b062579ee8b34e2963f4666e82b4dac661c37dc0f493040ff57b946afb02d3dc929ce9fde3a653914f4
AUX systemd/ip6tables-restore.service 395 SHA256 679ba8327bf037e991ff07d8cf910009c67026b0faf8112d75c945b64f4b64de SHA512 e41f7bc55b2b58452b993ccb42014b5bc2701aeeef46eee845a2b016b334299ff4e6d11ba22f3aaff47195f1049dc7fd4be41a7055911420230107b1ee4c6ba3 WHIRLPOOL 232d90f8591358fe853c8c4b569b2825ba02ced59d390232a7f7fb535e3bfbbcb70972938506cbead5e6b57845310f5a91c1fd225898f185cffb96ba7d4d97f3
AUX systemd/ip6tables-store.service 243 SHA256 ce93fc2ba81f7693877479ddc75cdec94627c302a140bd27ff30656fad78e72b SHA512 7cee224f91d4c8348606ba176d0d689749a59229958cfdf4e75451d77271363e7cff71dbb7e30dbc4a5a837363a72d70d6960d2dfb218f3ad16456ae109cba10 WHIRLPOOL d84687a142843fa9cd930171e817652afb22b950214349ca156ba6da174312989973d17fed04cd129c18d4d6fbd5ad3124b9afa0d105d128333248c90fdb4ca6
AUX systemd/ip6tables.service 133 SHA256 1b8d342ffdf471ef25e365dacf106e1899b438dad4bf9154cfad2d5217c3a019 SHA512 f871e694a8c666a59840c4c7ae1f355dc47f481501b3472601b65460c1d6e163a7e33f7a6c42a84ac33131ddb96170b316e83507a43f1ede54d61446f81950dc WHIRLPOOL 24140e7398cfa494210b8d3b773bdca5ee1abbbdb29c2921e84ff025848e26844b5c20fadefa9b961ce14564ce8daa9b8e9f197b7d7ec70c26bb6609b74b10d0
AUX systemd/iptables-restore.service 391 SHA256 ace3b2085700bde96f0597e8c6f3b8524c28d4f9b6c924deb09b164a5b8e979c SHA512 222a088d487f8e5c199aec4a3619f8c8ee620ffca13c35fd3da8daf926db25fa5203226a6f4a2c426622d935ffd57c02ad4ff5edbca922f8168e29fc3e52c516 WHIRLPOOL 507cfef3650fcce3a17d56edfb39110d08397bbd96c88cb21c2cdb74c69b920142f0f68f71312ae7a6013057e0ab500546a0075806dd424fc85b9aebdb76b5f4
AUX systemd/iptables-store.service 240 SHA256 14965fd0f3cd4285e77ea1e3d9975a818b0d64fb0026b925d8434896b2cbf839 SHA512 a720e92b5571a2c3427101105e95e555f3b72541a53c5daa43e361c99ca28830e9e8dd27dbd7cfed40fbbe289ed180f9be7e0f3b6b0cd19bba022a531815fd5e WHIRLPOOL e3a5b77b2c19ad8445a21cc9c8680c2d632d968483357221fac1c309275bd17aa25c05cf23188d5ae644d5b1266c64b3dd5fe8fbdec9f2a439a212c3d1c767db
AUX systemd/iptables.service 130 SHA256 c404c54c98521817aca75b96774a24684e0c7ed2fc8de2ced78f4ae4d8a6b99d SHA512 87114ccc7eb079d1ed43d77be35cf4c91702ca960883a4bbca5dfcf74aa6f086e44f4a4251441ac3a277c93eb10e7482157caf2d62bbf2a7f5327947ede25bef WHIRLPOOL 844296866dfe2fe6b1207c99d2f938f4c87a37592e95576f9504fe056fe82fc29878b9aa1a204fa31d6711fbe7ba5cd48f7a639e4839bbe366e6220246a0d3c3
-EBUILD iptables-nftables-1.4.21-r1.ebuild 2848 SHA256 69eafd2e4492103fe0d77577d3bda56b5702d841375aaacfe3757a0926d8bef1 SHA512 963457133a1ddf5dae0bae0f161b19c157b6981294d9934b4d2b6749b676d0890ac288641b053f9cf09c208eb515ac2c2ea3a3518ca42b5d170441adc4b03fd2 WHIRLPOOL 68491592b2265057f143b9606da842a9490253534c219d0243be05b68a4fd42bb8555f519b6620cddbc5251e73474a6f3146ca706d5ec87ea49f8f4d416847df
-EBUILD iptables-nftables-1.4.21-r3.ebuild 3280 SHA256 d8f18059fa66828acdf60df5537a156bd5162c7a52e406c8fe63a4263fa03869 SHA512 461298913f0ccdcf3ef38e0b4fd01f267996b68a957f517d87a84536b57cf836441904cd749fbeb1fc8f0a65b854358a0b0b6cc49d36d51deca9516f59ad6c28 WHIRLPOOL bb326dbcd090b2bc84da71ef555b56da0a23fb17365653b4e4723e0ca8128501ae30150120ab1d43bc42644bafe44d8db4eae80f9231a06c13a023bce72d3132
+EBUILD iptables-nftables-1.4.21-r1.ebuild 2973 SHA256 ee60676b873cb9fac87fa7ddf299b0e02bf397852b80b29b7cc96afbc4f9dd38 SHA512 59aeef8629f8cddcaf9b62b58d2e8d35c2f183361f1d7a19daa9dc4562c50fb6647e2aca45adfd4bdfb85121baf0e08275ace6b1ff7ff9b22c02b2978dbf0876 WHIRLPOOL b5c5b9a099fcb5ab9cc96c7c78561e1fee2a6eb2ba101209bdeac5a4490f13bc52b9d38c4dfda899c92abcc6c7a8f1a39bdfc2d7b4292d0584d1b558bf09366b
+EBUILD iptables-nftables-1.4.21-r3.ebuild 3445 SHA256 825d38601164008306e082c23bb6da9e11df52d6ef48f4ac5329b0a4d6297adc SHA512 5c37f56836d73de2267b4274dae46e8452b0be44ac2a5906148ed69129c496e5114184f00f37415ca045ba75b5e7f6c0314070b01faf4303579f8e3942dc3a73 WHIRLPOOL 16f4829a587d15b722942bb21cce2600bf195b3285ff3f5f97fd3c2782fce47609a1219d9b52df414601e43d08bb04b17e04410b92cba50ec941a0d0242601b2
+EBUILD iptables-nftables-1.4.21-r4.ebuild 3446 SHA256 8a74dea450ad0a9fa8ffea590a5b5f90ca6698cdfec27dba5291c6d6bb30b15e SHA512 bbbcf0d9445ee01bd1634492318c69d003f8e69f09e6355a5d1161f790c7941183701308072ac656f54e178d665ba554b8df074b3a6ad467d6d66d6ffe2777e3 WHIRLPOOL d082cbbb7c9d2229caeec088f0d5cdde617338472d311e8474eb8f047953efa61379fce79e25d1a5222f5c8bec510cb6dd888a057a7dc00c67543c040daeb8c0
diff --git a/net-firewall/iptables-nftables/files/iptables-1.4.13-r1.init b/net-firewall/iptables-nftables/files/iptables-1.4.13-r1.init
index baf1c46e..db4b5527 100644
--- a/net-firewall/iptables-nftables/files/iptables-1.4.13-r1.init
+++ b/net-firewall/iptables-nftables/files/iptables-1.4.13-r1.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.3 2013/04/27 17:29:09 vapier Exp $
+# $Id: 440e840c41a8f1f6c61c1e73dbf914371dbc117d $
extra_commands="check save panic"
extra_started_commands="reload"
@@ -9,6 +9,7 @@ extra_started_commands="reload"
iptables_name="${SVCNAME}"
case "${iptables_name}" in
iptables|ip6tables)
+ :
;;
*)
iptables_name="iptables"
@@ -44,7 +45,7 @@ set_table_policy() {
*) chains="" ;;
esac
for chain in ${chains} ; do
- "${iptables_bin}" -w -t "${table}" -P "${chain}" "${policy}"
+ "${iptables_bin}" -t "${table}" -P "${chain}" "${policy}"
done
}
@@ -93,8 +94,8 @@ stop() {
for a in $( cat "${iptables_proc}" ) ; do
set_table_policy "${a}" ACCEPT
- "${iptables_bin}" -w -F -t "${a}"
- "${iptables_bin}" -w -X -t "${a}"
+ "${iptables_bin}" -F -t "${a}"
+ "${iptables_bin}" -X -t "${a}"
done
eend ${?}
@@ -109,8 +110,8 @@ reload() {
ebegin "Flushing firewall"
for a in $( cat "${iptables_proc}" ) ; do
- "${iptables_bin}" -w -F -t "${a}"
- "${iptables_bin}" -w -X -t "${a}"
+ "${iptables_bin}" -F -t "${a}"
+ "${iptables_bin}" -X -t "${a}"
done
eend $?
@@ -153,8 +154,8 @@ panic() {
ebegin "Dropping all packets"
for a in $( cat "${iptables_proc}" ) ; do
- "${iptables_bin}" -w -F -t "${a}"
- "${iptables_bin}" -w -X -t "${a}"
+ "${iptables_bin}" -F -t "${a}"
+ "${iptables_bin}" -X -t "${a}"
set_table_policy "${a}" DROP
done
diff --git a/net-firewall/iptables-nftables/files/iptables.init b/net-firewall/iptables-nftables/files/iptables.init
index f85f9d77..06d295f9 100755
--- a/net-firewall/iptables-nftables/files/iptables.init
+++ b/net-firewall/iptables-nftables/files/iptables.init
@@ -9,6 +9,7 @@ extra_started_commands="reload"
iptables_name="${SVCNAME}"
case "${iptables_name}" in
iptables|ip6tables)
+ :
;;
*)
iptables_name="iptables"
diff --git a/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r1.ebuild b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r1.ebuild
index 98bb9cd1..6adc22ec 100644
--- a/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r1.ebuild
+++ b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r1.ebuild
@@ -15,7 +15,8 @@ inherit autotools eutils git-r3 multilib systemd toolchain-funcs
#BRANCH="nft-compat"
REPO="iptables"
BRANCH="master"
-COMMIT="03091e55a0d949e35a723dadbd6fd0f78ddf3a8c"
+#COMMIT="03091e55a0d949e35a723dadbd6fd0f78ddf3a8c" # nftables merge
+COMMIT="ab8c7d82f7848d318e472a3d809ec7dab969bd04" # Alignment problem between 64bit kernel 32bit userspace
DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools, with nftables compatibility"
HOMEPAGE="http://www.netfilter.org/projects/nftables/"
diff --git a/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r3.ebuild b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r3.ebuild
index b28d7b04..307f8721 100644
--- a/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r3.ebuild
+++ b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r3.ebuild
@@ -9,12 +9,14 @@ AUTOTOOLS_AUTO_DEPEND=no
inherit autotools eutils flag-o-matic git-r3 multilib systemd toolchain-funcs
+DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools, with nftables compatibility"
+HOMEPAGE="http://www.netfilter.org/projects/nftables/"
+
REPO="iptables"
BRANCH="master"
-COMMIT="03091e55a0d949e35a723dadbd6fd0f78ddf3a8c"
+#COMMIT="03091e55a0d949e35a723dadbd6fd0f78ddf3a8c" # nftables merge
+COMMIT="ab8c7d82f7848d318e472a3d809ec7dab969bd04" # Alignment problem between 64bit kernel 32bit userspace
-DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools, with nftables compatibility"
-HOMEPAGE="http://www.netfilter.org/projects/nftables/"
EGIT_REPO_URI="git://git.netfilter.org/${REPO}.git"
#EGIT_BRANCH="${BRANCH}"
EGIT_COMMIT="${COMMIT}"
@@ -44,8 +46,8 @@ src_prepare() {
eautoreconf
- epatch "${FILESDIR}"/${P}-configure.patch #557586
- epatch "${FILESDIR}"/${P}-static-connlabel-config.patch #558234
+ epatch "${FILESDIR}"/iptables-${PV}-configure.patch #557586
+ epatch "${FILESDIR}"/iptables-${PV}-static-connlabel-config.patch #558234
# Only run autotools if user patched something
epatch_user && eautoreconf || elibtoolize
@@ -69,8 +71,8 @@ src_configure() {
--enable-devel \
--enable-shared \
--enable-libipq \
- --enable-nfsynproxy \
$(use_enable pcap bpf-compiler) \
+ $(use_enable pcap nfsynproxy) \
$(use_enable static-libs static) \
$(use_enable ipv6)
}
@@ -96,11 +98,11 @@ src_install() {
doins include/iptables/internal.h
keepdir /var/lib/iptables
- newinitd "${FILESDIR}"/${PN}.init iptables
- newconfd "${FILESDIR}"/${PN}-1.4.13.confd iptables
+ newinitd "${FILESDIR}"/iptables.init iptables
+ newconfd "${FILESDIR}"/iptables-1.4.13.confd iptables
if use ipv6 ; then
keepdir /var/lib/ip6tables
- newinitd "${FILESDIR}"/${PN}.init ip6tables
+ newinitd "${FILESDIR}"/iptables.init ip6tables
newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables
fi
diff --git a/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r4.ebuild b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r4.ebuild
new file mode 100644
index 00000000..92e167ce
--- /dev/null
+++ b/net-firewall/iptables-nftables/iptables-nftables-1.4.21-r4.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: 49b9bd8648beaa640d49fa307750928daf202308 $
+
+EAPI="5"
+
+# Force users doing their own patches to install their own tools
+AUTOTOOLS_AUTO_DEPEND=no
+
+inherit autotools eutils flag-o-matic git-r3 multilib systemd toolchain-funcs
+
+DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools, with nftables compatibility"
+HOMEPAGE="http://www.netfilter.org/projects/iptables/"
+
+REPO="iptables"
+BRANCH="master"
+#COMMIT="03091e55a0d949e35a723dadbd6fd0f78ddf3a8c" # nftables merge
+COMMIT="ab8c7d82f7848d318e472a3d809ec7dab969bd04" # Alignment problem between 64bit kernel 32bit userspace
+
+EGIT_REPO_URI="git://git.netfilter.org/${REPO}.git"
+#EGIT_BRANCH="${BRANCH}"
+EGIT_COMMIT="${COMMIT}"
+
+LICENSE="GPL-2"
+# Subslot tracks libxtables as that's the one other packages generally link
+# against and iptables changes. Will have to revisit if other sonames change.
+SLOT="0/10"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="conntrack ipv6 netlink pcap static-libs systemd"
+
+RDEPEND="
+ conntrack? ( net-libs/libnetfilter_conntrack )
+ netlink? ( net-libs/libnfnetlink )
+ pcap? ( net-libs/libpcap )
+"
+DEPEND="${RDEPEND}
+ virtual/os-headers
+ virtual/pkgconfig
+ net-libs/libnftnl
+ !net-firewall/iptables
+"
+
+src_prepare() {
+ # use the saner headers from the kernel
+ rm -f include/linux/{kernel,types}.h
+
+ eautoreconf
+
+ #epatch "${FILESDIR}"/iptables-${PV}-configure.patch #557586
+ #epatch "${FILESDIR}"/iptables-${PV}-static-connlabel-config.patch #558234
+
+ # Only run autotools if user patched something
+ epatch_user && eautoreconf || elibtoolize
+}
+
+src_configure() {
+ # Some libs use $(AR) rather than libtool to build #444282
+ tc-export AR
+
+ # Hack around struct mismatches between userland & kernel for some ABIs. #472388
+ use amd64 && [[ ${ABI} == "x32" ]] && append-flags -fpack-struct
+
+ sed -i \
+ -e "/nfnetlink=[01]/s:=[01]:=$(usex netlink 1 0):" \
+ -e "/nfconntrack=[01]/s:=[01]:=$(usex conntrack 1 0):" \
+ configure || die
+
+ econf \
+ --sbindir="${EPREFIX}/sbin" \
+ --libexecdir="${EPREFIX}/$(get_libdir)" \
+ --enable-devel \
+ --enable-shared \
+ --enable-libipq \
+ $(use_enable pcap bpf-compiler) \
+ $(use_enable pcap nfsynproxy) \
+ $(use_enable static-libs static) \
+ $(use_enable ipv6)
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_install() {
+ default
+ dodoc INCOMPATIBILITIES iptables/iptables.xslt
+
+ # all the iptables binaries are in /sbin, so might as well
+ # put these small files in with them
+ into /
+ dosbin iptables/iptables-apply
+ dosym iptables-apply /sbin/ip6tables-apply
+ doman iptables/iptables-apply.8
+
+ insinto /usr/include
+ doins include/iptables.h $(use ipv6 && echo include/ip6tables.h)
+ insinto /usr/include/iptables
+ doins include/iptables/internal.h
+
+ keepdir /var/lib/iptables
+ newinitd "${FILESDIR}"/iptables.init iptables
+ newconfd "${FILESDIR}"/iptables-1.4.13.confd iptables
+ if use ipv6 ; then
+ keepdir /var/lib/ip6tables
+ newinitd "${FILESDIR}"/iptables.init ip6tables
+ newconfd "${FILESDIR}"/ip6tables-1.4.13.confd ip6tables
+ fi
+
+ if use systemd; then
+ systemd_dounit "${FILESDIR}"/systemd/iptables{,-{re,}store}.service
+ if use ipv6 ; then
+ systemd_dounit "${FILESDIR}"/systemd/ip6tables{,-{re,}store}.service
+ fi
+ fi
+
+ # Move important libs to /lib #332175
+ gen_usr_ldscript -a ip{4,6}tc iptc xtables
+
+ prune_libtool_files --all
+}