iptables and patch-o-matic kernel patches are now 2 seperate packages. This ebuild needs some work, but here's the beginnings... # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 inherit eutils MY_PN='patch-o-matic' MY_PV='20030107' S=${WORKDIR}/${MY_PN}-${MY_PV} DESCRIPTION="Kernel 2.4 firewall, NAT and packet mangling kernel patches" SRC_URI="ftp://ftp.netfilter.org/pub/patch-o-matic/${MY_PN}-${MY_PV}.tar.bz2" HOMEPAGE="http://www.iptables.org/" KEYWORDS="x86 alpha sparc" SLOT="0" # iptables is dependent on kernel sources. Strange but true. DEPEND="virtual/glibc sys-kernel/linux-headers sys-apps/iptables" LICENSE="GPL-2" IUSE="" src_compile() { einfo 'Nothing to compile' } src_install() { mkdir -p ${D}/usr/src/${MY_PN}-${MY_PV} einfo 'Copying files' cd ${S} cp -a * ${D}/usr/src/${MY_PN}-${MY_PV} } pkg_postinst() { einfo 'The primary functionality of this package is to provide an easy' einfo 'path for adding more iptable toys.' einfo '' einfo "\`ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\`" } pkg_config() { cd /usr/src/${MY_PN}-${MY_PV}/ ./runme extra } Reproducible: Always Steps to Reproduce: 1. 2. 3.
One tiny problem: you need the source of iptables too, I think is completely useful if is not compiling the iptables automatically. Also seem that lot’s of patch-o-matic logic is kind of fuzzi and sometimes will allow you to patch a kernel 2.6 with a 2.7 patch and other funny stuffs. I propose a rewrite of patch-o-matic in portage way. I don’t know exactly how but I am thinking at something that iptables packet will depend and will patch the kernel and iptables just using ther USE.
> One tiny problem: you need the source of iptables too AFAIK you don't need iptables source because you can compile it with extensions use flag.
Err... We have net-misc/l7-filter and net-firewall/ipp2p; there's no way we could support the experimental stuff in patch-o-matic, and patching the kernel in a unpredictable way has a potential of causing lots of trouble for other ebuilds. WONTFIX.