You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
12 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
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"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="amd64 ~ppc x86"
|
||
12 years ago
|
IUSE="pcmcia usb"
|
||
|
|
||
12 years ago
|
RDEPEND=">=net-wireless/wireless-tools-26-r1
|
||
12 years ago
|
pcmcia? ( sys-apps/pcmciautils )"
|
||
12 years ago
|
|
||
|
src_compile() {
|
||
|
tc-export CC
|
||
|
emake atmel_fwl
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
# atmel_at76c504c-wpa.bin should be renamed to atmel_at76c504-wpa.bin, bug #398803
|
||
|
mv images/atmel_at76c504c-wpa.bin images/atmel_at76c504-wpa.bin || die
|
||
|
|
||
|
insinto /lib/firmware
|
||
|
doins images/*.bin
|
||
|
|
||
|
if use usb; then
|
||
|
doins images.usb/*.bin
|
||
|
fi
|
||
|
|
||
|
if use pcmcia; then
|
||
|
insinto /etc/pcmcia
|
||
|
doins atmel.conf
|
||
|
fi
|
||
|
|
||
|
dosbin atmel_fwl atmel_fwl.pl
|
||
|
doman atmel_fwl.8
|
||
|
dodoc README VERSION
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|