1 |
On Wed, 30 Dec 2009 14:34:42 +0100 |
2 |
Volker Armin Hemmann wrote: |
3 |
|
4 |
> On Mittwoch 30 Dezember 2009, Willie Wong wrote: |
5 |
> > On Wed, Dec 30, 2009 at 02:02:56PM +0100, Penguin Lover Volker |
6 |
> > Armin Hemmann |
7 |
> squawked: |
8 |
> > > you can make it even easier: |
9 |
> > > create: |
10 |
> > > /etc/portage/env/PKG_CATEGORY |
11 |
> > > put patch in that directory |
12 |
> > > create file: |
13 |
> > > /etc/portage/PKG_CATEGORY/PKGNAME |
14 |
> > > with this: |
15 |
> > > |
16 |
> > > post_src_prepare() { |
17 |
> > > epatch "/etc/portage/env/PKG_CATEGORY/NAMEOF:PATCH" |
18 |
> > > } |
19 |
> > |
20 |
> > Ooh, I didn't know that. I've gotta go write it down somewhere. |
21 |
> > Thanks. |
22 |
> |
23 |
> learned that from Nicos (RealNC) ;) |
24 |
|
25 |
Similar, but slightly different: |
26 |
|
27 |
I have a patch in file /etc/portage/patches/chkrootkit.patch |
28 |
|
29 |
and in file /etc/portage/env/app-forensics/chkrootkit is |
30 |
|
31 |
post_src_unpack() { |
32 |
epatch /etc/portage/patches/chkrootkit.patch |
33 |
} |
34 |
|
35 |
Portage automagically finds the script in .../env/... and applies the |
36 |
patch! |