# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod MY_P=${P/prism54-/prism54-cvs} S=${WORKDIR}/${MY_P} DESCRIPTION="Driver for Intersil Prism GT / Prism Duette wireless chipsets" HOMEPAGE="http://prism54.org/" SRC_URI="http://prism54.org/pub/linux/snapshot/tars/2004-12/${MY_P}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="pcmcia" RDEPEND="net-wireless/prism54-firmware net-wireless/wireless-tools pcmcia? ( sys-apps/pcmcia-cs )" MODULE_NAMES="prsim54(net:)" BUILD_PARAMS="KVER=${KV_FULL} KDIR=${KV_DIR}" BUILD_TARGETS="modules" MODULESD_PRISM54_DOCS="README ksrc/TODO ksrc/ChangeLog" CONFIG_CHECK="!PRISM54 NET_RADIO FW_LOADER" PRISM54_ERROR="Please use prism54-firmware for the in-kernel driver or deselect it to use the driver from this ebuild." NET_RADIO_ERROR='You should enable "Wireless LAN drivers (non-hamradio) & Wireless Extensions"[CONFIG_NET_RADIO] in your kernel config' FW_LOADER_ERROR="Make sure you have CONFIG_FW_LOADER enabled in your kernel." useq pcmcia && CONFIG_CHECK="${CONFIG_CHECK} PCMCIA CARDBUS" PCMCIA_ERROR=CARDBUS_ERROR="General setup ---> PCMCIA/CardBus support ---> PCMCIA/CardBus support (m or y) [*] CardBus support (Important!)" pkg_setup() { if kernel_is 2 6 10; then eerror "This package does not work with kernel 2.6.10." eerror "Please use the in-kernel version and prism54-firmware instead" die "kernel too new" fi linux-mod_pkg_setup }