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