# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/sys-kernel/redhat-sources/redhat-sources-2.4.20.31.9 ebuild,v 1.2 2003/09/07 07:26:01 msterret Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. ETYPE="sources" inherit kernel OKV=2.4.20 KV=2.4.20-31.9 EXTRAVERSION="-31.9-rhcustom" S=${WORKDIR}/linux-${KV} # This package contains the Linux Kernel source for the version of the # Linux Kernel shipped by Red Hat, Inc. as part of their 9.0 distribution. # # 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) # The kernel fails to build with gcc-3.3.3-r6, revert to gcc-3.2 DEPEND="${DEPEND} app-arch/rpm2targz =sys-devel/gcc-3.2*" DESCRIPTION="Kernel source tree used in Red Hat distributions (not supported by Red Hat)" #SRC_URI="http://csociety-ftp.ecn.purdue.edu/pub/redhat/linux/beta/phoebe/en/os/i386/RedHat/RPMS/kernel-source-${KV}.i386.rpm" SRC_URI="http://csociety-ftp.ecn.purdue.edu/pub/redhat/linux/beta/phoebe/en/os/i386/RedHat/RPMS/kernel-${KV}.src.rpm" HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/" KEYWORDS="~x86" SLOT="${KV}" src_unpack() { cd ${WORKDIR} #kernel-2.4.20-31.9.src.rpm rpm2targz ${DISTDIR}/kernel-${KV}.src.rpm tar xvzf kernel-${KV}.src.tar.gz #new for 31.9 tar xvjf linux-${OKV}.tar.bz2 echo ${WORKDIR} echo linux-${OKV} mv linux-${OKV} linux-${KV} echo ${S} cd ${S} kernel_universal_unpack }