diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2024-01-04 02:08:19 +0100 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2024-01-04 02:13:17 +0100 |
commit | 3ae7997f06d40c6d39b740aaf0da4104756f179b (patch) | |
tree | 9ca1db7fae7624ed5b25f8eb072fe96d7e15065b /net-wireless | |
parent | kde-frameworks/kuserfeedback: Fix IUSE !kf6compat deps (diff) | |
download | gentoo-3ae7997f06d40c6d39b740aaf0da4104756f179b.tar.gz gentoo-3ae7997f06d40c6d39b740aaf0da4104756f179b.tar.bz2 gentoo-3ae7997f06d40c6d39b740aaf0da4104756f179b.zip |
net-wireless/aic8800: new package, add 1.0.3
Signed-off-by: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/aic8800/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/aic8800/aic8800-1.0.3.ebuild | 58 | ||||
-rw-r--r-- | net-wireless/aic8800/metadata.xml | 13 |
3 files changed, 72 insertions, 0 deletions
diff --git a/net-wireless/aic8800/Manifest b/net-wireless/aic8800/Manifest new file mode 100644 index 000000000000..8f1cc433fd6e --- /dev/null +++ b/net-wireless/aic8800/Manifest @@ -0,0 +1 @@ +DIST aic8800-1.0.3.deb 535400 BLAKE2B 0e337bded43f99a00fb3d786742418d7faf0adf3d6e517933d4d4a82e7e723e5f45798991238a02fb1836529a5d72cc56181356939eb150feb4c26f14dcd762e SHA512 0917ac4f5a594adb68c084f38bedacb92f3c0700d13dda497943d199bd883c18fc624ffc579091b40fdc6322dc2e5b81cc21add06b27ae8364ee2f8f9f119a7d diff --git a/net-wireless/aic8800/aic8800-1.0.3.ebuild b/net-wireless/aic8800/aic8800-1.0.3.ebuild new file mode 100644 index 000000000000..1665ab563bf5 --- /dev/null +++ b/net-wireless/aic8800/aic8800-1.0.3.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+" +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 +} diff --git a/net-wireless/aic8800/metadata.xml b/net-wireless/aic8800/metadata.xml new file mode 100644 index 000000000000..567331d7b4af --- /dev/null +++ b/net-wireless/aic8800/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chithanh@gentoo.org</email> + <name>Chí-Thanh Christopher Nguyễn</name> + </maintainer> + <longdescription>Upstream out-of-tree aic8800 linux driver for the following chips: +AIC8800 AIC8801 AIC8800DC AIC8800DW AIC8800FC</longdescription> + <use> + <flag name="firmware">Install device firmware</flag> + </use> +</pkgmetadata> |