summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-03 09:11:55 +0100
committerSam James <sam@gentoo.org>2022-06-03 09:12:05 +0100
commit6da026529f79b2790a0477b57155cf26f6fefcbb (patch)
treed5ad07ec96707fcc03d3baa18814925e226fb857 /net-dns/hash-slinger
parentdev-python/m2crypto: enable py3.11 (diff)
downloadgentoo-6da026529f79b2790a0477b57155cf26f6fefcbb.tar.gz
gentoo-6da026529f79b2790a0477b57155cf26f6fefcbb.tar.bz2
gentoo-6da026529f79b2790a0477b57155cf26f6fefcbb.zip
net-dns/hash-slinger: add 3.2
Closes: https://bugs.gentoo.org/846125 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns/hash-slinger')
-rw-r--r--net-dns/hash-slinger/Manifest1
-rw-r--r--net-dns/hash-slinger/hash-slinger-3.2.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-dns/hash-slinger/Manifest b/net-dns/hash-slinger/Manifest
index e200ab15ce5a..c895d12cf4e8 100644
--- a/net-dns/hash-slinger/Manifest
+++ b/net-dns/hash-slinger/Manifest
@@ -1 +1,2 @@
DIST hash-slinger-3.1.tar.gz 38224 BLAKE2B 35d60b648704e1aa96fbec000ff07c06a31a1f45c58f708fdad1bab464849d4de60963acde9f2c26eb4304454ed1406f698c8007dbf471794f16f26b8ebdb080 SHA512 04ad33b718f716cfd08bd52ee50db81372b7dc13895695e1b23cf904306166b73e388285c7cce8a0a0e5003e783bc61dea4c9ede7a44f22c16e24e2411c7f427
+DIST hash-slinger-3.2.tar.gz 38376 BLAKE2B 8c89f9a372818166c862d97354a60dddc2795c70f23b39225ad0fc3a2657cc5e048dca228dc004db0240fcf80e74bc799528d3459a65e6de347a493df5abf7b3 SHA512 01a25b3bc00bd9cd86c448f087c48ad04248a5a8755c2f154272b833efdce058a1fc62ea3f5cc6e9ff35180754b3e44db03c4e4888fd9051b749eff5fc8c3110
diff --git a/net-dns/hash-slinger/hash-slinger-3.2.ebuild b/net-dns/hash-slinger/hash-slinger-3.2.ebuild
new file mode 100644
index 000000000000..467f00926cfa
--- /dev/null
+++ b/net-dns/hash-slinger/hash-slinger-3.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-single-r1
+
+DESCRIPTION="Various tools to generate DNS records like SSHFP, TLSA, OPENPGPKEY, IPSECKEY"
+HOMEPAGE="https://github.com/letoams/hash-slinger"
+SRC_URI="https://github.com/letoams/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="ipsec +openpgp +ssh"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/dnspython[${PYTHON_USEDEP}]
+ dev-python/ipaddr[${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ ')
+ net-dns/unbound[python,${PYTHON_SINGLE_USEDEP}]
+ ipsec? ( net-vpn/libreswan[dnssec] )
+ openpgp? ( $(python_gen_cond_dep 'dev-python/python-gnupg[${PYTHON_USEDEP}]') )
+ ssh? ( net-misc/openssh )
+"
+
+src_install() {
+ local tools tool
+
+ tools="tlsa"
+
+ use ssh && tools+=" sshfp"
+ use openpgp && tools+=" openpgpkey"
+ use ipsec && tools+=" ipseckey"
+
+ for tool in $tools ; do
+ doman ${tool}.1
+ python_doscript ${tool}
+ done
+
+ dodoc BUGS CHANGES README
+}