blob: d2d0e456e12cdb7d96c68595268b1a36111e4c24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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 ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="+dane ecdsa ed25519 ed448 examples gost libressl ssl"
REQUIRED_USE="
ecdsa? ( ssl )
ed25519? ( ssl )
ed448? ( ssl )
dane? ( ssl )
gost? ( ssl )
"
DEPEND=">=net-libs/ldns-${PV}[dane?,ecdsa?,ed25519?,ed448?,gost?]
examples? ( net-libs/libpcap )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
src_configure() {
# >=openssl-1.1.0 required for dane-ta
if has_version "<dev-libs/openssl-1.1.0" || has_version dev-libs/libressl; then
local dane_ta_usage="--disable-dane-ta-usage"
else
local dane_ta_usage=""
fi
ECONF_SOURCE=${S} \
econf \
--with-drill \
$(use_with ssl) \
$(use_with examples) \
$(use_enable dane) \
$(use_enable ecdsa) \
$(use_enable ed25519) \
$(use_enable ed448) \
$(use_enable gost) \
$(use_enable ssl sha2) \
$dane_ta_usage
}
src_compile() {
default
}
src_install() {
#cd "${S}"/drill
emake DESTDIR="${D}" install-drill
dodoc drill/{ChangeLog.22-nov-2005,README,REGRESSIONS}
if use examples; then
emake DESTDIR="${D}" install-examples
newdoc examples/README README.examples
fi
}
|