# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DEPEND="virtual/linux-sources" RDEPEND="virtual/linux-sources" S="${WORKDIR}/ecc-devel" SLOT="0" EV="20030225" LICENSE="GPL-2" KEYWORDS="x86" DESCRIPTION="Kernel ECC management interface" SRC_URI="http://vadim.dscomponentes.es/local/vadim/ecc-${EV}.tar" HOMEPAGE="http://www.anime.net/~goemon/linux-ecc/" IUSE="" src_unpack() { unpack ecc-${EV}.tar cd ${WORKDIR}/ecc-devel || die patch -p1 < ${FILESDIR}/linux-ecc-${EV}-gentoo.patch || die } src_compile() { cd ${WORKDIR}/ecc-devel || die emake || die } src_install() { # Not completely sure what's the best place for this. cd ${WORKDIR}/ecc-devel || die install -D -m0644 -oroot -groot ecc.o ${D}/lib/modules/`uname -r`/kernel/drivers/char/ecc.o || die } pkg_postinst() { # Update module dependencies depmod -a einfo einfo "To load the module try 'modprobe ecc', then check /proc/ram." einfo einfo "WARNING: This is a development version. I haven't heard of any problems," einfo "but just to be sure, save all your data before trying to load it." einfo einfo "See the homepage for a list of supported chipsets." } pkg_postrm() { depmod -a }