# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: some stuff $ inherit linux-mod DESCRIPTION="Kernel fusion module for DirectFB" HOMEPAGE="http://www.directfb.org" SNAPSHOT="2006-02-02-05-25-21-UTC" SRC_URI="http://www.directfb.org/snapshots/${PN}-${SNAPSHOT}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/linux-sources" MAKEOPTS="-j1" unset ARCH S="${WORKDIR}/${PN}-${SNAPSHOT}" pkg_setup() { linux-mod_pkg_setup || die MODULE_NAMES="fusion(drivers/char/fusion:${S}:${S}/linux/drivers/char/fusion)" BUILD_TARGETS="all" } src_compile() { linux-mod_src_compile || die "compile failed" } src_install() { linux-mod_src_install insinto /usr/include/linux doins "${S}/linux/include/linux/fusion.h" dodoc README } pkg_postinst() { einfo "So far, I've used this module to use the directfb mouse," einfo "so I can use links -g in framebuffer without gpm." einfo "I added this line to /etc/udev/rules.d/50-rules.udev" einfo "KERNEL="fusion[0-9]*", NAME="fusion/%n", GROUP="tty", MODE="0660"" einfo "and changed the two mouse lines to" einfo "KERNEL=="mice", NAME="input/%k", GROUP="tty" MODE="0664"" einfo "KERNEL=="mouse*", NAME="input/%k", GROUP="tty" MODE="0664"" einfo "and then added my user to the tty group" }