# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # This is from the atmel and atmel_cs driver incorporated in the 2.6 kernel # tree. # # Do not confuse this with the atmelwlandriver provided by Atmel that is # located at atmelwlandriver.sourceforge.net DESCRIPTION="Firmware and config for atmel and atmel_cs wlan drivers included in linux 2.6" HOMEPAGE="http://www.thekelleys.org.uk/atmel/" SRC_URI="http://www.thekelleys.org.uk/atmel/${P}.tar.gz" LICENSE="Atmel" #the new license that is posted in bug SLOT="0" KEYWORDS="~x86" IUSE="pcmcia usb" DEPEND=">=sys-apps/hotplug-20040923" # This version is the first using /lib/firmware. RDEPEND=">=net-wireless/wireless-tools-26-r1 pcmcia? ( sys-apps/pcmcia-cs )" src_install() { dodoc README COPYING VERSION insinto /lib/firmware || die doins images/*.bin if use usb; then doins images.usb/*.bin fi if use pcmcia; then insinto /etc/pcmcia || die doins atmel.conf || die fi } pkg_postinst() { if use pcmcia && [ -f /var/run/cardmgr.pid ]; then kill -HUP `cat /var/run/cardmgr.pid` fi } pkg_postrm() { if use pcmcia && [ -f /var/run/cardmgr.pid ]; then kill -HUP `cat /var/run/cardmgr.pid` fi }