Lines 4-10
Link Here
|
4 |
#OKV=original kernel version, KV=patched kernel version. They can be the same. |
4 |
#OKV=original kernel version, KV=patched kernel version. They can be the same. |
5 |
|
5 |
|
6 |
ETYPE="sources" |
6 |
ETYPE="sources" |
7 |
inherit kernel |
7 |
inherit kernel rpm |
8 |
OKV=2.4.20 |
8 |
OKV=2.4.20 |
9 |
KV=2.4.20-2.48 |
9 |
KV=2.4.20-2.48 |
10 |
EXTRAVERSION="-2.48-rhcustom" |
10 |
EXTRAVERSION="-2.48-rhcustom" |
Lines 30-37
Link Here
|
30 |
# generate a new diff for every minor version update. (Also not to many |
30 |
# generate a new diff for every minor version update. (Also not to many |
31 |
# people have 2.4.18 vanilla source tarballs floating around these days) |
31 |
# people have 2.4.18 vanilla source tarballs floating around these days) |
32 |
|
32 |
|
33 |
DEPEND="${DEPEND} app-arch/rpm2targz" |
|
|
34 |
|
35 |
DESCRIPTION="Kernel source tree used in Red Hat distributions (not supported by Red Hat)" |
33 |
DESCRIPTION="Kernel source tree used in Red Hat distributions (not supported by Red Hat)" |
36 |
SRC_URI="http://csociety-ftp.ecn.purdue.edu/pub/redhat/linux/beta/phoebe/en/os/i386/RedHat/RPMS/kernel-source-${KV}.i386.rpm" |
34 |
SRC_URI="http://csociety-ftp.ecn.purdue.edu/pub/redhat/linux/beta/phoebe/en/os/i386/RedHat/RPMS/kernel-source-${KV}.i386.rpm" |
37 |
HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/" |
35 |
HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/" |
Lines 40-51
Link Here
|
40 |
|
38 |
|
41 |
src_unpack() { |
39 |
src_unpack() { |
42 |
|
40 |
|
|
|
41 |
rpm_unpack ${DISTDIR}/kernel-source-${KV}.i386.rpm |
43 |
cd ${WORKDIR} |
42 |
cd ${WORKDIR} |
44 |
# Defining TMPDIR avoids breaking if /tmp is mounted in RAM |
|
|
45 |
# and too small to hold all the temp files. |
46 |
# Portage probably shouldn't create any files outside of |
47 |
# /var/tmp/portage just yet anyway. :) |
48 |
TMPDIR=${T} rpm2targz ${DISTDIR}/kernel-source-${KV}.i386.rpm |
49 |
tar xvzf kernel-source-${KV}.i386.tar.gz |
43 |
tar xvzf kernel-source-${KV}.i386.tar.gz |
50 |
|
44 |
|
51 |
mv usr/src/linux-${KV} ${WORKDIR} |
45 |
mv usr/src/linux-${KV} ${WORKDIR} |