# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ UNIPATCH_LIST="${DISTDIR}/patch-${KV_FULL}.bz2" K_PREPATCHED="yes" UNIPATCH_STRICTORDER="yes" NR=$(echo ${PR} | cut -c 2-) SC_VER="11.2" #XBOX_VER="20050102" ORINOCO_VER="0.13e-SN-6" HOSTAP_VER="0.3.7" MH_VER="2" MPPE_VER="1.3" V4L_VER="2" L7_VER="1.4" SATA_VER="1" ACPI_VER="20050408" #NFS4_VER=5 K_NOUSENAME="yes" ETYPE="sources" inherit kernel-2 eutils detect_version IUSE="updated-acpi sata layer7 hostap orinoco touchpad-fixes sk98 staircase mppe-mppc updated-bluetooth nicksched updated-v4l" DESCRIPTION="Full sources for the Stock Linux kernel plus various enhancements for desktop and laptop users." HOMEPAGE="http://morph-sources.sf.net" SRC_URI="${KERNEL_URI} mirror://sourceforge/${PN}/patch-${PV}-morph${NR}.bz2 mirror://sourceforge/${PN}/extra-patches-${PV}-morph${NR}.tar.bz2 http://osdn.dl.sourceforge.net/sourceforge/morph-sources/patch-${PV}-morph${NR}.bz2 http://osdn.dl.sourceforge.net/sourceforge/morph-sources/extra-patches-${PV}-morph${NR}.tar.bz2" KEYWORDS="~x86 ~amd64" src_compile() { if use staircase && use nicksched then eerror "Cannot use both staircase AND nicksched, please choose just one." eerror "Aborting." die fi cd ${WORKDIR} tar xjvf ${DISTDIR}/extra-patches-${PV}-morph${NR}.tar.bz2 cd ${S} EPATCH_OPTS="-p1 --no-backup-if-mismatch" if use staircase then epatch ../extra-patches/${PV}-staircase-${SC_VER}.diff fi if use nicksched then epatch ../extra-patches/${PV}-nicksched.patch fi if use mppe-mppc then epatch ../extra-patches/linux-${PV}-mppe-mppc-${MPPE_VER}.patch fi #if use xbox #then # epatch ../extra-patches/xbox-sources-${PV}-${XBOX_VER}-morph${NR}.patch #fi if use updated-bluetooth then epatch ../extra-patches/patch-${PV}-mh${MH_VER}.patch fi if use updated-v4l then epatch ../extra-patches/v4l-${PV}-${V4L_VER}.diff fi if use touchpad-fixes then epatch ../extra-patches/touchpad-fixes-${PV}.diff fi if use sk98 then epatch ../extra-patches/sk98-${PV}.patch fi if use orinoco then epatch ../extra-patches/orinoco-${ORINOCO_VER}.patch fi if use hostap then epatch ../extra-patches/hostap-${HOSTAP_VER}.patch fi if use layer7 then epatch ../extra-patches/layer7-${L7_VER}-${PV}.patch fi if use sata then epatch ../extra-patches/${PV}-libata-${SATA_VER}.patch fi if use updated-acpi then epatch ../extra-patches/acpi-${ACPI_VER}-${PV}.diff fi #if use nfs4 # then # epatch ../extra-patches/linux-${PV}-nfs4-${NFS4_VER}.patch #fi } pkg_postinst() { postinst_sources #if use xbox #then # ewarn "" # ewarn "WARNING: The FATX driver is currently horribly broken. Writing to a FATX partition with this kernel will corrupt it." # ewarn "" #fi if use mppe-mppc then ewarn "" ewarn "PLEASE NOTE:" ewarn "The mppe-mppc patch contains a patented algorithm. To avoid legal problems US citizens" ewarn "should NOT use this patch. You have been warned. More details here:" ewarn "http://www.polbox.com/h/hs001/" fi ewarn "" ewarn "IMPORTANT:" ewarn "This is a experimental kernel version, I'm not responsible for breaking your system" ewarn "ALWAYS keep a second stable and bootable kernel apart in your boot manager" ewarn "" }