commit: c4a344ca8ff325b0a20423816e6dadf221dc8a63 parent: 236ffc0524e93aaee574f7d5b34edf5748828c6b Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Thu, 17 Jan 2019 04:01:23 +0100 net-dns/ldns-utils: Import from ::gentooDiffstat:
A | net-dns/ldns-utils/Manifest | 1 | + |
A | net-dns/ldns-utils/ldns-utils-1.7.0-r1.ebuild | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | net-dns/ldns-utils/metadata.xml | 19 | +++++++++++++++++++ |
3 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/net-dns/ldns-utils/Manifest b/net-dns/ldns-utils/Manifest @@ -0,0 +1 @@ +DIST ldns-1.7.0.tar.gz 1304424 BLAKE2B 2f37aa2d00c1d9cf18711bd4f873f4722df01c4f4d0f627e054f04b2473c0fbf19449e293a130d5c8b98dcebafeb3d7b3f5923ae0244bd80139cea77f2171e06 SHA512 8a4e48bcc2a244b92447a9830b60efbb656fb7955f3559ef2eb6f8e724c4c0208776350c44ccf7dcf1ffe0b7b9d9ccc4cbddc5bc16e8888db494ab4d0bce3bd8 diff --git a/net-dns/ldns-utils/ldns-utils-1.7.0-r1.ebuild b/net-dns/ldns-utils/ldns-utils-1.7.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MY_P=${P/-utils} + +DESCRIPTION="Set of utilities to simplify various dns(sec) tasks" +HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/" +SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="+dane ecdsa examples gost ssl" + +REQUIRED_USE=" + ecdsa? ( ssl ) + dane? ( ssl ) + gost? ( ssl ) +" + +DEPEND=">=net-libs/ldns-${PV}[dane?,ecdsa?,gost?] + examples? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_configure() { + cd "${S}"/drill + econf $(use_with ssl) + + if use examples; then + cd "${S}"/examples + econf \ + $(use_enable dane) \ + $(use_enable ecdsa) \ + $(use_enable gost) \ + $(use_enable ssl sha2) \ + $(use_with ssl) + fi +} + +src_compile() { + emake -C drill + if use examples; then + emake -C examples + fi +} + +src_install() { + cd "${S}"/drill + emake DESTDIR="${D}" install + dodoc ChangeLog.22-nov-2005 README REGRESSIONS + + if use examples; then + cd "${S}"/examples + emake DESTDIR="${D}" install + newdoc README README.examples + fi +} diff --git a/net-dns/ldns-utils/metadata.xml b/net-dns/ldns-utils/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <longdescription lang="en"> +ldns is a library with the aim to simplify DNS programing in C. All +lowlevel DNS/DNSSEC operations are supported. We also define a higher +level API which allows a programmer to (for instance) create or sign +packets. + </longdescription> + <use> + <flag name="dane">Enable DNS-based Authentication of Named Entities (DANE) support</flag> + <flag name="ecdsa">Enable ECDSA support</flag> + <flag name="gost">Enable GOST support</flag> + </use> +</pkgmetadata>