# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ETYPE="sources" inherit kernel eutils OKV=2.4.27 KV=2.4.27 ## idea: after the kernel-version (2.4.27) we append the vs-version (e.g. 1.3.9) to ## get 2.4.27.1.3.9 that is globbed out here: EXTRAVERSION="-vs${PV#*.*.*.}" S=${WORKDIR}/linux-${KV} # What's in this kernel? # INCLUDED: # stock 2.4.27 kernel sources (or newer) # devel-version of vsever-patch: 1.3.9 (rediffed -- no xfs-support!) DESCRIPTION="Linux kernel with DEVEL version ctx-/vserver-patch" SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2" #http://www.13thfloor.at/vserver/d_release/${EXTRAVERSION/-vs/v}/patch-${KV}${EXTRAVERSION}.diff.bz2" HOMEPAGE="http://www.kernel.org/ http://www.13thfloor.at/vserver/ http://www.linux-vserver.org/" KEYWORDS="~x86 -ppc" SLOT="${KV}" src_unpack() { unpack linux-${OKV}.tar.bz2 cd ${WORKDIR} mv linux-${OKV} linux-${KV}${EXTRAVERSION} cd linux-${KV}${EXTRAVERSION} #epatch ${DISTDIR}/patch-${KV}${EXTRAVERSION}.diff.bz2 || die "vserver-patch failed" epatch ${FILESDIR}/patch-${KV}${EXTRAVERSION}-tom.diff.bz2 || die "vserver-patch failed" kernel_universal_unpack }