--- /usr/portage/net-firewall/iptables/iptables-1.4.12.1-r1.ebuild 2012-01-07 00:16:38.000000000 +0100 +++ /usr/local/portage/net-firewall/iptables/iptables-1.4.12.1-r1.ebuild 2012-05-04 12:56:41.000000000 +0200 @@ -7,7 +7,7 @@ # Force users doing their own patches to install their own tools AUTOTOOLS_AUTO_DEPEND=no -inherit eutils toolchain-funcs autotools +inherit eutils toolchain-funcs autotools linux-info DESCRIPTION="Linux kernel (2.4+) firewall, NAT and packet mangling tools" HOMEPAGE="http://www.iptables.org/" @@ -15,8 +15,8 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="ipv6 netlink static-libs" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86" +IUSE="ipv6 netlink static-libs ksource" RDEPEND=" netlink? ( net-libs/libnfnetlink ) @@ -33,7 +33,7 @@ eautomake # use the saner headers from the kernel - rm -f include/linux/{kernel,types}.h + #rm -f include/linux/{kernel,types}.h # Only run autotools if user patched something epatch_user && eautoreconf || elibtoolize @@ -50,7 +50,8 @@ --enable-libipq \ --enable-shared \ $(use_enable static-libs static) \ - $(use_enable ipv6) + $(use_enable ipv6) \ + $(use_with ksource kernel ${KERNEL_DIR}) } src_compile() {