diff options
author | Quentin Retornaz <gentoo@retornaz.com> | 2019-06-21 05:25:04 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-06-22 15:49:23 -0400 |
commit | 8bc58cfb49740269eb8041d1d2985d2c15966285 (patch) | |
tree | cc659c4c1c6ee3c7fdc56bedfd53c68989d0bb9e /net-dns/getdns/getdns-1.5.2-r2.ebuild | |
parent | sci-geosciences/liblas: Cleanup vulnerable (diff) | |
download | gentoo-8bc58cfb49740269eb8041d1d2985d2c15966285.tar.gz gentoo-8bc58cfb49740269eb8041d1d2985d2c15966285.tar.bz2 gentoo-8bc58cfb49740269eb8041d1d2985d2c15966285.zip |
net-dns/getdns: fix configure
Closes: https://bugs.gentoo.org/686548
Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'net-dns/getdns/getdns-1.5.2-r2.ebuild')
-rw-r--r-- | net-dns/getdns/getdns-1.5.2-r2.ebuild | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/net-dns/getdns/getdns-1.5.2-r2.ebuild b/net-dns/getdns/getdns-1.5.2-r2.ebuild new file mode 100644 index 000000000000..2a5badd50634 --- /dev/null +++ b/net-dns/getdns/getdns-1.5.2-r2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fcaps systemd user + +DESCRIPTION="Modern asynchronous DNS API" +HOMEPAGE="https://getdnsapi.net/" +SRC_URI="https://getdnsapi.net/releases/${P//./-}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +getdns_query +getdns_server_mon gnutls +idn libev libevent libuv nettle static-libs stubby +threads +unbound" + +REQUIRED_USE="gnutls? ( nettle )" + +# https://bugs.gentoo.org/661760 +# https://github.com/getdnsapi/getdns/issues/407 +RESTRICT="test" + +DEPEND=" + dev-libs/libbsd:= + dev-libs/libyaml:= + idn? ( net-dns/libidn2:= ) + !gnutls? ( dev-libs/openssl:0= ) + gnutls? ( net-libs/gnutls:0=[dane] ) + libev? ( dev-libs/libev:= ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + nettle? ( dev-libs/nettle:0= ) + unbound? ( >=net-dns/unbound-1.4.16:= ) +" +RDEPEND=" + ${DEPEND} + stubby? ( sys-libs/libcap:= ) +" +BDEPEND=" + doc? ( app-doc/doxygen ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" ) + +src_configure() { + econf \ + --runstatedir=/var/run \ + $(use_enable static-libs static) \ + $(use_with getdns_query) \ + $(use_with getdns_server_mon) \ + $(usex gnutls '--with-gnutls' '' '' '') \ + $(use_with idn libidn2) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with libuv) \ + $(use_with nettle) \ + $(use_with stubby) \ + $(use_with threads libpthread) \ + $(use_with unbound libunbound) \ + --without-libidn \ + --with-piddir=/var/run/stubby +} + +src_install() { + default + if use stubby; then + newinitd "${FILESDIR}"/stubby.initd-r1 stubby + newconfd "${FILESDIR}"/stubby.confd-r1 stubby + insinto /etc/logrotate.d + newins "${FILESDIR}"/stubby.logrotate stubby + systemd_dounit "${S}"/stubby/systemd/stubby.service + systemd_dotmpfilesd "${S}"/stubby/systemd/stubby.conf + fi +} + +pkg_postinst() { + if use stubby; then + enewgroup stubby + enewuser stubby -1 -1 -1 stubby + fcaps cap_net_bind_service=ei /usr/bin/stubby + fi + + if has_version '<dev-libs/libressl-2.7.0'; then + ewarn "BEWARE: dev-libs/libressl prior to 2.7 does NOT check TLS certificates." + if use stubby; then + ewarn "You will NOT be able to use strict profile in Stubby." + fi + fi +} |