summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-06-18 19:37:26 +0000
committerAnthony G. Basile <blueness@gentoo.org>2013-06-18 19:37:26 +0000
commit1339343155d1dbc00768ded6c47e4cb34b2a7818 (patch)
treee4b795e12db582fa5898efbc268cabacecdcc481 /net-firewall/xtables-addons
parentDrop stable sparc. Drop old versions. (diff)
downloadhistorical-1339343155d1dbc00768ded6c47e4cb34b2a7818.tar.gz
historical-1339343155d1dbc00768ded6c47e4cb34b2a7818.tar.bz2
historical-1339343155d1dbc00768ded6c47e4cb34b2a7818.zip
Version bump
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64 Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'net-firewall/xtables-addons')
-rw-r--r--net-firewall/xtables-addons/ChangeLog8
-rw-r--r--net-firewall/xtables-addons/Manifest26
-rw-r--r--net-firewall/xtables-addons/xtables-addons-2.3.ebuild169
3 files changed, 193 insertions, 10 deletions
diff --git a/net-firewall/xtables-addons/ChangeLog b/net-firewall/xtables-addons/ChangeLog
index 5f612371fc88..cda338ae3754 100644
--- a/net-firewall/xtables-addons/ChangeLog
+++ b/net-firewall/xtables-addons/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-firewall/xtables-addons
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.41 2013/05/17 18:59:32 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.42 2013/06/18 19:36:55 blueness Exp $
+
+*xtables-addons-2.3 (18 Jun 2013)
+
+ 18 Jun 2013; Anthony G. Basile <blueness@gentoo.org>
+ +xtables-addons-2.3.ebuild:
+ Version bump
*xtables-addons-2.2 (17 May 2013)
diff --git a/net-firewall/xtables-addons/Manifest b/net-firewall/xtables-addons/Manifest
index 67e134eedaaa..07245b5ea5a4 100644
--- a/net-firewall/xtables-addons/Manifest
+++ b/net-firewall/xtables-addons/Manifest
@@ -8,6 +8,7 @@ DIST xtables-addons-1.45.tar.xz 317316 SHA256 b18113ca9320240eb7f33997a3d5b5da33
DIST xtables-addons-1.47.1.tar.xz 323312 SHA256 06535dbefaa7725870750048842b4b53f5a4f8d8b16d5ce61bb4cc28e0b99326 SHA512 4920c9fae1a5b026f48562590b9221d497127197806f52f2eeba269faf8203b3da2e2ab6ff01f273ecac457d19399c42b4d163c18fa405bfe15b54f46478227d WHIRLPOOL 6654fb33c96eb052b94047445682a26f141532c2db5404ec62c29d40741a34ac9138ba1a5de494d7f1b8706a5de425b1188f79fa6195a824d2642ba506f6bdc1
DIST xtables-addons-2.1.tar.xz 316412 SHA256 1d788bf647d96cfbcc2e61c3a32702cfdde40fea857407d2674731b41ac3ae79 SHA512 df8617f8dbc386e1264063fa1650a18021a199e8d301b7a2133c840f1cd54d348d5b6e46b823a778feb9682d65d898c8d31c0df35ee2b914865b126485973973 WHIRLPOOL d9146f96fb5c166e2944d45b69c929f56fb8104df9599fb9bdc4be83fc6540f26782dd8fd8866a06b7b0531207db7ce41f95439efdb07f0fa5d73a34e2028cd0
DIST xtables-addons-2.2.tar.xz 316840 SHA256 bafaf53b896272adcf17f240339c866eff07d30b51be8893a08deaf69f8f13ef SHA512 1bfdfe5a540a4aeb32511c8092662a9694bc8b58c5b369065380fdca2044b24edb1e47ed7bf301771ee36c782f8ff457fd1f8cfa76ded5aaadf35f41292f6f8e WHIRLPOOL 154f3dbc8e3e4c7063bef0cca8fa999099d8136c4e11245f058590325c09c8d1ea1a96a8927be5f5d9ff359c1bfdcd760892b9a1ea14e6056a01c304d4b1d777
+DIST xtables-addons-2.3.tar.xz 316452 SHA256 7ab43981d594131ec8d72d4604c92c25dcf67dd4cae6aabb71113238a27cdff9 SHA512 08d529f0a2fa96ba715d2142934d6568a3c4f0ddb49f06c3c4d4ac200de0a4d2b59a4007302b557ca21014cbacda104e7781df0d5158e5313a673a928453abcc WHIRLPOOL d9929c3ede195ae87fd5b063814f2d27a0ccc772b8cc7eaee7c4d551af58e9f91e4fbbf420c058522563ea9f7ee082e280f124118bee4997763eb35738e3facc
EBUILD xtables-addons-1.37.ebuild 5228 SHA256 15ef815012c58c8a068d0962b0b2699fdcd20aaac1906b3b0b649c967d45e382 SHA512 21190fb4c3d0212fb29f51f232dbe762ae0f43bf6c903c18aec8f8894bdb42de80819767e25d157c263592260dc9c3636a369045475c6a1d9e2685c41158947f WHIRLPOOL c2a13ee8cc9ec0fda756213bef2d56e5df6b982f15be97fce5a1638a722083d643b2361de0f5476b7c71872f79084772474bdb626810a6daa9ad0eb5f5fa49bc
EBUILD xtables-addons-1.38.ebuild 5575 SHA256 19a3c5949e827c440f22d6ffd025ff3df46bb8a20014da8d064ea7e68c533ca4 SHA512 2e4936ad623359aef07c711254473c995345c5b268775338c8c214ce84bff46d6c46b4bf3bb8debea96fc63bfda86f8dffd06d3ee9d5e6bac1862aa523719a40 WHIRLPOOL 6fc29ddf6b1268f2e0141399ff212476a322d5524d4c85d75519e68dd8c758cc0fa551a79fb5b113e5a722d38bd099bbb2518cf2f7f87830ca1938dd4b5fb5ac
EBUILD xtables-addons-1.39.ebuild 5384 SHA256 ad6d93a0f1ae2bb74d9afb0078a83411855af1304616616c146b31c741be1a4c SHA512 5b1df369a53ddf04588a4a9439890509fb147a4b0123e96560f509145e237ceb5c705c65878f86c190a123b54be00216a8641aa0873b4c57dd7a158f052560c7 WHIRLPOOL 13ddcc1d8f8c5ee9785c1fc09df7549786294612602b0769bfb5f4cdfffbcf65a78df28f6260eb876dda1ea05fdb564493a7e911c4a8eac06dd844c915229de7
@@ -15,16 +16,23 @@ EBUILD xtables-addons-1.45.ebuild 5181 SHA256 448a0a164d1eb73afd21f438f7d48c5e99
EBUILD xtables-addons-1.47.1.ebuild 5265 SHA256 d5295bd97c8df0909859cf5e5f462777986de609e177f3c3c754e10507c30a3d SHA512 a364882eb9dd8d8b07a70b573321bb55e8d0adb79ca2773cc74274f49b05ee7ac868d267f48e7ef9bb7fdf598655771ac2304cfa1a1859c0ad17c77d929bd102 WHIRLPOOL 18c41bb43ca3a729be86a0a99a8500c706df05f00cf39c49d090f5bd53047cc2d78ec593b40a6f3039b5899a924cad77b6d031daed69d68cac4f508db62b725a
EBUILD xtables-addons-2.1.ebuild 5096 SHA256 70d60abd4a0c3adfd79e65d512cbd8eaf9752094751c7564a7615ba2f0ca0f31 SHA512 b5171c3db68277d4055db2096b8440fec64789d96e524c4da3c1d052aa52cc650a4db7591d733d18f5a8d8a7c8f3239f1831157ac00264203e54a6770b1b6bd0 WHIRLPOOL 2bc1f8168b4ba1ef32275af72babf58f83e3ff98bb098e689a834ad13eebf69b885712f7e786c7e56da2ef009a5a7b5d0b372b6bb2affe4f89eee8b63b763533
EBUILD xtables-addons-2.2.ebuild 5099 SHA256 e62bea46642ce709763f1da2da13c87ab62c9d4ab3485eff6db5a9531e9ee72c SHA512 61b1148949dad10ddf7896983c6ef10d514eda6375fa280e733844664cb5fc12939867d14d38c37c63839a6ea4a0f4803d68a8518849f264502d4c166d854817 WHIRLPOOL a37560f31b6418abc5e99eb2c8edee3e5cdeacc1cc44a3ae49c7e7605b55e6f8c08e0db560c55e57470fa7e1234377e6861394b2cfa2a538bc4f84d1f15d6e1d
-MISC ChangeLog 6951 SHA256 ae4595da873d46a2feb2e5e9e911224812a3e622e57e64a8ec9cf41330978711 SHA512 4780236c1e79257e181c1cca0f684384c8e7cfe648234c68f1dfc24ec5787a6733233f3d7a09f6b8e7257331f3f288ca666336ba35b382c8d089509471ba9725 WHIRLPOOL 5ae96f1af4dd96c3e5501ba7937674069b674177b307a1ac183441d54d52fd11a53465a2d63e4e81d0a884615a2a1135e7373f8b2ba942dd0a516ebf4a29e805
+EBUILD xtables-addons-2.3.ebuild 5098 SHA256 7161eb11e62530ad4ea882053ed4b8724fa693a31a5bd70381ff24359291ead0 SHA512 2c867e94265cb3fd9198335285057d4747e799ab15e7a7daca08d82a2b6b3c9cd38fb5e1a437e06cb70d28548e0348e960db0b7aa9a50d9c0a801f7632b26826 WHIRLPOOL a8040616db4990721dc63586c28403b3d58ece3f08bbdb07ae2fc7fe38be7c812f3fd9b310ab8a22d8bbb697e938581a0a5a753727e9aff8b00f7d29c918ca0f
+MISC ChangeLog 7086 SHA256 9e7e093723d0a53a36027f3d90285b2053cfd8b29a93b5668cd603bf95c13a8c SHA512 93c7df63ebe73751c5a5643c46ccabc7e2317225ffaf175376cdee14d3dc192dda0318448090562b05eb0fc483f11fcb52d6bb4e7070bcffa99ede1bc9b4d824 WHIRLPOOL 7c70ecba388b723142858c4a1bf6b4ad0ba080cd7792d2835833baa22fb988d001378b23a4f33eb726ea2cf60a59f4cc7fc534f86a244d5490b0be9c39a540c1
MISC metadata.xml 879 SHA256 f285cbfe58c7e6eb33e8abbf92a14e20826d29020931872fa15b773b7885419e SHA512 a4eb5230ac1d2f39767d694c7ae6a86c4b90c4c64d4e18183677e5086b68e05c65e5f86f5555ef9d972595a8622f5b3893badf0077ee46559fa607986442d4a9 WHIRLPOOL 9ad00e9ca70a6205cfdc30b97526ea9afda17e0b3663a0c0a2ec7564a0837d411f2deb8648c796701cd0dbfebd7a3bd2df405098e746cdd47789ccd85ca3a314
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJRln5YAAoJEAmJmMX429rebVUIALdThnLWdFkr42uvlnFE674w
-KdyiI8lZv40SD7yx96N5VqRreoydVGVntPR2PVh3bOhwjvMYjv6bB0zE4pOxFaRD
-nLHUTLlySB0CyFuYFjVmjgIE674Ld/Qp+/pClrzu7jbYbhTUskzyqSE4KHbmJPQF
-Gjnf8ADITTZloyw4doKXXy7YSTpuRusBEK11slT7biwIsbIMYzqt4UiFUaDJbGYx
-/cNC42vFikDnuolZkiucBXKFmANUmhua0xmNfgfT51/FY0OeEhGmDuo214R4mn0p
-iEG6ItSjd2gzDpVPuew0Cxj1iCrH5aeck4O2dAP50S5l/knLP0wo+KA92wE3Ct4=
-=iOB0
+iQIcBAEBCAAGBQJRwLcqAAoJEJOE+m71LUu6VQsQAKRDgEFbskLyBj6pBbi4ks59
+VN2Bao18NzPydH08CpMQIHdzKw5dFU0Ggnn6/TnOSUjiEzSky6b9ypMmWtMJMC0x
+VeeSFdbwxKLoH8t17wcMPhA5pJ0LOmgiGX21upzL9wnOQ0FM0vJYDTkId7Py5s2K
+dC02PY4q6hwVQOkfsjSSR1ucomM3HVq+hAGMVoV2ICSEBRqT+ukFIR3rvFdUM6Ab
+pJHePNvKK4btlJHYLdh6R60RHROx/uL0u7YQFwNBHo3Ddy8ZsyATjfE+xa+yshp4
+XjfgulEbcZ7NIhnfWjgmDUe1oNRuYp2WkLqJYESXmaRUE/vkLXsQTuvil9W9CS3h
+PkkfW1Vvc9R0ynrUvxL2Z9DIeP20G4V7zJP/fAmGs7CiYlFuSZLgM+BbdmDpg46a
+MUfvQnZWHV94RcdMNvXKK5jR9oaTSTjnun5A0NLKtgC0Qj0FefnfF1ioE+siFVhD
+nyRfpt12WkvQ437EVcpM7nF3iObJD3at7iyXGLavHh5F15P/7YZKFdME4Hgm4+as
+eTLrEdpSHU1MTtoNH9wogX72MeFSrBO5P4oCzbPQy+QMgLXbLEOeg9ZIEHKGNUsK
+iimPDM8xeWWXCehqhJj/qkf/WLdoVigj4y6V0vOsmZIpLLa2t6Fe9DNqrXv2+YV1
+e/57wTvsWtJdNGzHBEac
+=/nIl
-----END PGP SIGNATURE-----
diff --git a/net-firewall/xtables-addons/xtables-addons-2.3.ebuild b/net-firewall/xtables-addons/xtables-addons-2.3.ebuild
new file mode 100644
index 000000000000..ceb4ddf6973d
--- /dev/null
+++ b/net-firewall/xtables-addons/xtables-addons-2.3.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/xtables-addons-2.3.ebuild,v 1.1 2013/06/18 19:36:55 blueness Exp $
+
+EAPI="5"
+
+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"
+
+MODULES="quota2 psd pknock lscan length2 ipv4options ipp2p iface gradm geoip fuzzy condition tarpit sysrq steal rawnat logmark ipmark echo dnetmap dhcpmac delude chaos account"
+
+for mod in ${MODULES}; do
+ IUSE="${IUSE} xtables_addons_${mod}"
+done
+
+DEPEND=">=net-firewall/iptables-1.4.5"
+
+RDEPEND="${DEPEND}
+ xtables_addons_geoip? (
+ app-arch/unzip
+ dev-perl/Text-CSV_XS
+ virtual/perl-Getopt-Long
+ )
+"
+
+DEPEND="${DEPEND}
+ virtual/linux-sources"
+
+SKIP_MODULES=""
+
+# XA_kernel_check tee "2 6 32"
+XA_check4internal_module() {
+ local mod=${1}
+ local version=${2}
+ local kconfigname=${3}
+
+ if use xtables_addons_${mod} && kernel_is -gt ${version}; then
+ ewarn "${kconfigname} should be provided by the kernel. Skipping its build..."
+ if ! linux_chkconfig_present ${kconfigname}; then
+ ewarn "Please enable ${kconfigname} target in your kernel
+ configuration or disable checksum module in ${PN}."
+ fi
+ # SKIP_MODULES in case we need to disable building of everything
+ # like having this USE disabled
+ SKIP_MODULES+=" ${mod}"
+ fi
+}
+
+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"
+ ewarn "No IPV6 support in kernel. Disabling: ${SKIP_IPV6_MODULES}"
+ fi
+ kernel_is -lt 3 7 && die "${P} requires kernel version >= 3.7, if you have older kernel please use 1.x version instead"
+ 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 ! has ${mod} ${SKIP_MODULES} && 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_PARAMS="V=1" 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 '{}' '+'
+}