# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" DESCRIPTION="" HOMEPAGE="" SRC_URI="http://ftp.us.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-amd64_2.6.32-29_amd64.deb http://ftp.ca.debian.org/debian/pool/main/l/linux-2.6/linux-source-2.6.32_2.6.32-29_all.deb http://http.us.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-686_2.6.32-29_i386.deb" FN_IMG64=linux-image-2.6.32-5-amd64_2.6.32-29_amd64.deb FN_SRC=linux-source-2.6.32_2.6.32-29_all.deb FN_IMG32=linux-image-2.6.32-5-686_2.6.32-29_i386.deb 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-source-2.6.32.tar.bz2 -C usr/src mv usr/src/linux-source-2.6.32 usr/src/$PV-debian-sources rm -R usr/share control.tar.gz debian-binary data.tar.gz usr/src/linux-source-2.6.32.tar.bz2 if use amd64 then unpack $FN_IMG64 tar -xf data.tar.gz mv boot/config-2.6.32-5-amd64 usr/src/$PV-debian-sources/.config else unpack $FN_IMG32 tar -xf data.tar.gz mv boot/config-2.6.32-5-686 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." }