# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver" HOMEPAGE="http://g15daemon.sourceforge.net/" SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="dev-libs/libusb dev-libs/libdaemon >=app-misc/libg15-1.0" src_compile() { econf || die "configure failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS COPYING INSTALL LICENSE NEWS README TODO insinto /usr/share/${PN}/contrib doins contrib/xmodmaprc doins contrib/xmodmap.sh doins contrib/testbindings.pl newinitd ${FILESDIR}/g15daemon-${PV}.rc g15daemon } pkg_postinst() { einfo "To use g15daemon, you need to add g15daemon to the default runlevel." einfo "This can be done with:" einfo "# /sbin/rc-update add g15daemon default" einfo "" einfo "To have all new keys working in X11," einfo "you'll need create a specific xmodmap in your home directory" einfo "or edit the existant one." einfo "" einfo "create the xmodmap:" einfo "cp /usr/share/g1daemon-${PV}/contrib/xmodmaprc ~/.Xmodmap" einfo "" einfo "adding keycodes to an existing xmodmap:" einfo "cat /usr/share/g1daemon-${PV}/contrib/xmodmaprc >> ~/.Xmodmap" einfo "" }