1 |
commit: 018330a99c4014c37161cb05b5e56cf1303e681b |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 28 19:34:36 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 28 20:59:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=018330a9 |
7 |
|
8 |
net-dns/dnscrypt-proxy: bump to 2.0.29 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-dns/dnscrypt-proxy/Manifest | 1 + |
14 |
.../dnscrypt-proxy/dnscrypt-proxy-2.0.29.ebuild | 101 +++++++++++++++++++++ |
15 |
2 files changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest |
18 |
index 5a32cd31481..af2a2a0c366 100644 |
19 |
--- a/net-dns/dnscrypt-proxy/Manifest |
20 |
+++ b/net-dns/dnscrypt-proxy/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST dnscrypt-proxy-2.0.19.tar.gz 3339713 BLAKE2B e65b5ed8243aa6cf471700c6edba6e |
22 |
DIST dnscrypt-proxy-2.0.25.tar.gz 2596674 BLAKE2B 10947c9e496c47a565e62fb4ca6ad95679da0d237885fe09da367b501bf0dd228cb3d4af41b3527dca64665364527ec2db06afab2c209792409078debd7d3fc8 SHA512 74a47b013e15cbdcf8691bf3618cce40149f9832f6fc4c2cbfb6af2a72b4ecb52b068a150999771a77fcf4fdb49c64dabd127c5101ae29fb86723bc30c946133 |
23 |
DIST dnscrypt-proxy-2.0.27.tar.gz 2478887 BLAKE2B e9cabd6bdb330c3174cb904951f9e1a0a5482b642d458dd9fc7cba8d05333e7d91c37d43fbd360d8fbcda1c5febd2e5d577e0e612d9c2211047ba2a047b929ef SHA512 68cecec0228b3f03d5c50576c7dec32c7474a22bd1740d43b29514b5a00f27376ed5236302fa68c493f0c188134855b277fbbbb922222937fa726783af3f7246 |
24 |
DIST dnscrypt-proxy-2.0.28.tar.gz 2620245 BLAKE2B fe31dd6d8054c4ae3d5892aaef0c8362405e06dba6de32121d9dea5d64d396ec39b1cfa884d5587c21367bb1dc3c1a4b4f994c286d0b8cc2a8bdbd9d247d239e SHA512 45496a02bd19c94def17b621d0843cc93de4467e51ded4c20af91d9b5aa127529d85b8ff2473a88293c726611291a055d466a50258b7587da0e7d4ba7f0f366e |
25 |
+DIST dnscrypt-proxy-2.0.29.tar.gz 2621844 BLAKE2B 3ebd02b3c9df9dcb41d27d38a9d9f64c01d98f7b1afee7a7c3b1dd3ef26b2104aae650e34ff1b5651007461ee75d28bcfbfa3c7e82c32532f36553740e3dcb50 SHA512 f02abe56e017153e7fc8b4a26b34c90f68554a1b32a16558c05e8113327896dbf7f81aa69c76fa823a4a0a697b4bb2089bdeb1237ad4ef3587121c2d4cdfe78c |
26 |
|
27 |
diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.29.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.29.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c2e5ddb01ed |
30 |
--- /dev/null |
31 |
+++ b/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.29.ebuild |
32 |
@@ -0,0 +1,101 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+EGO_PN="github.com/jedisct1/${PN}" |
39 |
+ |
40 |
+inherit fcaps golang-build systemd |
41 |
+ |
42 |
+if [[ ${PV} == 9999 ]]; then |
43 |
+ inherit git-r3 |
44 |
+ EGIT_REPO_URI="https://${EGO_PN}.git" |
45 |
+else |
46 |
+ SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="A flexible DNS proxy, with support for encrypted DNS protocols" |
51 |
+HOMEPAGE="https://github.com/jedisct1/dnscrypt-proxy" |
52 |
+ |
53 |
+LICENSE="Apache-2.0 BSD ISC MIT MPL-2.0" |
54 |
+SLOT="0" |
55 |
+IUSE="pie" |
56 |
+ |
57 |
+DEPEND=">=dev-lang/go-1.12" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ acct-group/dnscrypt-proxy |
61 |
+ acct-user/dnscrypt-proxy |
62 |
+" |
63 |
+ |
64 |
+FILECAPS=( cap_net_bind_service+ep usr/bin/dnscrypt-proxy ) |
65 |
+PATCHES=( "${FILESDIR}"/config-full-paths-r10.patch ) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ # Create directory structure suitable for building |
70 |
+ mkdir -p "src/${EGO_PN%/*}" || die |
71 |
+ # fixes $GOPATH/go.mod exists but should not |
72 |
+ rm go.mod || die |
73 |
+ mv "${PN}" "src/${EGO_PN}" || die |
74 |
+ mv "vendor" "src/${EGO_PN}" || die |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ EGO_BUILD_FLAGS="-buildmode=$(usex pie pie default)" |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ dobin dnscrypt-proxy |
83 |
+ |
84 |
+ insinto /etc/dnscrypt-proxy |
85 |
+ newins "src/${EGO_PN}"/example-dnscrypt-proxy.toml dnscrypt-proxy.toml |
86 |
+ doins "src/${EGO_PN}"/example-{blacklist.txt,whitelist.txt} |
87 |
+ doins "src/${EGO_PN}"/example-{cloaking-rules.txt,forwarding-rules.txt} |
88 |
+ |
89 |
+ insinto /usr/share/dnscrypt-proxy |
90 |
+ doins -r "utils/generate-domains-blacklists/." |
91 |
+ |
92 |
+ newinitd "${FILESDIR}"/dnscrypt-proxy.initd dnscrypt-proxy |
93 |
+ newconfd "${FILESDIR}"/dnscrypt-proxy.confd dnscrypt-proxy |
94 |
+ systemd_newunit "${FILESDIR}"/dnscrypt-proxy.service dnscrypt-proxy.service |
95 |
+ systemd_newunit "${FILESDIR}"/dnscrypt-proxy.socket dnscrypt-proxy.socket |
96 |
+ |
97 |
+ insinto /etc/logrotate.d |
98 |
+ newins "${FILESDIR}"/dnscrypt-proxy.logrotate dnscrypt-proxy |
99 |
+ |
100 |
+ einstalldocs |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ fcaps_pkg_postinst |
105 |
+ |
106 |
+ if ! use filecaps; then |
107 |
+ ewarn "'filecaps' USE flag is disabled" |
108 |
+ ewarn "${PN} will fail to listen on port 53" |
109 |
+ ewarn "please do one the following:" |
110 |
+ ewarn "1) re-enable 'filecaps'" |
111 |
+ ewarn "2) change port to > 1024" |
112 |
+ ewarn "3) configure to run ${PN} as root (not recommended)" |
113 |
+ ewarn |
114 |
+ fi |
115 |
+ |
116 |
+ if systemd_is_booted || has_version sys-apps/systemd; then |
117 |
+ elog "Using systemd socket activation may cause issues with speed" |
118 |
+ elog "latency and reliability of ${PN} and is discouraged by upstream" |
119 |
+ elog "Existing installations advised to disable 'dnscrypt-proxy.socket'" |
120 |
+ elog "It is disabled by default for new installations" |
121 |
+ elog "check "$(systemd_get_systemunitdir)/${PN}.service" for details" |
122 |
+ elog |
123 |
+ |
124 |
+ fi |
125 |
+ |
126 |
+ elog "After starting the service you will need to update your" |
127 |
+ elog "/etc/resolv.conf and replace your current set of resolvers" |
128 |
+ elog "with:" |
129 |
+ elog |
130 |
+ elog "nameserver 127.0.0.1" |
131 |
+ elog |
132 |
+ elog "Also see https://github.com/jedisct1/${PN}/wiki" |
133 |
+} |