summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-06-16 13:50:06 +0000
committerPeter Volkov <pva@gentoo.org>2011-06-16 13:50:06 +0000
commitaa659ad559ddb1eb2cf6ed97f3171198c9623a18 (patch)
treeec6ea1ad57683a6b07f54233d3997faed7ea0594 /net-firewall/xtables-addons
parentadd xtables_addons_{dnetmap,ipset{4,6}} USE flags descriptions (diff)
downloadhistorical-aa659ad559ddb1eb2cf6ed97f3171198c9623a18.tar.gz
historical-aa659ad559ddb1eb2cf6ed97f3171198c9623a18.tar.bz2
historical-aa659ad559ddb1eb2cf6ed97f3171198c9623a18.zip
Version bump.
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'net-firewall/xtables-addons')
-rw-r--r--net-firewall/xtables-addons/ChangeLog7
-rw-r--r--net-firewall/xtables-addons/Manifest14
-rw-r--r--net-firewall/xtables-addons/xtables-addons-1.36.ebuild156
3 files changed, 165 insertions, 12 deletions
diff --git a/net-firewall/xtables-addons/ChangeLog b/net-firewall/xtables-addons/ChangeLog
index f1de0777500f..6f22eb53446f 100644
--- a/net-firewall/xtables-addons/ChangeLog
+++ b/net-firewall/xtables-addons/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-firewall/xtables-addons
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.16 2011/05/11 19:22:58 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.17 2011/06/16 13:50:06 pva Exp $
+
+*xtables-addons-1.36 (16 Jun 2011)
+
+ 16 Jun 2011; Peter Volkov <pva@gentoo.org> +xtables-addons-1.36.ebuild:
+ Version bump.
11 May 2011; Christoph Mende <angelos@gentoo.org> xtables-addons-1.31.ebuild:
Stable on amd64 wrt bug #355757
diff --git a/net-firewall/xtables-addons/Manifest b/net-firewall/xtables-addons/Manifest
index 6cf7c3d2cb4e..43d87cb342f6 100644
--- a/net-firewall/xtables-addons/Manifest
+++ b/net-firewall/xtables-addons/Manifest
@@ -1,18 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
DIST xtables-addons-1.28.tar.xz 333440 RMD160 b9906c6d08870ed6e3c9e2843b16e22df2442092 SHA1 1c1a7e1be38ef1a756b504c90dd5cdffa696e2ac SHA256 3d06d6d1d8b8adeae7c9edee20ffd3f2a754eb0b187e8b9f397666e26a7dbbcc
DIST xtables-addons-1.30.tar.xz 337148 RMD160 98e4390c1e8ca14164435067583b19c78f599585 SHA1 e33972bfd34f68212bf385431b6e7663f148fb3a SHA256 51ff5fda46acb3da55f338343fde53258b3604df6878e3da86506a58e5f8c831
DIST xtables-addons-1.31.tar.xz 338224 RMD160 116771c966d01229bcbb2044323fe963a2ee7a01 SHA1 7afaa43bf9975a846a146a0335f6fa2644779b85 SHA256 030e16513775266c2832cbd96f3703d390e58b67892abe9ec72c3e1e16c9dd53
+DIST xtables-addons-1.36.tar.xz 423580 RMD160 e7e14935d41c93df184ffa20c02d6c159285c982 SHA1 4e46d094353fe2fe11f6845ed8f3c72a2386b7ac SHA256 cfa2109c332f1c8b91cf64973e79a20dae6643da0c35b9d80c16ad2687bc21c4
EBUILD xtables-addons-1.28-r1.ebuild 4186 RMD160 b362f70b738c4680e0ca7dd8f1ae2584767028bf SHA1 9cfa66cf0489fa6e51c3fce5513748858d858d4f SHA256 3cd3f236209d0c6d0f5fb7204e8f95ff3f876e97ad4889298071fd9e097de472
EBUILD xtables-addons-1.30.ebuild 4185 RMD160 67edabf5a465e90de16c8cc9664016de9c26d03c SHA1 9b7463c6debd14998ed3831156566830f0102a80 SHA256 780cb489b912d5ebe699a4f5d74da4f7924ab962abed31a94a65cc38b3f78036
EBUILD xtables-addons-1.31.ebuild 4193 RMD160 62d7312a966c4d91acb7c36e4c809c8c61b0e091 SHA1 9fb25977596054d7441f106930cb5784715294e0 SHA256 762ff274a169d37ac5d77bd456bc2f9ad247e06ccfa350c918c5a337efa69388
-MISC ChangeLog 2971 RMD160 32221c955cd254e36064cfc0a3e7c32ad633ad28 SHA1 bb9d25ebe5ea9d657b445ceb8c20a224791e99fe SHA256 6a7876e4db568cd3aa24b096c838ed58b3eb5a11bc92918d13961a55ed695915
+EBUILD xtables-addons-1.36.ebuild 4812 RMD160 3b10f68d5aa1e898ec87576fc40d0fef73ebd531 SHA1 88495a38a753c4cf874ed01f8bdf1243986facc9 SHA256 affc37c5366208c4a90deffcbed91f9cb19df0988af639ecc5ba3c35bc337d46
+MISC ChangeLog 3094 RMD160 00855d7728278aa9e96124953766169e35b6b893 SHA1 7f2bd8aa457143805402f0f6de56d2752b7dfd8b SHA256 be17ce31e9f905ad48d5ccdb81aa85cd2dc5763ba883ef7a80f1cea7b5ab1baf
MISC metadata.xml 683 RMD160 27b60860ee7f57c4345693fcd3be8d338d23bacd SHA1 1f3aac7a15cedd8261c4f62ffa90876cc76c6507 SHA256 64cb53d9fda3166dcaa6fe5c1656bb0cf1a89701ae3c451f68f4d365e1e872ad
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iF4EAREIAAYFAk3K4hcACgkQmWq1bYTyC0NEJAEAxRJpCy68OQln0vt2B5as4pPR
-GHoCMNTLrzBp8JWCQbcBAKfFChzB/XRaW2ZDhO87XXcQMmBT0wMOTXIZvN8WGKaS
-=g1Xa
------END PGP SIGNATURE-----
diff --git a/net-firewall/xtables-addons/xtables-addons-1.36.ebuild b/net-firewall/xtables-addons/xtables-addons-1.36.ebuild
new file mode 100644
index 000000000000..015baa75581d
--- /dev/null
+++ b/net-firewall/xtables-addons/xtables-addons-1.36.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/xtables-addons-1.36.ebuild,v 1.1 2011/06/16 13:50:06 pva Exp $
+
+EAPI="4"
+inherit eutils linux-info linux-mod multilib
+
+DESCRIPTION="extensions not yet accepted in the main kernel/iptables (patch-o-matic(-ng) successor)"
+HOMEPAGE="http://xtables-addons.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xtables-addons/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="modules"
+
+REQUIRED_USE="
+ xtables_addons_ipset4? ( !xtables_addons_ipset6 )
+ xtables_addons_ipset6? ( !xtables_addons_ipset4 )"
+
+MODULES="quota2 psd pknock lscan length2 ipv4options ipset6 ipset4 ipp2p iface gradm geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark echo dnetmap dhcpmac delude checksum chaos account"
+
+for mod in ${MODULES}; do
+ IUSE="${IUSE} xtables_addons_${mod}"
+done
+
+DEPEND=">=net-firewall/iptables-1.4.3"
+
+RDEPEND="${DEPEND}
+ xtables_addons_ipset4? ( !net-firewall/ipset )
+ xtables_addons_ipset6? (
+ !net-firewall/ipset
+ net-libs/libmnl )
+ xtables_addons_geoip? ( virtual/perl-Getopt-Long
+ dev-perl/Text-CSV_XS )"
+
+DEPEND="${DEPEND}
+ virtual/linux-sources"
+
+pkg_setup() {
+ if use modules; then
+ get_version
+ check_modules_supported
+ CONFIG_CHECK="NF_CONNTRACK NF_CONNTRACK_MARK ~CONNECTOR"
+ ERROR_CONNECTOR="Please, enable CONFIG_CONNECTOR if you wish to receive userspace notifications from pknock through netlink/connector"
+ linux-mod_pkg_setup
+
+ if ! linux_chkconfig_present IPV6; then
+ SKIP_IPV6_MODULES="ip6table_rawpost ipset6"
+ ewarn "No IPV6 support in kernel. Disabling: ${SKIP_IPV6_MODULES}"
+ fi
+ if ! (use xtables_addons_ipset4 || use xtables_addons_ipset6) &&
+ kernel_is -lt 2 6 35; then
+ die "${PN} with ipset requires kernel version >= 2.6.29"
+ fi
+ kernel_is -lt 2 6 29 && die "${PN} requires kernel version >= 2.6.29"
+ fi
+}
+
+# Helper for maintainer: cheks if all possible MODULES are listed.
+XA_qa_check() {
+ local all_modules
+ all_modules=$(sed -n '/^build_/{s/build_\(.*\)=.*/\L\1/;G;s/\n/ /;s/ $//;h}; ${x;p}' "${S}/mconfig")
+ if [[ ${all_modules} != ${MODULES} ]]; then
+ ewarn "QA: Modules in mconfig differ from \$MODULES in ebuild."
+ ewarn "Please, update MODULES in ebuild."
+ ewarn "'${all_modules}'"
+ fi
+}
+
+# Is there any use flag set?
+XA_has_something_to_build() {
+ local mod
+ for mod in ${MODULES}; do
+ use xtables_addons_${mod} && return
+ done
+
+ eerror "All modules are disabled. What do you want me to build?"
+ eerror "Please, set XTABLES_ADDONS to any combination of"
+ eerror "${MODULES}"
+ die "All modules are disabled."
+}
+
+# Parse Kbuid files and generates list of sources
+XA_get_module_name() {
+ [[ $# != 1 ]] && die "XA_get_sources_for_mod: needs exactly one argument."
+ local mod objdir build_mod sources_list
+ mod=${1}
+ objdir=${S}/extensions
+ # Take modules name from mconfig
+ build_mod=$(sed -n "s/\(build_${mod}\)=.*/\1/Ip" "${S}/mconfig")
+ # strip .o, = and everything before = and print
+ sources_list=$(sed -n "/^obj-[$][{]${build_mod}[}]/\
+ {s:obj-[^+]\+ [+]=[[:space:]]*::;s:[.]o::g;p}" \
+ "${objdir}/Kbuild")
+
+ if [[ -d ${S}/extensions/${sources_list} ]]; then
+ objdir=${S}/extensions/${sources_list}
+ sources_list=$(sed -n "/^obj-m/\
+ {s:obj-[^+]\+ [+]=[[:space:]]*::;s:[.]o::g;p}" \
+ "${objdir}/Kbuild")
+ fi
+ for mod_src in ${sources_list}; do
+ has ${mod_src} ${SKIP_IPV6_MODULES} || \
+ echo " ${mod_src}(xtables_addons:${S}/extensions:${objdir})"
+ done
+}
+
+src_prepare() {
+ XA_qa_check
+ XA_has_something_to_build
+
+ local mod module_name
+ if use modules; then
+ MODULE_NAMES="compat_xtables(xtables_addons:${S}/extensions:)"
+ fi
+ for mod in ${MODULES}; do
+ if use xtables_addons_${mod}; then
+ sed "s/\(build_${mod}=\).*/\1m/I" -i mconfig || die
+ if use modules; then
+ for module_name in $(XA_get_module_name ${mod}); do
+ MODULE_NAMES+=" ${module_name}"
+ done
+ fi
+ else
+ sed "s/\(build_${mod}=\).*/\1n/I" -i mconfig || die
+ fi
+ done
+ einfo "${MODULE_NAMES}" # for debugging
+
+ sed -e 's/depmod -a/true/' -i Makefile.in || die
+ sed -e '/^all-local:/{s: modules::}' \
+ -e '/^install-exec-local:/{s: modules_install::}' \
+ -i extensions/Makefile.in || die
+
+ use xtables_addons_geoip || sed -e '/^SUBDIRS/{s/geoip//}' -i Makefile.in
+}
+
+src_configure() {
+ set_arch_to_kernel # .. or it'll look for /arch/amd64/Makefile
+ econf --prefix="${EPREFIX}/" \
+ --libexecdir="${EPREFIX}/$(get_libdir)/" \
+ --with-kbuild="${KV_DIR}"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" V=1
+ use modules && BUILD_TARGETS="modules" linux-mod_src_compile
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use modules && linux-mod_src_install
+ dodoc -r README doc/*
+ find "${ED}" -type f -name '*.la' -exec rm -rf '{}' '+'
+}