# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: some stuff $ inherit linux-mod eutils 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" S="${WORKDIR}/${PN}-${SNAPSHOT}" MODULE_NAMES="fusion(drivers/char/fusion:${S}:${S}/linux/drivers/char/fusion)" BUILD_TARGETS="all" pkg_setup() { linux-mod_pkg_setup || die } src_install() { convert_to_m Makefile linux-mod_src_install || die insinto /usr/include/linux doins "${S}/linux/include/linux/fusion.h" || die dodoc README } pkg_postinst() { update_depmod einfo "" 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 "" 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 "" 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" einfo "" }