git: 2d756eb15ad2 - main - security/py-badkeys: Add new port

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Wed, 11 Jan 2023 20:54:41 UTC
The branch main has been updated by otis:

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

commit 2d756eb15ad2088325428b23188de0fd1904b591
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-01-11 20:52:22 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-01-11 20:52:22 +0000

    security/py-badkeys: Add new port
    
    badkeys is a tool and a library to check cryptographic public keys for
    known vulnerabilities.
---
 security/Makefile             |  1 +
 security/py-badkeys/Makefile  | 22 ++++++++++++++++++++++
 security/py-badkeys/distinfo  |  3 +++
 security/py-badkeys/pkg-descr |  8 ++++++++
 4 files changed, 34 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 821d924775a0..4b9bfef1c6db 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -841,6 +841,7 @@
     SUBDIR += py-azure-keyvault-certificates
     SUBDIR += py-azure-keyvault-keys
     SUBDIR += py-azure-keyvault-secrets
+    SUBDIR += py-badkeys
     SUBDIR += py-base58
     SUBDIR += py-bcrypt
     SUBDIR += py-bitbox02
diff --git a/security/py-badkeys/Makefile b/security/py-badkeys/Makefile
new file mode 100644
index 000000000000..80ae322f81fa
--- /dev/null
+++ b/security/py-badkeys/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	badkeys
+DISTVERSION=	0.0.5
+CATEGORIES=	security python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	otis@FreeBSD.org
+COMMENT=	Tool to check public keys for known vulnerabilities
+WWW=		https://github.com/badkeys/badkeys
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/py-badkeys/distinfo b/security/py-badkeys/distinfo
new file mode 100644
index 000000000000..679123a5a6b9
--- /dev/null
+++ b/security/py-badkeys/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1673469302
+SHA256 (badkeys-0.0.5.tar.gz) = b4f0e8bc0fca685746a1ef3a2329f976fabd780635896c7f7c296e3c52c86b56
+SIZE (badkeys-0.0.5.tar.gz) = 370857
diff --git a/security/py-badkeys/pkg-descr b/security/py-badkeys/pkg-descr
new file mode 100644
index 000000000000..ffac74377879
--- /dev/null
+++ b/security/py-badkeys/pkg-descr
@@ -0,0 +1,8 @@
+Tool and library to check cryptographic public keys for known vulnerabilities.
+
+badkeys can directly scan SSH and TLS hosts and automatically check their
+public keys.
+
+This work was funded in part by Industriens Fond through the CIDI project
+(Cybersecure IOT in Danish Industry) and in part by the Center for Information
+Security and Trust (CISAT) at the IT University of Copenhagen, Denmark.