# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header : DESCRIPTION="Linux driver for Lucent/Agere ORiNOCO USB devices" HOMEPAGE="http://orinoco-usb.alioth.debian.org/" SRC_URI="http://alioth.debian.org/download.php/356/${P}.tar.bz2" LICENSE="GPL-2 MPL-1.1" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="net-misc/wget net-ftp/curl app-arch/unzip sys-apps/hotplug sys-devel/bc" RDEPEND="net-wireless/wireless-tools" src_unpack() { check_KV unpack ${A} einfo "${KV}" } src_compile() { emake } src_install() { # Essentially re-creating the Makefile since it has # hard coded paths and doesn't install the modules. # Add the created firwmare file insinto /usr/lib/hotplug/firmware doins ${S}/firmware/orinoco_ezusb_fw # add the modules dodir /lib/modules/${KV}/usb insinto /lib/modules/${KV}/usb doins ${S}/driver/firmware_class.o ${S}/driver/hermes.o \ ${S}/driver/orinoco.o ${S}/driver/orinoco_usb.o dodoc README NEWS driver/README.orinoco } pkg_postinst() { depmod -a einfo "" einfo "The orinoco_usb driver create a wlanX network device" einfo "However, these are not compatible with the wlanX drivers" einfo "provided by the linux-wlan-ng drivers. The wireless-tools" einfo "package provides the necessary tools to manage these devices" einfo "" }