# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 IUSE="" inherit check-kernel eutils DESCRIPTION="A linux (2.6-) kernel driver to connect garmin gps receivers via the usb bus" HOMEPAGE="http://sourceforge.net/projects/garmin-gps/" SRC_URI="mirror://sourceforge/garmin_gps/garmin_gps-0.22a.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" RDEPEND="" DEPEND="" S=${WORKDIR}/garmin_gps-${PV} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/gentoo.patch } src_compile() { #set_arch_to_kernel unset ARCH ./compile.sh /usr/src/linux } src_install() { if is_2_6_kernel; then einfo "Kernel ${KV_full} detected!" insinto "/lib/modules/${KV_full}/kernel/extra/garmin_gps" #/lib/modules/2.6.10Y/extra/garmin_gps.ko doins garmin_gps.ko echo "post-install garmin_gps /sbin/modprobe garmin_gps >& /dev/null 2>&1 || :" else eerror "No supported kernel version (2.6) detected." fi dodoc README }