# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils linux-mod MY_SRC="ppscsi-beta2-20060424.tar.gz" DESCRIPTION="PPSCSI kernel modules" SRC_URI="http://penguin-breeder.org/kernel/download/$MY_SRC" HOMEPAGE="http://penguin-breeder.org/kernel/download/" KEYWORDS="x86" SLOT="0" LICENSE="GPL-2" IUSE="" DEPEND="virtual/libc sys-devel/gcc >=sys-kernel/gentoo-sources-2.6.0" RDEPEND="virtual/libc" src_unpack() { unpack $MY_SRC } src_compile() { ARCH=$(tc-arch-kernel) cd ${WORKDIR}/ppscsi-beta2 emake ARCH=$(tc-arch) } src_install() { dodir /lib/modules/`uname -r`/misc insinto /lib/modules/`uname -r`/misc doins ${WORKDIR}/ppscsi-beta2/*.ko dodoc ${WORKDIR}/ppscsi-beta2/README.ppscsi }