net-dns/hash-slinger - 3.4 (gentoo)

Search

Package Information

Description:
Various tools to generate DNS records like SSHFP, TLSA, OPENPGPKEY, IPSECKEY
Homepage:
https://github.com/letoams/hash-slinger
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
3.4 8 ~amd64 ~arm ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..13} )

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}"

# m2crypto: https://github.com/letoams/hash-slinger/issues/49
RDEPEND="
	${PYTHON_DEPS}
	$(python_gen_cond_dep '
		dev-python/dnspython[${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? ( virtual/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
}

USE Flags

openpgp
Default: Enabled (+)
ssh
Default: Enabled (+)

Dependencies

RDEPEND

	${PYTHON_DEPS}
	$(python_gen_cond_dep '
		dev-python/dnspython[${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? ( virtual/openssh )

Manifest for 3.4

Type File Size Source URLs
DIST hash-slinger-3.4.tar.gz 38668 bytes https://github.com/letoams/hash-slinger/archive/3.4.tar.gz