aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2024-11-06 23:33:15 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2024-11-06 23:37:55 +0000
commit59d5bea1b4fac1635dcf9a31a8dd2a658845bb6c (patch)
tree0ee0b71209d62240f495a8fa72741e0d59cbf2a3
parenta5a24449e385d6ca8f2d77fd4a85e601bb19cb15 (diff)
comms/rtlbt-firmware: New port
Firmware for the Realtek Bluetooth USB devices. To be downloaded with rtlbtfw(8). Sponsored by: Future Crew LLC Reviewed by: arrowd Differential Revision: https://reviews.freebsd.org/D46740
-rw-r--r--comms/Makefile1
-rw-r--r--comms/rtlbt-firmware/Makefile30
-rw-r--r--comms/rtlbt-firmware/distinfo3
-rw-r--r--comms/rtlbt-firmware/pkg-descr4
-rw-r--r--comms/rtlbt-firmware/pkg-plist38
5 files changed, 76 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index 5ab14fb48678..bf5813c5e940 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -168,6 +168,7 @@
SUBDIR += remserial
SUBDIR += rtl-433
SUBDIR += rtl-sdr
+ SUBDIR += rtlbt-firmware
SUBDIR += rubygem-callsign
SUBDIR += rubygem-ruby-termios
SUBDIR += rubygem-serialport
diff --git a/comms/rtlbt-firmware/Makefile b/comms/rtlbt-firmware/Makefile
new file mode 100644
index 000000000000..7d491a389228
--- /dev/null
+++ b/comms/rtlbt-firmware/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= rtlbt-firmware
+DISTVERSION= 20240709
+DEB_REVISION= 2
+CATEGORIES= comms
+MASTER_SITES= DEBIAN/pool/non-free-firmware/f/firmware-nonfree/
+DISTNAME= firmware-realtek_${PORTVERSION}-${DEB_REVISION}_all
+EXTRACT_SUFX= .deb
+
+MAINTAINER= wulf@FreeBSD.org
+COMMENT= Realtek USB bluetooth adaptor firmwares used by rtlbtfw(8)
+WWW= https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
+
+LICENSE= REALTEK
+LICENSE_NAME= Realtek firmware license
+LICENSE_FILE= ${WRKDIR}/usr/share/doc/firmware-realtek/copyright
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+NO_BUILD= yes
+NO_ARCH= yes
+
+EXTRACT_CMD= ${AR}
+EXTRACT_BEFORE_ARGS= -p
+EXTRACT_AFTER_ARGS= data.tar.xz | ${TAR} -xf - ${EXTRACT_FILES}
+EXTRACT_FILES= usr/lib/firmware/rtl_bt \
+ usr/share/doc/firmware-realtek/copyright
+
+do-install:
+ cd ${WRKDIR}/usr/lib/firmware/rtl_bt && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/comms/rtlbt-firmware/distinfo b/comms/rtlbt-firmware/distinfo
new file mode 100644
index 000000000000..a955565ab786
--- /dev/null
+++ b/comms/rtlbt-firmware/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726405097
+SHA256 (firmware-realtek_20240709-2_all.deb) = f34dcc3f986c49e71b767e113aa8d73418c31d2a6d46244f6a35e2f8622d3e7e
+SIZE (firmware-realtek_20240709-2_all.deb) = 2162376
diff --git a/comms/rtlbt-firmware/pkg-descr b/comms/rtlbt-firmware/pkg-descr
new file mode 100644
index 000000000000..f1d57d967b12
--- /dev/null
+++ b/comms/rtlbt-firmware/pkg-descr
@@ -0,0 +1,4 @@
+Firmware for the Realtek Bluetooth USB devices.
+To be downloaded with rtlbtfw(8).
+
+See also: https://packages.debian.org/firmware-realtek
diff --git a/comms/rtlbt-firmware/pkg-plist b/comms/rtlbt-firmware/pkg-plist
new file mode 100644
index 000000000000..5611816bf31b
--- /dev/null
+++ b/comms/rtlbt-firmware/pkg-plist
@@ -0,0 +1,38 @@
+%%DATADIR%%/rtl8192ee_fw.bin
+%%DATADIR%%/rtl8192eu_fw.bin
+%%DATADIR%%/rtl8723a_fw.bin
+%%DATADIR%%/rtl8723b_fw.bin
+%%DATADIR%%/rtl8723bs_config-OBDA0623.bin
+%%DATADIR%%/rtl8723bs_config-OBDA8723.bin
+%%DATADIR%%/rtl8723bs_fw.bin
+%%DATADIR%%/rtl8723d_config.bin
+%%DATADIR%%/rtl8723d_fw.bin
+%%DATADIR%%/rtl8761a_fw.bin
+%%DATADIR%%/rtl8761b_config.bin
+%%DATADIR%%/rtl8761b_fw.bin
+%%DATADIR%%/rtl8761bu_config.bin
+%%DATADIR%%/rtl8761bu_fw.bin
+%%DATADIR%%/rtl8812ae_fw.bin
+%%DATADIR%%/rtl8821a_config.bin
+%%DATADIR%%/rtl8821a_fw.bin
+%%DATADIR%%/rtl8821c_config.bin
+%%DATADIR%%/rtl8821c_fw.bin
+%%DATADIR%%/rtl8821cs_config.bin
+%%DATADIR%%/rtl8821cs_fw.bin
+%%DATADIR%%/rtl8822b_config.bin
+%%DATADIR%%/rtl8822b_fw.bin
+%%DATADIR%%/rtl8822cs_config.bin
+%%DATADIR%%/rtl8822cs_fw.bin
+%%DATADIR%%/rtl8822cu_config.bin
+%%DATADIR%%/rtl8822cu_fw.bin
+%%DATADIR%%/rtl8851bu_config.bin
+%%DATADIR%%/rtl8851bu_fw.bin
+%%DATADIR%%/rtl8852au_config.bin
+%%DATADIR%%/rtl8852au_fw.bin
+%%DATADIR%%/rtl8852btu_config.bin
+%%DATADIR%%/rtl8852btu_fw.bin
+%%DATADIR%%/rtl8852bu_config.bin
+%%DATADIR%%/rtl8852bu_fw.bin
+%%DATADIR%%/rtl8852cu_config.bin
+%%DATADIR%%/rtl8852cu_fw.bin
+%%DATADIR%%/rtl8852cu_fw_v2.bin