# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod eutils DESCRIPTION="Fusion provides statistical information in the so called Linux /proc file system" HOMEPAGE="http://directfb.org" SRC_URI="http://directfb.org/downloads/Core/${PN}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="" #S="${WORKDIR}/${MY_P}-${PV}" MODULE_NAMES="fusion(drivers/char:${S}:${S}/linux/drivers/char/fusion)" BUILD_PARAMS="KSRC=${ROOT}${KV_DIR} TOUT=${TMP}/tmp-gas-check" BUILD_TARGETS="all" MODULESD_REALTIME_DOCS="AUTHORS ChangeLog README" src_unpack() { if ! kernel_is 2 6 then die "A Linux kernel of version 2.6 is required." fi unpack ${A} cd ${S} convert_to_m Makefile epatch ${FILESDIR}/linux-fusion-2.6.15.patch } src_install() { linux-mod_src_install insinto /usr/include/linux doins "${S}"/linux/include/linux/fusion.h dodoc README ChangeLog TODO } pkg_postinst() { ewarn "You may need /dev/fusion/[0-7] as device nodes, for udev or devfs." ewarn "See /usr/share/doc/fusion-${PV}/README.gz" }