# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ #OKV=original kernel version, KV=patched kernel version. They can be the same. ETYPE="sources" inherit kernel OKV=2.4.25 KV=2.4.25 ## idea: after the kernel-version (2.4.25) we append the vs-version (e.g. 1.3.8) to ## get 2.4.25.1.3.8 that is globbed out here: EXTRAVERSION="-vs${PV#*.*.*.}" S=${WORKDIR}/linux-${KV} # What's in this kernel? # INCLUDED: # stock 2.4.25 kernel sources (or newer) # devel-version of vsever-patch: 1.3.8 (or newer) 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}/linux-vserver-${EXTRAVERSION/-vs/}.tar.bz2" HOMEPAGE="http://www.kernel.org/ http://www.13thfloor.at/vserver/ http://www.linux-vserver.org/" KEYWORDS="~x86" SLOT="${KV}" src_unpack() { unpack linux-${OKV}.tar.bz2 cd ${WORKDIR} mv linux-${OKV} linux-${KV}${EXTRAVERSION} || die "mv to -extraversion failed" tar xvjf ${DISTDIR}/linux-vserver-${EXTRAVERSION/-vs/}.tar.bz2 || die "unpacking patch failed" cd linux-${KV}${EXTRAVERSION} || die "cd to kernel-src failed" epatch ${WORKDIR}/patch-${KV}${EXTRAVERSION}.diff kernel_universal_unpack }