--- /usr/portage/net-firewall/iptables/iptables-1.4.3.2.ebuild 2009-06-18 03:06:27.000000000 +0200 +++ /usr/portage/net-firewall/iptables/iptables-1.4.3.2.ebuild 2009-07-07 13:36:48.000000000 +0200 @@ -11,11 +11,16 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86" -IUSE="" +IUSE="ksource" DEPEND="virtual/os-headers" RDEPEND="" +pkg_setup() { + # Don't call linux-info_pkg_setup in case ksource USE disabled. + use ksource && linux-info_pkg_setup +} + src_unpack() { unpack ${P}.tar.bz2 cd "${S}" @@ -42,7 +47,8 @@ --enable-devel \ --enable-libipq \ --enable-shared \ - --enable-static + --enable-static \ + $(use_with ksource kernel ${KERNEL_DIR}) emake V=1 || die }