Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15321 - patch_o_matic ebuild
Summary: patch_o_matic ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-02-08 13:43 UTC by Paul Belt
Modified: 2006-11-29 02:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2003-02-08 13:43:18 UTC
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.
Comment 1 Tudor Alexandru Dragos 2005-09-23 01:17:00 UTC
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. 
Comment 2 Sérgio Luís 2006-06-02 17:29:15 UTC
> 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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-11-29 02:01:59 UTC
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.