summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-crypt/badkeys/Manifest1
-rw-r--r--app-crypt/badkeys/badkeys-0.0.9.ebuild26
-rw-r--r--app-crypt/badkeys/metadata.xml1
3 files changed, 28 insertions, 0 deletions
diff --git a/app-crypt/badkeys/Manifest b/app-crypt/badkeys/Manifest
index d704e1b5b460..981523d5f794 100644
--- a/app-crypt/badkeys/Manifest
+++ b/app-crypt/badkeys/Manifest
@@ -1 +1,2 @@
DIST badkeys-0.0.8.tar.gz 372562 BLAKE2B ed09e24361730a4233bfe31482c7fcd860c4047c5043f046c9b99988dd0974d1ea603be498c1841bc52ea22887332cdac7d1e04a56edb662534f3638288a421a SHA512 5f225ca3966876993b1462257ff0823b463df3f0ffbc57f7dc4693479c53b11f28dd3526f0f565cb6be01f6b610315dad1ebbcbb7c5f64e82f18fe89077b7681
+DIST badkeys-0.0.9.tar.gz 374144 BLAKE2B 261818ce8bb1d82e6453348f05aca1b8100f9d206c5243cf5357e155436fabf4088d5708c83bfe3db4a83c0ee42c68ca750ef6295e68e114ca1d20126a6cceed SHA512 8acdf9224509711e566e042130bff54c6683c62e56fb03f5d5b491c7f7542e9af3b487315bc9899fc4fbdcb2aa2ca164e0eb2bf61ccc33587a308f8ac81eff31
diff --git a/app-crypt/badkeys/badkeys-0.0.9.ebuild b/app-crypt/badkeys/badkeys-0.0.9.ebuild
new file mode 100644
index 000000000000..9af1570815ed
--- /dev/null
+++ b/app-crypt/badkeys/badkeys-0.0.9.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{9..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Check cryptographic keys for known weaknesses"
+HOMEPAGE="https://badkeys.info/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="dkim ssh"
+
+DEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/gmpy[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ dkim? ( dev-python/dnspython[${PYTHON_USEDEP}] )
+ ssh? ( dev-python/paramiko[${PYTHON_USEDEP}] )"
+# TODO: add optional binary-file-search dependency once
+# it is packaged.
+DOCS=( README.md )
+
+distutils_enable_tests unittest
diff --git a/app-crypt/badkeys/metadata.xml b/app-crypt/badkeys/metadata.xml
index b0b28e9a1ea6..f169ea2e9a43 100644
--- a/app-crypt/badkeys/metadata.xml
+++ b/app-crypt/badkeys/metadata.xml
@@ -8,5 +8,6 @@
</upstream>
<use>
<flag name="ssh">Enable ssh scan mode via <pkg>dev-python/paramiko</pkg>.</flag>
+<flag name="dkim">Enable dkim scan mode via <pkg>dev-python/dnspython</pkg>.</flag>
</use>
</pkgmetadata>