git: afff45326f3e - main - finance/electrum: Support BitBox02 hardware wallet

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Fri, 08 Apr 2022 09:48:36 UTC
The branch main has been updated by ehaupt:

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

commit afff45326f3e40d7f44d28d6449a752f87c0e398
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-04-08 09:40:35 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-04-08 09:48:30 +0000

    finance/electrum: Support BitBox02 hardware wallet
    
    Support BitBox02 hardware wallet from Shift Crypto,
    https://shiftcrypto.ch/.
    
    Add devd rule for device to sample configuration.
    
    Sponsored by:   Shift Crypto
---
 finance/electrum/Makefile                          |  7 +++----
 finance/electrum/files/hardware_wallet.conf.sample | 10 ++++++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile
index 82cb404b8d63..ce7be2ad0a6d 100644
--- a/finance/electrum/Makefile
+++ b/finance/electrum/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	electrum
 PORTVERSION=	4.2.1
+PORTREVISION=	1
 CATEGORIES=	finance python
 MASTER_SITES=	https://download.electrum.org/${PORTVERSION}/ \
 		http://download.electrum.org/${PORTVERSION}/
@@ -50,10 +51,8 @@ HARDWARE_DESC=	Enable Bitcoin hardware wallet support
 
 GUI_USES=		desktop-file-utils pyqt:5
 GUI_USE=		PYQT=pyqt5,sip
-# Consider portinting, hw wallets:
-#  safet>=0.1.5
-#  bitbox02>=6.0.0
-HARDWARE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}btchip-python>=0.1.32:security/py-btchip-python@${PY_FLAVOR} \
+HARDWARE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bitbox02>=0.13.0:security/py-bitbox02@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}btchip-python>=0.1.32:security/py-btchip-python@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}ckcc-protocol>=0.7.7:security/py-ckcc-protocol@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}hidapi>=0:comms/py-hidapi@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}keepkey>=6.3.1:security/py-keepkey@${PY_FLAVOR} \
diff --git a/finance/electrum/files/hardware_wallet.conf.sample b/finance/electrum/files/hardware_wallet.conf.sample
index ebb002e855af..ac8b7e77bf86 100644
--- a/finance/electrum/files/hardware_wallet.conf.sample
+++ b/finance/electrum/files/hardware_wallet.conf.sample
@@ -19,3 +19,13 @@
 #        match "type"            "ATTACH";
 #        action "/bin/chmod g=rw /dev/$cdev";
 #};
+
+## shiftcrypto.ch BitBox02
+#notify 301 {
+#        match "system"          "USB";
+#        match "subsystem"       "DEVICE";
+#        match "vendor"          "0x03eb";
+#        match "product"         "0x2403";
+#        match "type"            "ATTACH";
+#        action "/bin/chmod g=rw /dev/$cdev";
+#};