summaryrefslogtreecommitdiff
path: root/sys-firmware/atmel-firmware
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-14 10:36:56 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-14 10:36:56 +0100
commit5af5a2b4acc97daacc0bf0e1d4e85ec780734689 (patch)
treec3e48a276c7fda27c8e30b6b8864e178e5c496fb /sys-firmware/atmel-firmware
parent605eb6cd753ab91e58e7561ebad2e75a44bcccc4 (diff)
gentoo auto-resync : 14:07:2023 - 10:36:56
Diffstat (limited to 'sys-firmware/atmel-firmware')
-rw-r--r--sys-firmware/atmel-firmware/Manifest2
-rw-r--r--sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild60
-rw-r--r--sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch13
3 files changed, 75 insertions, 0 deletions
diff --git a/sys-firmware/atmel-firmware/Manifest b/sys-firmware/atmel-firmware/Manifest
index 0e41bc741ed5..1819b535c689 100644
--- a/sys-firmware/atmel-firmware/Manifest
+++ b/sys-firmware/atmel-firmware/Manifest
@@ -1,3 +1,5 @@
+AUX atmel-firmware-1.3-clang-16-build.patch 288 BLAKE2B 11400c39197b756967eab7d5b708652ad5368db5a5eef3bbb3be865a3c2e1702ad36ea001df75531968c6eff096b1a726eb5cb4eb2daac7f9a71e1f7bfe8d36e SHA512 8dfe8c1516ce0d5e248048780be5a926fdf7bbe1fd80605d2ec4738537cac0a4ad2885ed3c35fe20e943418c0df69b4e2847a6feb1c5b40e1e6d7cd87d1c612a
DIST atmel-firmware-1.3.tar.gz 470254 BLAKE2B 76b90d6bf34db5540ab8c4034a439e8da6e0590ecbca0962c9e65099143b67337c91f7673a2cc33a2191924f42f69f922176a9b91f8592ce649dbf04a17b36ee SHA512 e87767008d3fe08a7e997b629a11589c00f46ca375639dd0b06c48b2de831a7df666c895888026eff03b7ee81a7594349fd550c4943b088ce26fb57f660ce89b
EBUILD atmel-firmware-1.3-r2.ebuild 1156 BLAKE2B e377ff4ba37e71ee23831fba4c3d18c9da436ed1345c6b29823670bee1a4787e21683cf7a562f36fc16bc7c2c93bfd04422097f68688a582d76901aa700a9e29 SHA512 3b4294034d6ae15ccc3cdde87f500557a364fdd947aaa8b16d4d26c8035674aa0754296c7e75db95e3fb40052b2f97a435107a51357a2c2eb27ddc2a6a34c141
+EBUILD atmel-firmware-1.3-r3.ebuild 1217 BLAKE2B e7918684a655cb9e50bafe7fdca3817d64a96a380a92caa8a1a39d9fb0933dce6d5ccc84cb55a08f7e9324c71dbb7bb5067c325f99a3b43127b087a7e79166c0 SHA512 a64e375e93df2350b21074320a33c767751d04358e991641469b7a7fbc29eceb9b4774d1f00c0e67f1f60fa5bf31a37ab56e722d33a06ac1b9581cfd19c41aca
MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a
diff --git a/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild
new file mode 100644
index 000000000000..bd7600155a73
--- /dev/null
+++ b/sys-firmware/atmel-firmware/atmel-firmware-1.3-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 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 )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3-clang-16-build.patch
+)
+
+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
+}
diff --git a/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch b/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch
new file mode 100644
index 000000000000..dca3dd03be43
--- /dev/null
+++ b/sys-firmware/atmel-firmware/files/atmel-firmware-1.3-clang-16-build.patch
@@ -0,0 +1,13 @@
+Fix build with clang 16
+Bug: https://bugs.gentoo.org/887113
+--- a/atmel_fwl.c
++++ b/atmel_fwl.c
+@@ -37,7 +37,7 @@ struct atmel_priv_ioctl {
+ unsigned short len;
+ };
+
+-main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int i, magic, rc, sock = -1;
+ struct ifreq ifr;