pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/py-solo1



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Apr 13 13:42:59 UTC 2023

Added Files:
        pkgsrc/security/py-solo1: DESCR Makefile PLIST distinfo
        pkgsrc/security/py-solo1/patches: patch-solo_devices_base.py
            patch-solo_devices_solo__v1.py patch-solo_solotool.py

Log Message:
security/py-solo1: import py-solo1-0.1.1

Python tool and library for managing SoloKeys Solo 1.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/security/py-solo1/DESCR \
    pkgsrc/security/py-solo1/Makefile pkgsrc/security/py-solo1/PLIST \
    pkgsrc/security/py-solo1/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/py-solo1/patches/patch-solo_devices_base.py \
    pkgsrc/security/py-solo1/patches/patch-solo_devices_solo__v1.py \
    pkgsrc/security/py-solo1/patches/patch-solo_solotool.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/security/py-solo1/DESCR
diff -u /dev/null pkgsrc/security/py-solo1/DESCR:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/DESCR      Thu Apr 13 13:42:59 2023
@@ -0,0 +1 @@
+Python tool and library for managing SoloKeys Solo 1.
Index: pkgsrc/security/py-solo1/Makefile
diff -u /dev/null pkgsrc/security/py-solo1/Makefile:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/Makefile   Thu Apr 13 13:42:59 2023
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2023/04/13 13:42:59 wiz Exp $
+
+DISTNAME=      solo1-0.1.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_PYPI:=s/solo1/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/solokeys/solo1-cli/
+COMMENT=       Tool for managing SoloKeys Solo 1
+LICENSE=       apache-2.0 OR mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit>=0:../../devel/py-flit
+DEPENDS+=      ${PYPKGPREFIX}-click>=7.1:../../devel/py-click
+DEPENDS+=      ${PYPKGPREFIX}-ecdsa>=0:../../security/py-ecdsa
+DEPENDS+=      ${PYPKGPREFIX}-fido2>=0.9.1:../../security/py-fido2
+DEPENDS+=      ${PYPKGPREFIX}-intelhex>=0:../../devel/py-intelhex
+DEPENDS+=      ${PYPKGPREFIX}-requests>=0:../../devel/py-requests
+DEPENDS+=      ${PYPKGPREFIX}-serial>=0:../../comms/py-serial
+DEPENDS+=      ${PYPKGPREFIX}-usb>=0:../../devel/py-usb
+
+PYTHON_VERSIONED_DEPENDENCIES+=        cryptography
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27      # py-flit
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/${PYSITELIB}/solo && ${RM} -f *.orig */*.orig
+
+.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/security/py-solo1/PLIST
diff -u /dev/null pkgsrc/security/py-solo1/PLIST:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/PLIST      Thu Apr 13 13:42:59 2023
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1 2023/04/13 13:42:59 wiz Exp $
+bin/solo
+bin/solo1
+${PYSITELIB}/solo/VERSION
+${PYSITELIB}/solo/__init__.py
+${PYSITELIB}/solo/__init__.pyc
+${PYSITELIB}/solo/cli/__init__.py
+${PYSITELIB}/solo/cli/__init__.pyc
+${PYSITELIB}/solo/cli/_checks.py
+${PYSITELIB}/solo/cli/_checks.pyc
+${PYSITELIB}/solo/cli/key.py
+${PYSITELIB}/solo/cli/key.pyc
+${PYSITELIB}/solo/cli/monitor.py
+${PYSITELIB}/solo/cli/monitor.pyc
+${PYSITELIB}/solo/cli/program.py
+${PYSITELIB}/solo/cli/program.pyc
+${PYSITELIB}/solo/cli/update.py
+${PYSITELIB}/solo/cli/update.pyc
+${PYSITELIB}/solo/client.py
+${PYSITELIB}/solo/client.pyc
+${PYSITELIB}/solo/commands.py
+${PYSITELIB}/solo/commands.pyc
+${PYSITELIB}/solo/devices/__init__.py
+${PYSITELIB}/solo/devices/__init__.pyc
+${PYSITELIB}/solo/devices/base.py
+${PYSITELIB}/solo/devices/base.pyc
+${PYSITELIB}/solo/devices/solo_v1.py
+${PYSITELIB}/solo/devices/solo_v1.pyc
+${PYSITELIB}/solo/dfu.py
+${PYSITELIB}/solo/dfu.pyc
+${PYSITELIB}/solo/enums.py
+${PYSITELIB}/solo/enums.pyc
+${PYSITELIB}/solo/exceptions.py
+${PYSITELIB}/solo/exceptions.pyc
+${PYSITELIB}/solo/fido2/__init__.py
+${PYSITELIB}/solo/fido2/__init__.pyc
+${PYSITELIB}/solo/fido2/udp_backend.py
+${PYSITELIB}/solo/fido2/udp_backend.pyc
+${PYSITELIB}/solo/helpers.py
+${PYSITELIB}/solo/helpers.pyc
+${PYSITELIB}/solo/hmac_secret.py
+${PYSITELIB}/solo/hmac_secret.pyc
+${PYSITELIB}/solo/operations.py
+${PYSITELIB}/solo/operations.pyc
+${PYSITELIB}/solo/solotool.py
+${PYSITELIB}/solo/solotool.pyc
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE-APACHE
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE-MIT
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
Index: pkgsrc/security/py-solo1/distinfo
diff -u /dev/null pkgsrc/security/py-solo1/distinfo:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/distinfo   Thu Apr 13 13:42:59 2023
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2023/04/13 13:42:59 wiz Exp $
+
+BLAKE2s (solo1-0.1.1.tar.gz) = 41401bb0dd283eeb41b2038734d8c8f2ca26d145316705c305c4d7e88969872c
+SHA512 (solo1-0.1.1.tar.gz) = 7e345059205f8753d7d89a22091316f5a529e5afedd82f7a03acbe494035479ef28731cc2b91e8d46058ce638a0e420db8c5f57fcedfcc39b6d07de5eda86f93
+Size (solo1-0.1.1.tar.gz) = 39300 bytes
+SHA1 (patch-solo_devices_base.py) = b41aae82a2adc0d8e78c9b8891db3c87a67c120e
+SHA1 (patch-solo_devices_solo__v1.py) = 66a642eea53468e5baf430a414e39b5c8d97e24a
+SHA1 (patch-solo_solotool.py) = 8f6b102dcf903c6fb179b7fd1ec27360895fda2a

Index: pkgsrc/security/py-solo1/patches/patch-solo_devices_base.py
diff -u /dev/null pkgsrc/security/py-solo1/patches/patch-solo_devices_base.py:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/patches/patch-solo_devices_base.py Thu Apr 13 13:42:59 2023
@@ -0,0 +1,54 @@
+$NetBSD: patch-solo_devices_base.py,v 1.1 2023/04/13 13:42:59 wiz Exp $
+
+From 02bb791f3c32c8f93a3f5bc4d256a5a6c77d7528 Mon Sep 17 00:00:00 2001
+From: Kendrick Shaw <kms15%case.edu@localhost>
+Date: Thu, 9 Jun 2022 23:16:43 +0000
+Subject: [PATCH] Update to fido2 library 1.0 API
+
+The fido2 library has changed the names of the CTAP1 class to Ctap1 and
+the CTAP2 class to Ctap2; this commit updates the solo1-cli code to use
+the new names.
+
+--- solo/devices/base.py.orig  2022-03-08 11:59:14.206628800 +0000
++++ solo/devices/base.py
+@@ -3,7 +3,7 @@ import struct
+ from cryptography import x509
+ from cryptography.hazmat.backends import default_backend
+ from fido2.attestation import Attestation
+-from fido2.ctap2 import CTAP2, CredentialManagement
++from fido2.ctap2 import Ctap2, CredentialManagement
+ from fido2.hid import CTAPHID
+ from fido2.utils import hmac_sha256
+ from fido2.webauthn import PublicKeyCredentialCreationOptions
+@@ -76,7 +76,7 @@ class SoloClient:
+     def reset(
+         self,
+     ):
+-        CTAP2(self.get_current_hid_device()).reset()
++        Ctap2(self.get_current_hid_device()).reset()
+ 
+     def change_pin(self, old_pin, new_pin):
+         client = self.get_current_fido_client()
+@@ -114,7 +114,7 @@ class SoloClient:
+     def cred_mgmt(self, pin):
+         client = self.get_current_fido_client()
+         token = client.client_pin.get_pin_token(pin)
+-        ctap2 = CTAP2(self.get_current_hid_device())
++        ctap2 = Ctap2(self.get_current_hid_device())
+         return CredentialManagement(ctap2, client.client_pin.protocol, token)
+ 
+     def enter_solo_bootloader(
+@@ -137,11 +137,11 @@ class SoloClient:
+         pass
+ 
+     def program_kbd(self, cmd):
+-        ctap2 = CTAP2(self.get_current_hid_device())
++        ctap2 = Ctap2(self.get_current_hid_device())
+         return ctap2.send_cbor(0x51, cmd)
+ 
+     def sign_hash(self, credential_id, dgst, pin):
+-        ctap2 = CTAP2(self.get_current_hid_device())
++        ctap2 = Ctap2(self.get_current_hid_device())
+         client = self.get_current_fido_client()
+         if pin:
+             pin_token = client.client_pin.get_pin_token(pin)
Index: pkgsrc/security/py-solo1/patches/patch-solo_devices_solo__v1.py
diff -u /dev/null pkgsrc/security/py-solo1/patches/patch-solo_devices_solo__v1.py:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/patches/patch-solo_devices_solo__v1.py     Thu Apr 13 13:42:59 2023
@@ -0,0 +1,36 @@
+$NetBSD: patch-solo_devices_solo__v1.py,v 1.1 2023/04/13 13:42:59 wiz Exp $
+
+From 02bb791f3c32c8f93a3f5bc4d256a5a6c77d7528 Mon Sep 17 00:00:00 2001
+From: Kendrick Shaw <kms15%case.edu@localhost>
+Date: Thu, 9 Jun 2022 23:16:43 +0000
+Subject: [PATCH] Update to fido2 library 1.0 API
+
+The fido2 library has changed the names of the CTAP1 class to Ctap1 and
+the CTAP2 class to Ctap2; this commit updates the solo1-cli code to use
+the new names.
+
+--- solo/devices/solo_v1.py.orig       2022-03-08 11:59:14.206628800 +0000
++++ solo/devices/solo_v1.py
+@@ -8,8 +8,8 @@ from threading import Event
+ 
+ from fido2.client import Fido2Client
+ from fido2.ctap import CtapError
+-from fido2.ctap1 import CTAP1
+-from fido2.ctap2 import CTAP2
++from fido2.ctap1 import Ctap1
++from fido2.ctap2 import Ctap2
+ from fido2.hid import CTAPHID, CtapHidDevice
+ from intelhex import IntelHex
+ 
+@@ -64,9 +64,9 @@ class Client(SoloClient):
+             dev = devices[0]
+         self.dev = dev
+ 
+-        self.ctap1 = CTAP1(dev)
++        self.ctap1 = Ctap1(dev)
+         try:
+-            self.ctap2 = CTAP2(dev)
++            self.ctap2 = Ctap2(dev)
+         except CtapError:
+             self.ctap2 = None
+ 
Index: pkgsrc/security/py-solo1/patches/patch-solo_solotool.py
diff -u /dev/null pkgsrc/security/py-solo1/patches/patch-solo_solotool.py:1.1
--- /dev/null   Thu Apr 13 13:42:59 2023
+++ pkgsrc/security/py-solo1/patches/patch-solo_solotool.py     Thu Apr 13 13:42:59 2023
@@ -0,0 +1,24 @@
+$NetBSD: patch-solo_solotool.py,v 1.1 2023/04/13 13:42:59 wiz Exp $
+
+From 02bb791f3c32c8f93a3f5bc4d256a5a6c77d7528 Mon Sep 17 00:00:00 2001
+From: Kendrick Shaw <kms15%case.edu@localhost>
+Date: Thu, 9 Jun 2022 23:16:43 +0000
+Subject: [PATCH] Update to fido2 library 1.0 API
+
+The fido2 library has changed the names of the CTAP1 class to Ctap1 and
+the CTAP2 class to Ctap2; this commit updates the solo1-cli code to use
+the new names.
+
+--- solo/solotool.py.orig      2022-03-08 11:59:14.209962000 +0000
++++ solo/solotool.py
+@@ -32,8 +32,8 @@ from cryptography.hazmat.primitives impo
+ from fido2.attestation import Attestation
+ from fido2.client import ClientError, Fido2Client
+ from fido2.ctap import CtapError
+-from fido2.ctap1 import CTAP1, ApduError
+-from fido2.ctap2 import CTAP2
++from fido2.ctap1 import Ctap1, ApduError
++from fido2.ctap2 import Ctap2
+ from fido2.hid import CTAPHID, CtapHidDevice
+ from intelhex import IntelHex
+ 



Home | Main Index | Thread Index | Old Index