# 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.ca.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.37-rc7-amd64_2.6.37~rc7-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~rc7-1~experimental.1_all.deb http://ftp.us.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.37-rc7-amd64_2.6.37~rc7-1~experimental.1_i386.deb" FN_IMG64="linux-image-2.6.37-rc7-amd64_2.6.37~rc7-1~experimental.1_amd64.deb" FN_SRC="linux-source-2.6.37_2.6.37~rc7-1~experimental.1_all.deb" FN_IMG32="linux-image-2.6.37-rc7-amd64_2.6.37~rc7-1~experimental.1_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.37-rc7.tar.bz2 -C usr/src mv usr/src/linux-source-2.6.37-rc7 usr/src/$PV-debian-sources rm -R usr/share control.tar.gz debian-binary data.tar.gz usr/src/linux-source-2.6.37-rc7.tar.bz2 if use amd64 then unpack $FN_IMG64 tar -xf data.tar.gz mv boot/config-2.6.37-rc7-amd64 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/config-2.6.37-rc7-amd64 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." ewarn "In this package, it appears the debian guys did a mistake? Both amd64 and i686" ewarn "Share the same configs and kernel images?" }