# 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.21 KV=2.4.21 ## increment this for new ctx-version: ## idea: after the kernel-version (2.4.21) we append the ctx-version (17) to ## get: 2.4.21.17 EXTRAVERSION="ctx-${PV##*.}" S=${WORKDIR}/linux-${KV} # What's in this kernel? # INCLUDED: # stock 2.4.21 kernel sources (or newer) # ctx-17 (or newer) DESCRIPTION="Linux kernel with ctx-/vserver-patch" SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 ftp://ftp.solucorp.qc.ca/pub/vserver/patch-${KV}${EXTRAVERSION}.gz" HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://www.solucorp.qc.ca/miscprj/s_context.hc/" KEYWORDS="x86" SLOT="${KV}" src_unpack() { unpack linux-${OKV}.tar.bz2 cd ${WORKDIR} mv linux-${OKV} linux-${KV}${EXTRAVERSION} || die "mv to -extraversion failed" cd linux-${KV}${EXTRAVERSION} || die "cd to kernel-src failed" zcat ${DISTDIR}/patch-${KV}${EXTRAVERSION}.gz |\ patch -p1 || die "patching kernel with bproc failed" kernel_universal_unpack } pkg_postinst() { einfo "you also need the \"vserver\"-package to use this kernel." einfo "It seems that \"ipv6\"-support needs to be enabled to compile with" einfo "this patch (as of 2003.07.17)." }