commit: 008aaded199b20a872d1d9699b5afd35669133ba Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Fri May 17 16:52:40 2019 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Fri May 17 16:52:40 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=008aaded
net-dns/getdns: bump to version 1.5.2 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 net-dns/getdns/Manifest | 1 + net-dns/getdns/getdns-1.5.2.ebuild | 84 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest index aedd683fca9..6c5178376c6 100644 --- a/net-dns/getdns/Manifest +++ b/net-dns/getdns/Manifest @@ -1 +1,2 @@ DIST getdns-1.5.1.tar.gz 1075728 BLAKE2B fd6ac52a302ecf22cc913d8de6f93f9ab125429d0eb9d6e233f23b84bb2e242573cd93997f88b4d1a2493273691dab897efc8509a0e3f03f6fddcb9d3b53ecb6 SHA512 4013cb4f00cc87164380c22dc6f82a4fd54702769c28eeb7cfcb13fb35ef41e32916c36a1aa2f6ef05f008da97bea5c7ed849aedc6ae7050c285f9589a9817b0 +DIST getdns-1.5.2.tar.gz 1091088 BLAKE2B c5f32af794f3c710c0f84027d38ca393c72a438905c5e2fe49f2d20477e3f90f855d280f43d0ef7d204fa67d95ebdb960ce86d934e26c1ef3030f263f98ec7f4 SHA512 42e56264578f59e94d0a7315cd9cb1720f24c7a9abbaa09e1b42c274d15d1082ad4a036fa3c10573cf4d0ee6d868b6fcedf3a7cd64b53bdabd9d45542e479ca4 diff --git a/net-dns/getdns/getdns-1.5.2.ebuild b/net-dns/getdns/getdns-1.5.2.ebuild new file mode 100644 index 00000000000..05ba4798a0f --- /dev/null +++ b/net-dns/getdns/getdns-1.5.2.ebuild @@ -0,0 +1,84 @@ +# 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 +idn libev libevent libressl libuv static-libs stubby +threads +unbound" + +# 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:= ) + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + libev? ( dev-libs/libev:= ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + 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) \ + $(use_with idn libidn2) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with libuv) \ + $(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 +}