1 |
commit: 962f152482302a1494fb850b721bddbfaa40832f |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 26 14:07:20 2022 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 14:08:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=962f1524 |
7 |
|
8 |
net-dns/getdns: version bump 1.72. |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-dns/getdns/Manifest | 1 + |
14 |
net-dns/getdns/getdns-1.7.2.ebuild | 94 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest |
18 |
index 43f673dd12e0..b8a9569bbd04 100644 |
19 |
--- a/net-dns/getdns/Manifest |
20 |
+++ b/net-dns/getdns/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST getdns-1.7.0.tar.gz 690885 BLAKE2B 25e81c01c5da0a5494dc25077257f8f98210b442b7ca65c895aa2a40af180e840aa53205ae84ed242cbd6c55f8830caf255db9d7f607dde39f118ab7494a7072 SHA512 d09b8bdd0b4a3df2d25b9689166226da83a5a7eb2c7436487dc637539ac6077624a4d66cf684c4e6c4911561872c6bd191af3afd90d275b1662e4c6c47773ef6 |
23 |
+DIST getdns-1.7.2.tar.gz 702969 BLAKE2B 668a754200b816790f39a772d89c28e14bc5dbd041e07d9e53605ad44d63d6637078b66881c35dda62ed61622142797cc8f0041522e076cf551651fca688053a SHA512 6c4a75a4696c46ec8bd9e9659a93fd81f3490b43da28a4c95f99a766027c7588fc493a8ac51563afb8f975c0e5b77d5ea67014d80e78ee2bb17fba1d1073d19f |
24 |
|
25 |
diff --git a/net-dns/getdns/getdns-1.7.2.ebuild b/net-dns/getdns/getdns-1.7.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..83ef0b026a32 |
28 |
--- /dev/null |
29 |
+++ b/net-dns/getdns/getdns-1.7.2.ebuild |
30 |
@@ -0,0 +1,94 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+_SRCURI_P="${P/%_beta1/-beta.1}" |
37 |
+ |
38 |
+inherit cmake fcaps systemd tmpfiles |
39 |
+ |
40 |
+DESCRIPTION="Modern asynchronous DNS API" |
41 |
+HOMEPAGE="https://getdnsapi.net/" |
42 |
+SRC_URI="https://getdnsapi.net/releases/${_SRCURI_P//./-}/${_SRCURI_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="doc examples +getdns-query +getdns-server-mon gnutls +idn libev libevent libuv static-libs stubby test +unbound" |
48 |
+ |
49 |
+S="${WORKDIR}/${_SRCURI_P}" |
50 |
+ |
51 |
+# https://bugs.gentoo.org/661760 |
52 |
+# https://github.com/getdnsapi/getdns/issues/407 |
53 |
+# (As of 1.7.0, seems to need network) |
54 |
+RESTRICT="test" |
55 |
+#RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ dev-libs/libbsd |
59 |
+ dev-libs/libyaml |
60 |
+ dev-libs/openssl:= |
61 |
+ idn? ( net-dns/libidn2:= ) |
62 |
+ gnutls? ( |
63 |
+ net-libs/gnutls:0=[dane,openssl] |
64 |
+ dev-libs/nettle:0= |
65 |
+ ) |
66 |
+ libev? ( dev-libs/libev:= ) |
67 |
+ libevent? ( dev-libs/libevent:= ) |
68 |
+ libuv? ( dev-libs/libuv:= ) |
69 |
+ test? ( dev-libs/check ) |
70 |
+ >=net-dns/unbound-1.5.9:= |
71 |
+" |
72 |
+RDEPEND=" |
73 |
+ ${DEPEND} |
74 |
+ stubby? ( |
75 |
+ acct-group/stubby |
76 |
+ acct-user/stubby |
77 |
+ sys-libs/libcap |
78 |
+ ) |
79 |
+" |
80 |
+BDEPEND=" |
81 |
+ doc? ( app-doc/doxygen ) |
82 |
+" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" |
86 |
+) |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DCMAKE_INSTALL_RUNSTATEDIR=/var/run/stubby |
91 |
+ -DBUILD_DOXYGEN=$(usex doc) |
92 |
+ -DBUILD_GETDNS_QUERY=$(usex getdns-query) |
93 |
+ -DBUILD_GETDNS_SERVER_MON=$(usex getdns-server-mon) |
94 |
+ -DBUILD_STUBBY=$(usex stubby) |
95 |
+ -DENABLE_STATIC=$(usex static-libs) |
96 |
+ -DBUILD_TESTING:BOOL=$(usex test) |
97 |
+ -DENABLE_UNBOUND_EVENT_API=$(usex unbound) |
98 |
+ -DUSE_GNUTLS=$(usex gnutls) |
99 |
+ -DUSE_LIBEV=$(usex libev) |
100 |
+ -DUSE_LIBEVENT2=$(usex libevent) |
101 |
+ -DUSE_LIBIDN2=$(usex idn) |
102 |
+ -DUSE_LIBUV=$(usex libuv) |
103 |
+ ) |
104 |
+ cmake_src_configure |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ cmake_src_install |
109 |
+ if use stubby; then |
110 |
+ newinitd "${FILESDIR}"/stubby.initd-r2 stubby |
111 |
+ newconfd "${FILESDIR}"/stubby.confd-r1 stubby |
112 |
+ insinto /etc/logrotate.d |
113 |
+ newins "${FILESDIR}"/stubby.logrotate stubby |
114 |
+ systemd_dounit "${S}"/stubby/systemd/stubby.service |
115 |
+ dotmpfiles "${S}"/stubby/systemd/stubby.conf |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+pkg_postinst() { |
120 |
+ if use stubby; then |
121 |
+ fcaps cap_net_bind_service=ei usr/bin/stubby |
122 |
+ tmpfiles_process stubby.conf |
123 |
+ fi |
124 |
+} |