1 |
And the eclass I was supposed to attach :) |
2 |
|
3 |
On Wed, 2005-06-22 at 17:24 +0100, John Mylchreest wrote: |
4 |
> This approach is fine with me, anything which makes life easier. |
5 |
> I have attached the kernel-2 from my overlay which as per bug #96510 |
6 |
> If you agree with the idea, (its been tested) then please feel free to |
7 |
> merge and commit. |
8 |
> |
9 |
> if you don't like the prerm stuff, just ditch it and apply to the |
10 |
> current stable. |
11 |
> |
12 |
> Thanks for the work. |
13 |
> - John |
14 |
> |
15 |
> |
16 |
> On Wed, 2005-06-22 at 13:52 +0100, Daniel Drake wrote: |
17 |
> > This provides an easier way for kernel-2 users to apply genpatches. |
18 |
> > |
19 |
> > In the attached ebuild example, ck-sources-2.6.12_p2.ebuild, all that is |
20 |
> > needed is: |
21 |
> > |
22 |
> > K_WANT_GENPATCHES="base" |
23 |
> > K_GENPATCHES_VER="1" |
24 |
> > |
25 |
> > The above will translate to genpatches-2.6.12-1.base.tar.bz2 |
26 |
> > The only other thing you need to do is add $GENPATCHES_URI to SRC_URI and then |
27 |
> > you will get genpatches applied with unipatch. |
28 |
> > |
29 |
> > Any comments? |
30 |
> > plain text document attachment (ck-sources-2.6.12_p2.ebuild) |
31 |
> > # Copyright 1999-2005 Gentoo Foundation |
32 |
> > # Distributed under the terms of the GNU General Public License v2 |
33 |
> > # $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.6.11_p10.ebuild,v 1.1 2005/06/13 02:07:56 marineam Exp $ |
34 |
> > |
35 |
> > K_PREPATCHED="yes" |
36 |
> > UNIPATCH_STRICTORDER="yes" |
37 |
> > K_NOUSENAME="yes" |
38 |
> > K_WANT_GENPATCHES="base" |
39 |
> > K_GENPATCHES_VER="1" |
40 |
> > ETYPE="sources" |
41 |
> > inherit kernel-2 |
42 |
> > detect_version |
43 |
> > |
44 |
> > # A few hacks to set ck version via _p instead of -r |
45 |
> > MY_P=${P/_p*/} |
46 |
> > MY_PR=${PR/r/-r} |
47 |
> > MY_PR=${MY_PR/-r0/} |
48 |
> > EXTRAVERSION=-ck${PV/*_p/}${MY_PR} |
49 |
> > KV_FULL=${OKV}${EXTRAVERSION} |
50 |
> > KV_CK=${KV_FULL/-r*/} |
51 |
> > detect_version |
52 |
> > |
53 |
> > IUSE="ck-server" |
54 |
> > if use ck-server; then |
55 |
> > CK_PATCH="patch-${KV_CK}-server.bz2" |
56 |
> > else |
57 |
> > CK_PATCH="patch-${KV_CK}.bz2" |
58 |
> > fi |
59 |
> > |
60 |
> > UNIPATCH_LIST="${DISTDIR}/${CK_PATCH}" |
61 |
> > |
62 |
> > DESCRIPTION="Full sources for the Stock Linux kernel and Con Kolivas's high performance patchset" |
63 |
> > HOMEPAGE="http://members.optusnet.com.au/ckolivas/kernel/" |
64 |
> > SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} |
65 |
> > ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${KV_CK}-server.bz2 ) |
66 |
> > !ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${KV_CK}.bz2 )" |
67 |
> > |
68 |
> > KEYWORDS="~x86 ~amd64" |
69 |
> > |
70 |
> > pkg_postinst() { |
71 |
> > postinst_sources |
72 |
> > |
73 |
> > einfo "The ck patchset is tuned for desktop usage." |
74 |
> > einfo "To better tune the kernel for server applications add" |
75 |
> > einfo "ck-server to your use flags and reemerge ck-sources" |
76 |
> > } |
77 |
> > |