git: 59d5bea1b4fa - main - comms/rtlbt-firmware: New port

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Wed, 06 Nov 2024 23:39:30 UTC
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/ports/commit/?id=59d5bea1b4fac1635dcf9a31a8dd2a658845bb6c

commit 59d5bea1b4fac1635dcf9a31a8dd2a658845bb6c
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-11-06 23:33:15 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-11-06 23:37:55 +0000

    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
---
 comms/Makefile                 |  1 +
 comms/rtlbt-firmware/Makefile  | 30 ++++++++++++++++++++++++++++++
 comms/rtlbt-firmware/distinfo  |  3 +++
 comms/rtlbt-firmware/pkg-descr |  4 ++++
 comms/rtlbt-firmware/pkg-plist | 38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 76 insertions(+)

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