commit: d2d7ee678f3780333adba0278252990b8107b2a1 Author: Xin Yang <yangmame <AT> icloud <DOT> com> AuthorDate: Sun Apr 7 05:49:48 2024 +0000 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> CommitDate: Fri Apr 12 05:25:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2d7ee67
net-wireless/aic8800: Bump to 1.0.5 Closes: https://github.com/gentoo/gentoo/pull/36145 Signed-off-by: Xin Yang <yangmame <AT> icloud.com> Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> net-wireless/aic8800/Manifest | 1 + net-wireless/aic8800/aic8800-1.0.5.ebuild | 58 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/net-wireless/aic8800/Manifest b/net-wireless/aic8800/Manifest index 8f1cc433fd6e..5855369aef24 100644 --- a/net-wireless/aic8800/Manifest +++ b/net-wireless/aic8800/Manifest @@ -1 +1,2 @@ DIST aic8800-1.0.3.deb 535400 BLAKE2B 0e337bded43f99a00fb3d786742418d7faf0adf3d6e517933d4d4a82e7e723e5f45798991238a02fb1836529a5d72cc56181356939eb150feb4c26f14dcd762e SHA512 0917ac4f5a594adb68c084f38bedacb92f3c0700d13dda497943d199bd883c18fc624ffc579091b40fdc6322dc2e5b81cc21add06b27ae8364ee2f8f9f119a7d +DIST aic8800-1.0.5.deb 595050 BLAKE2B 551e9ad09814bcab5464a7bfe09b922e400253403568068b74d839b8d53261251424b571266abed907314d08b27ac5bdbd51abd493bec5d0a511363173635e42 SHA512 4b4917a510caf1104ae7124f883b958d6a936a6e172d1afcc79f58349a943e0feb9a8bb35d326f96c56e0b089d62e3359cf81967e01e1edb1a1ddfc6fe101da0 diff --git a/net-wireless/aic8800/aic8800-1.0.5.ebuild b/net-wireless/aic8800/aic8800-1.0.5.ebuild new file mode 100644 index 000000000000..79471e659a08 --- /dev/null +++ b/net-wireless/aic8800/aic8800-1.0.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit linux-mod-r1 udev unpacker + +DESCRIPTION="aic8800 driver for AICSemi AIC8800/8801/8800DC/8800DW/8800FC Wifi/Bluetooth" +HOMEPAGE="https://www.aicsemi.com/ https://linux.brostrend.com/troubleshooting/source-code/" + +SRC_URI="https://linux.brostrend.com/${PN}-dkms.deb -> ${P}.deb" + +LICENSE="GPL-2+ firmware? ( freedist )" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+firmware udev" + +CONFIG_CHECK="~MAC80211 ~BT_HCIBTUSB" + +BDEPEND+=" + $(unpacker_src_uri_depends)" + +S="${WORKDIR}/usr/src/${P}" + +src_compile() { + MODULES_MAKEARGS+=( + KDIR="${KV_OUT_DIR}" + ) + emake "${MODULES_MAKEARGS[@]}" +} + +src_install() { + linux_moduleinto kernel/drivers/net/wireless/${PN} + linux_domodule aic8800_fdrv/aic8800_fdrv.ko aic_load_fw/aic_load_fw.ko + modules_post_process + if use firmware; then + insinto /lib/firmware + doins -r "${WORKDIR}/lib/firmware/aic8800DC" + fi + if use udev; then + # install udev rules for USB mode switching + udev_newrules "${WORKDIR}/lib/udev/rules.d/aic.rules" 99-aic-modeswitch.rules + fi +} + +pkg_postinst() { + if use udev; then + udev_reload + fi + linux-mod-r1_pkg_postinst +} + +pkg_postrm() { + if use udev; then + udev_reload + fi +}