summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-11-27 00:44:10 +0100
committerMarek Szuba <marecki@gentoo.org>2021-11-27 00:44:10 +0100
commitef63cef814ae993523929898ca2988ab539f9d0c (patch)
tree360c07d40a42b36d4e23862492179ee4373e16e2 /sys-firmware/atmel-firmware
parentsys-cluster/ploop: update EAPI 5 -> 7 (diff)
downloadgentoo-ef63cef814ae993523929898ca2988ab539f9d0c.tar.gz
gentoo-ef63cef814ae993523929898ca2988ab539f9d0c.tar.bz2
gentoo-ef63cef814ae993523929898ca2988ab539f9d0c.zip
sys-firmware/atmel-firmware: update EAPI 5 -> 8
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-firmware/atmel-firmware')
-rw-r--r--sys-firmware/atmel-firmware/atmel-firmware-1.3-r2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/sys-firmware/atmel-firmware/atmel-firmware-1.3-r2.ebuild b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r2.ebuild
new file mode 100644
index 000000000000..93b12d7aba22
--- /dev/null
+++ b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Firmware and config for atmel and atmel_cs wlan drivers included in linux 2.6"
+HOMEPAGE="https://www.thekelleys.org.uk/atmel/"
+SRC_URI="https://www.thekelleys.org.uk/atmel/${P}.tar.gz"
+
+LICENSE="Atmel"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="pcmcia usb"
+
+RDEPEND=">=net-wireless/wireless-tools-26-r1
+ pcmcia? ( sys-apps/pcmciautils )"
+
+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 /run/cardmgr.pid ]; then
+ kill -HUP `cat /run/cardmgr.pid`
+ fi
+}
+
+pkg_postrm() {
+ if use pcmcia && [ -f /run/cardmgr.pid ]; then
+ kill -HUP `cat /run/cardmgr.pid`
+ fi
+}