# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod DESCRIPTION="Driver for the RaLink RT61 wireless chipsets" HOMEPAGE="http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page" LICENSE="GPL-2" MY_P=${P/_beta/-b} SRC_URI="mirror://sourceforge/rt2400/${MY_P}.tar.gz" KEYWORDS="-* ~amd64 ~x86" IUSE="debug" RDEPEND="net-wireless/wireless-tools" S="${WORKDIR}/${MY_P}" MODULE_NAMES=" rt61(net:${S}/Module)" CONFIG_CHECK="NET_RADIO" ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." MODULESD_RT61_ALIASES=('ra? rt61') pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERNDIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } src_compile() { use debug && debug="y" linux-mod_src_compile } src_install() { linux-mod_src_install dodoc BIG_FAT_WARNING CHANGELOG FAQ TESTING THANKS dodoc Module/README Module/STA_iwpriv_ATE_usage.txt insinto /etc/Wireless/RT61STA doins Module/rt2661.bin Module/rt2561s.bin doins Module/rt2561.bin Module/rt61sta.dat } pkg_postinst() { linux-mod_pkg_postinst einfo einfo "Thanks to RaLink for releasing open drivers!" einfo }