diff options
author | 2018-05-29 00:47:02 +0100 | |
---|---|---|
committer | 2018-05-29 00:47:02 +0100 | |
commit | 272a14fa2e7d240615769b4b4631ec306e0025c8 (patch) | |
tree | ed7bf6e73ea11c9e45dde04fb5ce9309bd9c2b50 /net-firewall | |
parent | Update net-analyzer/vnstat-1.17 (diff) | |
download | srcshelton-272a14fa2e7d240615769b4b4631ec306e0025c8.tar.gz srcshelton-272a14fa2e7d240615769b4b4631ec306e0025c8.tar.bz2 srcshelton-272a14fa2e7d240615769b4b4631ec306e0025c8.zip |
Add net-firewall/iptables-1.6.2-r2
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/iptables/Manifest | 2 | ||||
-rw-r--r-- | net-firewall/iptables/iptables-1.6.2-r2.ebuild | 133 |
2 files changed, 135 insertions, 0 deletions
diff --git a/net-firewall/iptables/Manifest b/net-firewall/iptables/Manifest index 5bdb8aee..c79200a1 100644 --- a/net-firewall/iptables/Manifest +++ b/net-firewall/iptables/Manifest @@ -11,8 +11,10 @@ AUX systemd/iptables-store.service 240 BLAKE2B 7ddb4425e63cd41f421767fab25a7b055 AUX systemd/iptables.service 130 BLAKE2B 1b4881253eae9fd24c831931e5836efc3d3bb6f7ebb1762ca5aabb31813e3298e02d66d557efa73e6f252bf3f67898a2b646c863879dd993a613796b4c057019 SHA512 87114ccc7eb079d1ed43d77be35cf4c91702ca960883a4bbca5dfcf74aa6f086e44f4a4251441ac3a277c93eb10e7482157caf2d62bbf2a7f5327947ede25bef DIST iptables-1.6.0.tar.bz2 608288 BLAKE2B 4272860f434b4c6951d9ea32219e96c6907e4bcafaf0429d671d109b73b52aead4f17577f0a148a87e51b33708ca8c9b48ab6d11321e2baf138c0e6bdd636c78 SHA512 60360910db76e3265fb7b6456a55b91708263bde9c4e5b9cadf3832d2e2a9db3e6cb60c82e278ea0672618bd5c9566c374e00d19d35a2e8f330116c3ab6aaf51 DIST iptables-1.6.1.tar.bz2 620890 BLAKE2B b45ac26e1fb7e8b17a6df0afab3b6c0e2f0a5df9191367548136b3ce9aadc1bcb875b8bc0403e6f12fcf487054e96418f4ef34da827af8989fd4dcf83cd3cd8d SHA512 12280db6e6ef8e68da2537e9da59fc601790fd02b1ba38a37c90dbb56272018329dccb8be995f96ecd5d94fafa6043204f3e8f8ee96531685d9e3c55359d2ee8 +DIST iptables-1.6.2.tar.bz2 639785 BLAKE2B 3d129756fd33c8c73d56d57e3c5595896db86ded14834a45db21b964d82840b62216ce3cea4ae4960e8c5f0671df3cc6bfb222f68d29cf3a8c99e0eee14bf017 SHA512 04f22e969c794246b9aa28055b202638081cfb0bb4a5625c049a30c48ac84cdd41db12a53c5831398cfe47c8f5691aa02b30b0ae3b5afe0f20ec48cf86a799c0 EBUILD iptables-1.6.0-r1.ebuild 3295 BLAKE2B 67aa7f4d6349c31fa8738b35dc9d3664f7f127c0b731eff97ac7c071fb4e9c3174754f670f67ad42695aff2264837f74e6e3bb4a5680ed3818a5e92a689194ae SHA512 cdbbd4286e2df731a2e4f91f8c147e5ff1ed319bbfebb493e3760bb4f4c5f61df88f217133e5760e8f3c8dce6f37f9303e6274eab4f817e4225975e3a03e69d8 EBUILD iptables-1.6.0.ebuild 3307 BLAKE2B e716ba3e8271e4c7bdd92b229e750242c32715ce289e9220e592747768c19271326b86b8563320aa5f4e674b15c44cc4be2e3ac71f0222464aad4a35f560e7d7 SHA512 24d8cbebf82fea1f367009e035708a1cd53e867df1e71cdbdc9dc57922da0082a7b6bf4921675edee7e1995ea033bf444fdd46f8e05f7863cd0423205ba143b7 EBUILD iptables-1.6.1-r2.ebuild 3254 BLAKE2B e465c656d5469af29689e7e8fa50092aac5851a5b5e9893dfd4ea228c56afef8a5bebf8efce56e6b91a52bdb0f2a1d50e7ebdc73188886e24d1396748c452dd2 SHA512 297d1edc3c77e4fcdd3fe1223b717b4344ca5ebb77c84668ab2787d79705f9eb8c2d767fac60ad11fdc8a5e6348d7b9d97f33354c48e9a2305f58beb5f6ecaf8 EBUILD iptables-1.6.1-r3.ebuild 3373 BLAKE2B 784cc92fe682d54f1b345932d8aadfd31a28a40cb5016f8fa07ef2e81dfe5ceeb8e32d94412e7d8f86f3b9d88e9e8f2986f9bcbad58d4423abd30b127e3eb58e SHA512 d95f73d9785c0287d37c1a1065ab49680738d2cb56c3cd24fb2fc4e9824ff5f668a4b6a1bd11763e763f63dc7f1615253105e39921eff1c6e9e3520242be9794 +EBUILD iptables-1.6.2-r2.ebuild 3526 BLAKE2B 4e44be947c86ba9035f842357686c6d47ef927659c66a544d3e11636fd1c67ecf3da19697c2932f7babce03c7c1aaf3d26734c80d0c4e7b0e3ff2afca16c5781 SHA512 40f8e6a6db90991d7c580f60c724040e0afbd04a71f70f7f5a7055429f9021effd72eaa834840c405461538f97461bb74c78cbd79e0c753ca4e68d469f87d422 EBUILD iptables-9999.ebuild 3229 BLAKE2B ec38b1d53fc79fe8cd41dde8389ade7518cede40ae8957c828a7fc12b78b28b5de60b76aebd468ca4a10e93a27b95793367f5e1fa24e30eed32d7847508bd0ca SHA512 29355ac36360f33a26b0dea26cc9a76498c62b6ba384ead1460cd458b5ed1e5365b690155b6be783d2c0dbb2bc2d334478472a65de4f624d55a0e1a3fb49a9a5 diff --git a/net-firewall/iptables/iptables-1.6.2-r2.ebuild b/net-firewall/iptables/iptables-1.6.2-r2.ebuild new file mode 100644 index 00000000..b4b778c9 --- /dev/null +++ b/net-firewall/iptables/iptables-1.6.2-r2.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# Force users doing their own patches to install their own tools +AUTOTOOLS_AUTO_DEPEND=no + +inherit autotools flag-o-matic ltprune multilib systemd toolchain-funcs + +DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools" +HOMEPAGE="https://www.netfilter.org/projects/iptables/" +SRC_URI="https://www.netfilter.org/projects/iptables/files/${P}.tar.bz2" + +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/12" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="conntrack ipv6 netlink nftables pcap static-libs systemd" + +COMMON_DEPEND=" + conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 ) + netlink? ( net-libs/libnfnetlink ) + nftables? ( + >=net-libs/libmnl-1.0:0= + >=net-libs/libnftnl-1.0.5:0= + ) + pcap? ( net-libs/libpcap ) +" +DEPEND="${COMMON_DEPEND} + virtual/os-headers + virtual/pkgconfig + nftables? ( + sys-devel/flex + virtual/yacc + ) +" +RDEPEND="${COMMON_DEPEND} + nftables? ( + !<net-firewall/ebtables-2.0.10.4-r2 + net-misc/ethertypes + ) +" + +src_prepare() { + # use the saner headers from the kernel + rm -f include/linux/{kernel,types}.h + + # Only run autotools if user patched something + eapply_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 + + sed -i \ + -e '/define XT_LOCK_NAME/s:"/run/:"/var/run/:' \ + iptables/xshared.c || die + + local myeconfargs=( + --sbindir="${EPREFIX}/sbin" + --libexecdir="${EPREFIX}/$(get_libdir)" + --enable-devel + --enable-shared + --enable-libipq + $(use_enable nftables) + $(use_enable pcap bpf-compiler) + $(use_enable pcap nfsynproxy) + $(use_enable static-libs static) + $(use_enable ipv6) + --with-xt-lock-name="/var/run/xtables.lock" + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # Deal with parallel build errors. + use nftables && emake -C iptables xtables-config-parser.h + 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}"/${PN}.init iptables + newconfd "${FILESDIR}"/${PN}-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 nftables; then + # Bug 647458 + rm "${ED%/}"/etc/ethertypes || die + 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 +} |