From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 09814138334 for ; Mon, 23 Dec 2019 21:42:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DCB3E09E9; Mon, 23 Dec 2019 21:42:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 122F9E09E9 for ; Mon, 23 Dec 2019 21:42:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0F28134DB07 for ; Mon, 23 Dec 2019 21:42:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4638B7B417 for ; Mon, 23 Dec 2019 21:42:20 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1577137334.5b644cb1a2c287eee592935fcc005ae5b1cf25fa.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/, net-dns/getdns/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/getdns/Manifest net-dns/getdns/files/stubby.initd-r2 net-dns/getdns/getdns-1.6.0_beta1.ebuild X-VCS-Directories: net-dns/getdns/files/ net-dns/getdns/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 5b644cb1a2c287eee592935fcc005ae5b1cf25fa X-VCS-Branch: master Date: Mon, 23 Dec 2019 21:42:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c86b4eea-df69-47e5-83b5-edf1b9aff936 X-Archives-Hash: c7d68bdf82dc4157df45a1786ff60a05 commit: 5b644cb1a2c287eee592935fcc005ae5b1cf25fa Author: Quentin Retornaz retornaz com> AuthorDate: Sun Dec 22 01:44:37 2019 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Dec 23 21:42:14 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b644cb1 net-dns/getdns: bump version to 1.6.0_beta1 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Quentin Retornaz retornaz.com> Signed-off-by: Anthony G. Basile gentoo.org> net-dns/getdns/Manifest | 1 + net-dns/getdns/files/stubby.initd-r2 | 28 ++++++++++ net-dns/getdns/getdns-1.6.0_beta1.ebuild | 87 ++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest index 6c5178376c6..144eeeba9b3 100644 --- a/net-dns/getdns/Manifest +++ b/net-dns/getdns/Manifest @@ -1,2 +1,3 @@ DIST getdns-1.5.1.tar.gz 1075728 BLAKE2B fd6ac52a302ecf22cc913d8de6f93f9ab125429d0eb9d6e233f23b84bb2e242573cd93997f88b4d1a2493273691dab897efc8509a0e3f03f6fddcb9d3b53ecb6 SHA512 4013cb4f00cc87164380c22dc6f82a4fd54702769c28eeb7cfcb13fb35ef41e32916c36a1aa2f6ef05f008da97bea5c7ed849aedc6ae7050c285f9589a9817b0 DIST getdns-1.5.2.tar.gz 1091088 BLAKE2B c5f32af794f3c710c0f84027d38ca393c72a438905c5e2fe49f2d20477e3f90f855d280f43d0ef7d204fa67d95ebdb960ce86d934e26c1ef3030f263f98ec7f4 SHA512 42e56264578f59e94d0a7315cd9cb1720f24c7a9abbaa09e1b42c274d15d1082ad4a036fa3c10573cf4d0ee6d868b6fcedf3a7cd64b53bdabd9d45542e479ca4 +DIST getdns-1.6.0-beta.1.tar.gz 669637 BLAKE2B cab019c38a0e7268a3ffef7ffd6b52ab3565bbf0b4ea4e897d60cfc0885ee7d32d8bd22e58f24b554e03d4297945d4eaa915aff254f43d4e82455f1070923d46 SHA512 b36d05b09b5ab7c384fdb93820bc6ad253e9a44da9c7ea38c735882e56e03eaba1793ea22068d03867ed2ade71682686a359b1b0a821eed4a5f3bebeeaeeb7e2 diff --git a/net-dns/getdns/files/stubby.initd-r2 b/net-dns/getdns/files/stubby.initd-r2 new file mode 100755 index 00000000000..69e76c0acfd --- /dev/null +++ b/net-dns/getdns/files/stubby.initd-r2 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +stubby_opts="-C ${STUBBY_CONFIG_FILE:-/etc/stubby/stubby.yml} -v ${STUBBY_LOGLEVEL:-5}" +command="capsh" +command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${stubby_opts} >>/var/log/stubby.log 2>&1'" +pidfile="/run/stubby.pid" +name="DNS Privacy Daemon" + +depend() +{ + provide dns + need localmount net + after bootmisc + use logger +} + +start_pre() +{ + checkpath -f -m 0644 -o stubby:stubby /run/stubby.pid + checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log +} + +stop_post() +{ + [ -f /run/stubby.pid ] && rm /run/stubby.pid +} diff --git a/net-dns/getdns/getdns-1.6.0_beta1.ebuild b/net-dns/getdns/getdns-1.6.0_beta1.ebuild new file mode 100644 index 00000000000..7b782226afc --- /dev/null +++ b/net-dns/getdns/getdns-1.6.0_beta1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +_SRCURI_P="${P/%_beta1/-beta.1}" + +inherit cmake-utils fcaps systemd + +DESCRIPTION="Modern asynchronous DNS API" +HOMEPAGE="https://getdnsapi.net/" +SRC_URI="https://getdnsapi.net/releases/${_SRCURI_P//./-}/${_SRCURI_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +getdns-query +getdns-server-mon gnutls +idn libev libevent libuv static-libs stubby +unbound" + +S="${WORKDIR}/${_SRCURI_P}" + +# https://bugs.gentoo.org/661760 +# https://github.com/getdnsapi/getdns/issues/407 +RESTRICT="test" + +DEPEND=" + dev-libs/libbsd:= + dev-libs/libyaml:= + dev-libs/openssl:0= + idn? ( net-dns/libidn2:= ) + gnutls? ( + net-libs/gnutls:0=[dane,openssl] + dev-libs/nettle:0= + ) + libev? ( dev-libs/libev:= ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + unbound? ( >=net-dns/unbound-1.5.9:= ) +" +RDEPEND=" + ${DEPEND} + stubby? ( + acct-group/stubby + acct-user/stubby + sys-libs/libcap:= + ) +" +BDEPEND=" + doc? ( app-doc/doxygen ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_RUNSTATEDIR=/var/run + -DENABLE_STATIC=$(usex static-libs) + -DBUILD_GETDNS_QUERY=$(usex getdns-query) + -DBUILD_GETDNS_SERVER_MON=$(usex getdns-server-mon) + -DUSE_GNUTLS=$(usex gnutls) + -DUSE_LIBIDN2=$(usex idn) + -DUSE_LIBEV=$(usex libev) + -DUSE_LIBEVENT2=$(usex libevent) + -DUSE_LIBUV=$(use_with libuv) + -DBUILD_STUBBY=$(usex stubby) + -DENABLE_UNBOUND_EVENT_API=$(usex unbound) + -DBUILD_DOXYGEN=$(usex doc) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use stubby; then + newinitd "${FILESDIR}"/stubby.initd-r2 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 + fcaps cap_net_bind_service=ei /usr/bin/stubby + fi +}