# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/sys-kmods/ite-driver/ite-drivert-092005.ebuild,v 1.7 2003/09/05 22:01:49 msterret Exp $ inherit gcc NV_V="${PV}" NV_PACKAGE="LinuxSrc_it8212_${NV_V}-05" S="${WORKDIR}" DESCRIPTION="Linux kernel module for the IT8212F ATA133 RAID Controller" HOMEPAGE="http://www.iteusa.com/" SRC_URI="http://www.iteusa.com/pc/${NV_PACKAGE}.zip" # The SLOT needs to be set to $KV to prevent unmerges of modules for other kernels LICENSE="GPL-2" SLOT="${KV}" KEYWORDS="-* x86" RESTRICT="nostrip" DEPEND="virtual/linux-sources" src_compile() { check_KV cd ${S} # rm -rf Atapi RedHat SuSE Debian Mandrake Slackware Turbo mv Gentoo* gentoo cd Atapi # cd gentoo # epatch ${FILESDIR}/iteraid-gentoo.patch make KERNSRC="/usr/src/linux" || die } src_install() { # The driver goes into the standard modules location insinto /lib/modules/${KV}/misc # doins gentoo/iteraid.o doins Atapi/iteraid.o } pkg_postinst() { if [ "${ROOT}" = "/" ] then # Update module dependency [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules fi echo einfo "You need to add \"iteraid\" to your /etc/modules.autoload to load" einfo "this module when the system is started. Alternatively, you can" einfo "use the 'hotplug' package ('emerge hotplug' then 'rc-update add" einfo "hotplug default') to auto-detect and load \"iteraid\" on startup." }