diff options
author | Peter Volkov <pva@gentoo.org> | 2010-10-14 15:41:22 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2010-10-14 15:41:22 +0000 |
commit | a8b759c5f152a644238b7eb81a8ebd7dff5ac3e6 (patch) | |
tree | 95a635795dad29a7fbe6070d4fb5506bec27d124 /net-firewall | |
parent | x86 stable, bug 336869 (diff) | |
download | historical-a8b759c5f152a644238b7eb81a8ebd7dff5ac3e6.tar.gz historical-a8b759c5f152a644238b7eb81a8ebd7dff5ac3e6.tar.bz2 historical-a8b759c5f152a644238b7eb81a8ebd7dff5ac3e6.zip |
Version bump.
Package-Manager: portage-2.2_rc83/cvs/Linux x86_64
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/ipset/ChangeLog | 7 | ||||
-rw-r--r-- | net-firewall/ipset/Manifest | 4 | ||||
-rw-r--r-- | net-firewall/ipset/ipset-4.4.ebuild | 101 |
3 files changed, 110 insertions, 2 deletions
diff --git a/net-firewall/ipset/ChangeLog b/net-firewall/ipset/ChangeLog index 565c28260fa9..757c6794de3e 100644 --- a/net-firewall/ipset/ChangeLog +++ b/net-firewall/ipset/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-firewall/ipset # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.37 2010/08/25 09:13:21 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.38 2010/10/14 15:41:22 pva Exp $ + +*ipset-4.4 (14 Oct 2010) + + 14 Oct 2010; Peter Volkov <pva@gentoo.org> +ipset-4.4.ebuild: + Version bump. *ipset-4.3 (25 Aug 2010) diff --git a/net-firewall/ipset/Manifest b/net-firewall/ipset/Manifest index 8b5961ee15a7..019e2226a4ba 100644 --- a/net-firewall/ipset/Manifest +++ b/net-firewall/ipset/Manifest @@ -3,9 +3,11 @@ DIST ipset-2.4.7.tar.bz2 66470 RMD160 6127a3b5ba7fd485e9a95a232ed40bc8ef19ed27 S DIST ipset-4.1.tar.bz2 66123 RMD160 c20a3fc0be187dd5872659b45b7ca0e6ee63e714 SHA1 0b85beb5f21e5183010abef497d16117343fb4f1 SHA256 116ee704355d52919af65379ddb69545e5d4d4602adf2f3765fc649929e7a47a DIST ipset-4.2.tar.bz2 65839 RMD160 9d24d5540e43dd9fdb11b7c28c660c6533997295 SHA1 40e4b4c80209456084617dd7890391032651a40e SHA256 5f1b9e5245b7998106660a5b29d9580156feda1c669e7214793a90e02e4a1203 DIST ipset-4.3.tar.bz2 72019 RMD160 f800ff0f199a528d1ada182b2ff6a932273b72e8 SHA1 63530ee8183a67ccba2148fd9c5695c2aaede0a7 SHA256 ec7b75044206d00e98cf7cf25d9ae9022cb9e5a5dbfbe8c5728272e53c334d44 +DIST ipset-4.4.tar.bz2 72636 RMD160 464de587beacab53f2ca6a73f5a081ddd0156d16 SHA1 fb86d8b00ed57e13b3ae8dd876f9b45995cabbf3 SHA256 19bb07a39d6c1e705cc0715e9e3ed07f450bc4869e2534169cfd7be59271bfd9 EBUILD ipset-2.4.7.ebuild 2598 RMD160 d301a1f55b887ea8d911e2ae757473c1af08268b SHA1 b831f89ea9b811f14af30f97e05e99ccf22e30f7 SHA256 ba66819160a1638f49afeceffdc6fbb0f8e402eece8bf35382bebc0ec6236efd EBUILD ipset-4.1.ebuild 2772 RMD160 20c98b54f6ecb8e3cea2fb8954c0a83063f12fd1 SHA1 830cc0c049f00fc317a069b91ed0e2884edc4ded SHA256 264d1d83f258775a231441a17f64199f939353916921eed745fc77b7319b239b EBUILD ipset-4.2.ebuild 2774 RMD160 1ac1abc15d77cac12e24fae657e1fb1cae276a44 SHA1 929a22199c39bf319469daa36421333d47c1653a SHA256 615998dbd9d302c24cf3d62d215c4da0bc03aada6cab55d6ca51b4e4f006da04 EBUILD ipset-4.3.ebuild 2842 RMD160 12243ae5dc428aa2d5c748afd53d73307c4cb185 SHA1 c7e6e1d5133821b5f31640a68b36ffb3aac4deed SHA256 97d2d8676f21a839915d0fa6c19276a231278856a4c51fc0d702e707b05f611b -MISC ChangeLog 7058 RMD160 8cf657490178ea1c44d0da8c90dde973bbdf5f90 SHA1 e12e26d99ebab07694e9ab867a8d16d520646218 SHA256 c6bd3bd5a13ce459b99ca5f0f9ccbbccb10544168b2242f862c56b440dba59f0 +EBUILD ipset-4.4.ebuild 2842 RMD160 dceb688eff07e9e858869c11f243238de008bd42 SHA1 990ad1e54f222147fd45769fd6f211f973a0aa35 SHA256 33ef9e74bf20883fa2a6741f9d68fb58c9c5a0cd603832e177437703e32fbdc7 +MISC ChangeLog 7165 RMD160 0356535218dbc78f8ec6e45bfe3661e7d3fcf680 SHA1 fa62adad66d5be3f492ef84a609a57766472fbfa SHA256 f925105c12ffa53558a118906d5f2358a488035bba7df63425914bbd07966248 MISC metadata.xml 282 RMD160 aa8f4511de4ce6c391a019bfe77d4fbb42d0abb6 SHA1 721fca55a38262a0101e2e6680443986c27a681d SHA256 f4824882e12d63f3488e08077df95b12dca429a0275b82c541e4098527773fa5 diff --git a/net-firewall/ipset/ipset-4.4.ebuild b/net-firewall/ipset/ipset-4.4.ebuild new file mode 100644 index 000000000000..ae3dae83555f --- /dev/null +++ b/net-firewall/ipset/ipset-4.4.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-4.4.ebuild,v 1.1 2010/10/14 15:41:22 pva Exp $ + +EAPI="2" + +inherit eutils versionator toolchain-funcs linux-mod + +DESCRIPTION="IPset tool for iptables, successor to ippool." +HOMEPAGE="http://ipset.netfilter.org/" +SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="modules" + +RDEPEND=">=net-firewall/iptables-1.4.4" +DEPEND="${RDEPEND}" + +# configurable from outside +[ -z "${IP_NF_SET_MAX}" ] && IP_NF_SET_MAX=256 +[ -z "${IP_NF_SET_HASHSIZE}" ] && IP_NF_SET_HASHSIZE=1024 +BUILD_PARAMS="IP_NF_SET_MAX=$IP_NF_SET_MAX IP_NF_SET_HASHSIZE=${IP_NF_SET_HASHSIZE}" +# module fun +BUILD_TARGETS="all" +MODULE_NAMES_ARG="kernel/net/ipv4/netfilter:${S}/kernel" +MODULE_NAMES="" +for i in ip_set{,_{setlist,{ip,port,macip}map,{ip,net,ipport,ipportip,ipportnet}hash,iptree{,map}}} \ + ipt_{SET,set}; do + MODULE_NAMES="${MODULE_NAMES} ${i}(${MODULE_NAMES_ARG})" +done +# sanity +CONFIG_CHECK="NETFILTER" +ERROR_CFG="ipset requires netfilter support in your kernel." + +pkg_setup() { + get_version + + build_modules=0 + if use modules; then + if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then + if linux_chkconfig_builtin "IP_NF_SET"; then #274577 + einfo "Modular kernel detected but IP_NF_SET=y, will not build kernel modules" + else + build_modules=1 + einfo "Modular kernel detected, will build kernel modules" + fi + else + einfo "Nonmodular kernel detected, will not build kernel modules" + fi + fi + + [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup + myconf="${myconf} PREFIX=" + myconf="${myconf} LIBDIR=/$(get_libdir)" + myconf="${myconf} BINDIR=/sbin" + myconf="${myconf} MANDIR=/usr/share/man" + myconf="${myconf} INCDIR=/usr/include" + myconf="${myconf} NO_EXTRA_WARN_FLAGS=yes" + export myconf +} + +src_prepare() { + sed -i \ + -e 's/KERNELDIR/(KERNELDIR)/g' \ + -e 's/^(\?KERNEL_\?DIR.*/KERNELDIR ?= /' \ + -e '/^all::/iV ?= 0' \ + -e '/^all::/iKBUILD_OUTPUT ?=' \ + -e '/$(MAKE)/{s/$@/ V=$(V) KBUILD_OUTPUT=$(KBUILD_OUTPUT) modules/}' \ + "${S}"/kernel/Makefile +} + +src_compile() { + einfo "Building userspace" + emake \ + CC="$(tc-getCC)" \ + COPT_FLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + ${myconf} \ + binaries || die "failed to build" + + if [[ ${build_modules} -eq 1 ]]; then + einfo "Building kernel modules" + cd "${S}/kernel" + export KERNELDIR="${KERNEL_DIR}" + linux-mod_src_compile || die "failed to build modules" + fi +} + +src_install() { + einfo "Installing userspace" + emake DESTDIR="${D}" ${myconf} binaries_install || die "failed to package" + + if [[ ${build_modules} -eq 1 ]]; then + einfo "Installing kernel modules" + cd "${S}/kernel" + export KERNELDIR="${KERNEL_DIR}" + linux-mod_src_install + fi +} |