diff options
Diffstat (limited to 'sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild')
-rw-r--r-- | sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild b/sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild new file mode 100644 index 000000000000..3a514bc114ad --- /dev/null +++ b/sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/vserver-sources/vserver-sources-2.4.25.1.3.8-r2.ebuild,v 1.1 2004/04/17 14:09:07 plasmaroo Exp $ + +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#*.*.*.}-${PR}" +VEXTRAVERSION="-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-${VEXTRAVERSION/-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} + + tar xvjf ${DISTDIR}/linux-vserver-${VEXTRAVERSION/-vs/}.tar.bz2 || die "Unpacking patch failed!" + + cd linux-${KV}${EXTRAVERSION} + epatch ${WORKDIR}/patch-${KV}${VEXTRAVERSION}.diff + epatch ${FILESDIR}/${P}.CAN-2004-0109.patch || die "Failed to patch CAN-2004-0109 vulnerability!" + epatch ${FILESDIR}/${P}.CAN-2004-0177.patch || die "Failed to add the CAN-2004-0177 patch!" + epatch ${FILESDIR}/${P}.CAN-2004-0178.patch || die "Failed to add the CAN-2004-0178 patch!" + + kernel_universal_unpack +} |