summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-11-15 17:34:19 +0000
committerPeter Volkov <pva@gentoo.org>2009-11-15 17:34:19 +0000
commit7b3347add1678b54f8c68eafd5f77b431ea27e75 (patch)
tree2a998ab932a0f47640b256371aecb5c554602ab7 /net-firewall
parentVersion bump. (diff)
downloadgentoo-2-7b3347add1678b54f8c68eafd5f77b431ea27e75.tar.gz
gentoo-2-7b3347add1678b54f8c68eafd5f77b431ea27e75.tar.bz2
gentoo-2-7b3347add1678b54f8c68eafd5f77b431ea27e75.zip
USE='modules' support.
(Portage version: 2.1.7.4/cvs/Linux x86_64)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/ipset/ChangeLog5
-rw-r--r--net-firewall/ipset/ipset-4.1.ebuild29
2 files changed, 19 insertions, 15 deletions
diff --git a/net-firewall/ipset/ChangeLog b/net-firewall/ipset/ChangeLog
index ca392d426146..da458d9b8a41 100644
--- a/net-firewall/ipset/ChangeLog
+++ b/net-firewall/ipset/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-firewall/ipset
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.32 2009/11/14 09:01:20 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.33 2009/11/15 17:34:19 pva Exp $
+
+ 15 Nov 2009; Peter Volkov <pva@gentoo.org> ipset-4.1.ebuild:
+ USE='modules' support.
14 Nov 2009; Peter Volkov <pva@gentoo.org> ipset-4.1.ebuild:
Do not build modules in case kernel is patched and modules are built in,
diff --git a/net-firewall/ipset/ipset-4.1.ebuild b/net-firewall/ipset/ipset-4.1.ebuild
index 3070633e292f..bc450b904c8b 100644
--- a/net-firewall/ipset/ipset-4.1.ebuild
+++ b/net-firewall/ipset/ipset-4.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-4.1.ebuild,v 1.2 2009/11/14 09:01:20 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-4.1.ebuild,v 1.3 2009/11/15 17:34:19 pva Exp $
EAPI="2"
@@ -13,7 +13,7 @@ SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
+IUSE="modules"
RDEPEND=">=net-firewall/iptables-1.4.4"
DEPEND="${RDEPEND}"
@@ -37,20 +37,21 @@ ERROR_CFG="ipset requires netfilter support in your kernel."
pkg_setup() {
get_version
- modules=0
- if 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"
+ build_modules=0
+ if use modules; then
+ if 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
- modules=1
- einfo "Modular kernel detected, will build kernel modules"
+ einfo "Nonmodular kernel detected, will not build kernel modules"
fi
- else
- einfo "Nonmodular kernel detected, will not build kernel modules"
fi
- [[ ${modules} -eq 1 ]] && \
- linux-mod_pkg_setup
+ [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
myconf="${myconf} PREFIX="
myconf="${myconf} LIBDIR=/$(get_libdir)"
myconf="${myconf} BINDIR=/sbin"
@@ -74,7 +75,7 @@ src_compile() {
einfo "Building userspace"
emake CC="$(tc-getCC)" COPT_FLAGS="${CFLAGS}" ${myconf} binaries || die "failed to build"
- if [[ ${modules} -eq 1 ]]; then
+ if [[ ${build_modules} -eq 1 ]]; then
einfo "Building kernel modules"
cd "${S}/kernel"
export KERNELDIR="${KERNEL_DIR}"
@@ -86,7 +87,7 @@ src_install() {
einfo "Installing userspace"
emake DESTDIR="${D}" ${myconf} binaries_install || die "failed to package"
- if [[ ${modules} -eq 1 ]]; then
+ if [[ ${build_modules} -eq 1 ]]; then
einfo "Installing kernel modules"
cd "${S}/kernel"
export KERNELDIR="${KERNEL_DIR}"