On Wed, 30 Dec 2009 14:34:42 +0100
Volker Armin Hemmann wrote:

> On Mittwoch 30 Dezember 2009, Willie Wong wrote:
> > On Wed, Dec 30, 2009 at 02:02:56PM +0100, Penguin Lover Volker
> > Armin Hemmann 
> squawked:
> > > you can make it even easier:
> > > create:
> > > /etc/portage/env/PKG_CATEGORY
> > > put patch in that directory
> > > create file:
> > > /etc/portage/PKG_CATEGORY/PKGNAME
> > > with this:
> > >
> > >   post_src_prepare() {
> > >     epatch "/etc/portage/env/PKG_CATEGORY/NAMEOF:PATCH"
> > >  }
> > 
> > Ooh, I didn't know that. I've gotta go write it down somewhere.
> > Thanks.
> 
> learned that from Nicos (RealNC) ;)

Similar, but slightly different:

I have a patch in file /etc/portage/patches/chkrootkit.patch

and in file /etc/portage/env/app-forensics/chkrootkit is

 post_src_unpack() {
    epatch /etc/portage/patches/chkrootkit.patch
 }

Portage automagically finds the script in .../env/... and applies the
patch!

Reply via email to