# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" DESCRIPTION="The Debian kernel sources with the configuration." HOMEPAGE="http://www.debian.org" SRC_URI='http://ftp.mx.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.37-trunk-amd64_2.6.37-1~experimental.1_amd64.deb http://ftp.us.debian.org/debian/pool/main/l/linux-2.6/linux-source-2.6.37_2.6.37-1~experimental.1_all.deb http://http.us.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.37-trunk-686-bigmem_2.6.37-1~experimental.1_i386.deb' FN_IMG64="linux-image-2.6.37-trunk-amd64_2.6.37-1~experimental.1_amd64.deb" FN_SRC="linux-source-2.6.37_2.6.37-1~experimental.1_all.deb" FN_IMG32="linux-image-2.6.37-trunk-686-bigmem_2.6.37-1~experimental.1_i386.deb" #Name of the extracted kernel tree archive without .tar.bz2 extension. LINUX_SRC="linux-source-2.6.37" #File name of the amd64 configuration AMD64_CONFIG="config-2.6.37-trunk-amd64" #File name of the x86 configuration x86_CONFIG="config-2.6.37-trunk-686-bigmem" LICENSE="GPL-V2" SLOT="0" KEYWORDS="~amd64" IUSE="+genkernel +symlink" RESTRICT="mirror" RDEPEND="genkernel? ( sys-kernel/genkernel )" DEPEND="" src_unpack() { unpack $FN_SRC cd $WORKDIR tar -xf data.tar.gz tar -xf usr/src/$LINUX_SRC.tar.bz2 -C usr/src mv usr/src/$LINUX_SRC usr/src/$PV-debian-sources rm -R usr/share control.tar.gz debian-binary data.tar.gz usr/src/$LINUX_SRC.tar.bz2 if use amd64 then unpack $FN_IMG64 tar -xf data.tar.gz mv boot/$AMD64_CONFIG usr/src/$PV-debian-sources/.config else unpack $FN_IMG32 tar -xf data.tar.gz #x86 contains amd64 config (name mistake)... this is a bug? mv boot/$x86_CONFIG usr/src/$PV-debian-sources/.config fi rm -R control.tar.gz debian-binary data.tar.gz lib boot usr/share if use symlink then ln -s /usr/src/$PV-debian-sources usr/src/linux fi } src_install() { mv $WORKDIR/* $D einfo "There's already a configuration in this source tree, you just" einfo "have to build it." ewarn "Building requires 1+ GB of free space for the source tree + 1+ GB for modules" einfo "Use genkernel to make the initramfs." }