blob: 9f45dd3741a95957cad3272c13d59a2d74d943fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/planet-ccrma-sources/planet-ccrma-sources-2.4.21.ebuild,v 1.5 2003/12/02 00:22:30 iggy Exp $
#OKV=original kernel version, KV=patched kernel version. They can be the same.
ETYPE="sources"
inherit kernel || die
OKV=2.4.21
EXTRAVERSION="-1.ll.acpi"
KV=${OKV}${EXTRAVERSION}
S=${WORKDIR}/linux-${KV}
# This package contains the Linux Kernel source for the version of the
# RedHat Linux Kernel modified by the Planet CCRMA project.
#
# Do not report problems with this source package or the resulting compiled
# compiled kernel to Red Hat, Inc. Red Hat is not responsible for this
# package and has offered no warranties or promises that the kernels
# resulting from the compilation of this package will work on anything
# except specific versions of the Red Hat distribution and specific
# compiler revisions.
#
# Gentoo provides this package without any guarantees that this kernel
# will compile and run correctly and will only respond to bug reports
# dealing with Gentoo specific packaging problems.
# The easiest way to grab Red Hat kernel sources is from the rpm file
# itself. We used to generate a patch against vanilla sources trees but
# the added dependency of rpm2targz is minimal compared with having to
# generate a new diff for every minor version update. (Also not to many
# people have 2.4.18 vanilla source tarballs floating around these days)
DEPEND="${DEPEND} app-arch/rpm2targz"
DESCRIPTION="Kernel source used in Planet CCRMA custom audio upgrade (based on RedHat)"
SRC_URI="http://ccrma-www.stanford.edu/planetccrma/mirror/redhat/linux/planetcore/9/en/os/i386/kernel-source-${KV}.i386.rpm
mirror://gentoo/${P}.tar.gz"
HOMEPAGE="http://ccrma-www.stanford.edu/ http://www.kernel.org/ http://www.redhat.com/"
KEYWORDS="x86"
SLOT="${KV}"
src_unpack() {
cd ${WORKDIR}
# Defining TMPDIR avoids breaking if /tmp is mounted in RAM
# and too small to hold all the temp files.
# Portage probably shouldn't create any files outside of
# /var/tmp/portage just yet anyway. :)
TMPDIR=${T} rpm2targz ${DISTDIR}/kernel-source-${KV}.i386.rpm
tar xvzf kernel-source-${KV}.i386.tar.gz || die
tar xvzf ${DISTDIR}/${P}.tar.gz || die
mv usr/src/linux-${KV} ${WORKDIR} || die
cd ${S}
epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
kernel_universal_unpack
}
pkg_postinst() {
ewarn "This kernel should now work with ALSA 0.9.6 or better."
ewarn "You'll need ~x86 for ALSA greater than 0.9.2"
einfo "A default kernel config has been provided in"
einfo "distfiles/planet-ccrma-sources-2.4.21.tar.gz."
einfo "Copy it to /usr/src/linux/.config and run make oldconfig."
einfo "Then edit to taste, but be careful not to tweak too much."
einfo "Just make sure to enable the devfs support."
einfo "And never run with scissors..."
}
|