# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/win4lin-sources/win4lin-sources-2.4.23-r2.ebuild,v 1.1 2004/02/18 21:12:04 plasmaroo Exp $ # OKV=original kernel version, KV=patched kernel version. They can be the same. IUSE="" ETYPE="sources" inherit kernel OKV="2.4.23" KV="2.4.23-win4lin" EXTRAVERSION="-win4lin" S=${WORKDIR}/linux-${KV} DESCRIPTION="Full sources for the linux kernel with win4lin support" SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.netraverse.com/member/downloads/files/mki-adapter.patch http://www.netraverse.com/member/downloads/files/Kernel-Win4Lin3-${OKV}.patch" KEYWORDS="x86" SLOT="${KV}" src_unpack() { unpack linux-${OKV}.tar.bz2 mv linux-${OKV} linux-${KV} || die epatch ${DISTDIR}/Kernel-Win4Lin3-${OKV}.patch || die "Error: Win4Lin3 patch failed!" cd linux-${KV} patch -Np1 -i ${DISTDIR}/mki-adapter.patch >/dev/null 2>&1 || die "Error: mki-adapter patch failed!" epatch ${FILESDIR}/${PN}-2.4.CAN-2003-0985.patch || die "Failed to patch mremap() vulnerability!" epatch ${FILESDIR}/${PN}-2.4.rtc_fix.patch || die "Failed to patch RTC vulnerabilities!" epatch ${FILESDIR}/${PN}-2.4.munmap.patch || die "Failed to apply munmap patch!" kernel_universal_unpack }