Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/getdns/, net-dns/getdns/files/
Date: Mon, 23 Dec 2019 21:42:24
Message-Id: 1577137334.5b644cb1a2c287eee592935fcc005ae5b1cf25fa.blueness@gentoo
1 commit: 5b644cb1a2c287eee592935fcc005ae5b1cf25fa
2 Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
3 AuthorDate: Sun Dec 22 01:44:37 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 23 21:42:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b644cb1
7
8 net-dns/getdns: bump version to 1.6.0_beta1
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
12 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
13
14 net-dns/getdns/Manifest | 1 +
15 net-dns/getdns/files/stubby.initd-r2 | 28 ++++++++++
16 net-dns/getdns/getdns-1.6.0_beta1.ebuild | 87 ++++++++++++++++++++++++++++++++
17 3 files changed, 116 insertions(+)
18
19 diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest
20 index 6c5178376c6..144eeeba9b3 100644
21 --- a/net-dns/getdns/Manifest
22 +++ b/net-dns/getdns/Manifest
23 @@ -1,2 +1,3 @@
24 DIST getdns-1.5.1.tar.gz 1075728 BLAKE2B fd6ac52a302ecf22cc913d8de6f93f9ab125429d0eb9d6e233f23b84bb2e242573cd93997f88b4d1a2493273691dab897efc8509a0e3f03f6fddcb9d3b53ecb6 SHA512 4013cb4f00cc87164380c22dc6f82a4fd54702769c28eeb7cfcb13fb35ef41e32916c36a1aa2f6ef05f008da97bea5c7ed849aedc6ae7050c285f9589a9817b0
25 DIST getdns-1.5.2.tar.gz 1091088 BLAKE2B c5f32af794f3c710c0f84027d38ca393c72a438905c5e2fe49f2d20477e3f90f855d280f43d0ef7d204fa67d95ebdb960ce86d934e26c1ef3030f263f98ec7f4 SHA512 42e56264578f59e94d0a7315cd9cb1720f24c7a9abbaa09e1b42c274d15d1082ad4a036fa3c10573cf4d0ee6d868b6fcedf3a7cd64b53bdabd9d45542e479ca4
26 +DIST getdns-1.6.0-beta.1.tar.gz 669637 BLAKE2B cab019c38a0e7268a3ffef7ffd6b52ab3565bbf0b4ea4e897d60cfc0885ee7d32d8bd22e58f24b554e03d4297945d4eaa915aff254f43d4e82455f1070923d46 SHA512 b36d05b09b5ab7c384fdb93820bc6ad253e9a44da9c7ea38c735882e56e03eaba1793ea22068d03867ed2ade71682686a359b1b0a821eed4a5f3bebeeaeeb7e2
27
28 diff --git a/net-dns/getdns/files/stubby.initd-r2 b/net-dns/getdns/files/stubby.initd-r2
29 new file mode 100755
30 index 00000000000..69e76c0acfd
31 --- /dev/null
32 +++ b/net-dns/getdns/files/stubby.initd-r2
33 @@ -0,0 +1,28 @@
34 +#!/sbin/openrc-run
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License, v2 or later
37 +
38 +stubby_opts="-C ${STUBBY_CONFIG_FILE:-/etc/stubby/stubby.yml} -v ${STUBBY_LOGLEVEL:-5}"
39 +command="capsh"
40 +command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${stubby_opts} >>/var/log/stubby.log 2>&1'"
41 +pidfile="/run/stubby.pid"
42 +name="DNS Privacy Daemon"
43 +
44 +depend()
45 +{
46 + provide dns
47 + need localmount net
48 + after bootmisc
49 + use logger
50 +}
51 +
52 +start_pre()
53 +{
54 + checkpath -f -m 0644 -o stubby:stubby /run/stubby.pid
55 + checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log
56 +}
57 +
58 +stop_post()
59 +{
60 + [ -f /run/stubby.pid ] && rm /run/stubby.pid
61 +}
62
63 diff --git a/net-dns/getdns/getdns-1.6.0_beta1.ebuild b/net-dns/getdns/getdns-1.6.0_beta1.ebuild
64 new file mode 100644
65 index 00000000000..7b782226afc
66 --- /dev/null
67 +++ b/net-dns/getdns/getdns-1.6.0_beta1.ebuild
68 @@ -0,0 +1,87 @@
69 +# Copyright 1999-2019 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +_SRCURI_P="${P/%_beta1/-beta.1}"
75 +
76 +inherit cmake-utils fcaps systemd
77 +
78 +DESCRIPTION="Modern asynchronous DNS API"
79 +HOMEPAGE="https://getdnsapi.net/"
80 +SRC_URI="https://getdnsapi.net/releases/${_SRCURI_P//./-}/${_SRCURI_P}.tar.gz"
81 +
82 +LICENSE="BSD"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~x86"
85 +IUSE="doc examples +getdns-query +getdns-server-mon gnutls +idn libev libevent libuv static-libs stubby +unbound"
86 +
87 +S="${WORKDIR}/${_SRCURI_P}"
88 +
89 +# https://bugs.gentoo.org/661760
90 +# https://github.com/getdnsapi/getdns/issues/407
91 +RESTRICT="test"
92 +
93 +DEPEND="
94 + dev-libs/libbsd:=
95 + dev-libs/libyaml:=
96 + dev-libs/openssl:0=
97 + idn? ( net-dns/libidn2:= )
98 + gnutls? (
99 + net-libs/gnutls:0=[dane,openssl]
100 + dev-libs/nettle:0=
101 + )
102 + libev? ( dev-libs/libev:= )
103 + libevent? ( dev-libs/libevent:= )
104 + libuv? ( dev-libs/libuv:= )
105 + unbound? ( >=net-dns/unbound-1.5.9:= )
106 +"
107 +RDEPEND="
108 + ${DEPEND}
109 + stubby? (
110 + acct-group/stubby
111 + acct-user/stubby
112 + sys-libs/libcap:=
113 + )
114 +"
115 +BDEPEND="
116 + doc? ( app-doc/doxygen )
117 +"
118 +
119 +PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" )
120 +
121 +src_configure() {
122 + local mycmakeargs=(
123 + -DCMAKE_INSTALL_RUNSTATEDIR=/var/run
124 + -DENABLE_STATIC=$(usex static-libs)
125 + -DBUILD_GETDNS_QUERY=$(usex getdns-query)
126 + -DBUILD_GETDNS_SERVER_MON=$(usex getdns-server-mon)
127 + -DUSE_GNUTLS=$(usex gnutls)
128 + -DUSE_LIBIDN2=$(usex idn)
129 + -DUSE_LIBEV=$(usex libev)
130 + -DUSE_LIBEVENT2=$(usex libevent)
131 + -DUSE_LIBUV=$(use_with libuv)
132 + -DBUILD_STUBBY=$(usex stubby)
133 + -DENABLE_UNBOUND_EVENT_API=$(usex unbound)
134 + -DBUILD_DOXYGEN=$(usex doc)
135 + )
136 + cmake-utils_src_configure
137 +}
138 +
139 +src_install() {
140 + cmake-utils_src_install
141 + if use stubby; then
142 + newinitd "${FILESDIR}"/stubby.initd-r2 stubby
143 + newconfd "${FILESDIR}"/stubby.confd-r1 stubby
144 + insinto /etc/logrotate.d
145 + newins "${FILESDIR}"/stubby.logrotate stubby
146 + systemd_dounit "${S}"/stubby/systemd/stubby.service
147 + systemd_dotmpfilesd "${S}"/stubby/systemd/stubby.conf
148 + fi
149 +}
150 +
151 +pkg_postinst() {
152 + if use stubby; then
153 + fcaps cap_net_bind_service=ei /usr/bin/stubby
154 + fi
155 +}