1 |
commit: b32d4b796577489505904cf2ca4392ad4e00790c |
2 |
Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net> |
3 |
AuthorDate: Fri May 11 02:40:28 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 11 09:25:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b32d4b79 |
7 |
|
8 |
net-dns/dnscrypt-proxy: drop 2.0.11 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/8341 |
11 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
12 |
|
13 |
net-dns/dnscrypt-proxy/Manifest | 1 - |
14 |
.../dnscrypt-proxy/dnscrypt-proxy-2.0.11.ebuild | 98 ---------------------- |
15 |
.../dnscrypt-proxy/files/dnscrypt-proxy.confd-r2 | 3 - |
16 |
.../dnscrypt-proxy/files/dnscrypt-proxy.initd-r2 | 19 ----- |
17 |
.../dnscrypt-proxy/files/dnscrypt-proxy.service-r2 | 23 ----- |
18 |
5 files changed, 144 deletions(-) |
19 |
|
20 |
diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest |
21 |
index fca34637fe1..7cde5e81d8c 100644 |
22 |
--- a/net-dns/dnscrypt-proxy/Manifest |
23 |
+++ b/net-dns/dnscrypt-proxy/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
DIST dnscrypt-proxy-1.9.5.tar.bz2 1290573 BLAKE2B 8f16fdb58012e00a8b58d36364377c3bc25158b9484a8df2bd6bc98d1c9cbf5ac758997e31f95ecaeb9da2f6b7272316c5a4a1c069a39549fbc1c1b136857da0 SHA512 84c0f7587521b3a198292cf20dd71cb592ccf8a9e003abbc62c5ca112f6c5ed27c49b1642cf91f403d52b4147e25f24af540b65cecfcf93814338329097df836 |
26 |
-DIST dnscrypt-proxy-2.0.11.tar.gz 2774458 BLAKE2B 36c9109a682a0d70c32910a44a64f49ebf0a958660154c10bf3687da3fdaa405e8add43717267f30a79d96941160cda5994704060a78e2ee6bbeddc55ff87766 SHA512 5e306c3bff65d0375b650666e2191c6f54e72bb0d2d2f6f8f7b941ffc063eb7eb244a52eb69b0b008dc566e9a6ce8a8f75929edb6762fad4751d966aa2da98a0 |
27 |
DIST dnscrypt-proxy-2.0.12.tar.gz 2775112 BLAKE2B c3a1085c7c4d005d323d2d3e803b7bce447b86a8f2e9bff0eb7e5e145d275dd19fe6913c805be9469ba0a492f7a479a146af56a769432d8120790375628bb936 SHA512 757a7a88e8f6ed61462736184f0ca8426c40f800f54727881412de44c527e4334a6b42aa6906c19ecf9287d462a1ec7bd55cb471781bd94c2a0faa8ad7055137 |
28 |
|
29 |
diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.11.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.11.ebuild |
30 |
deleted file mode 100644 |
31 |
index 948f785d3d5..00000000000 |
32 |
--- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.11.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,98 +0,0 @@ |
35 |
-# Copyright 1999-2018 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
- |
40 |
-EGO_PN="github.com/jedisct1/${PN}" |
41 |
- |
42 |
-inherit fcaps golang-build systemd user |
43 |
- |
44 |
-DESCRIPTION="A flexible DNS proxy, with support for encrypted DNS protocols" |
45 |
-HOMEPAGE="https://github.com/jedisct1/dnscrypt-proxy" |
46 |
-SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
- |
48 |
-LICENSE="ISC" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~amd64 ~arm ~x86" |
51 |
-IUSE="systemd" |
52 |
- |
53 |
-FILECAPS=( cap_net_bind_service+ep usr/bin/dnscrypt-proxy ) |
54 |
-PATCHES=( "${FILESDIR}"/config-full-paths-r10.patch ) |
55 |
- |
56 |
-pkg_setup() { |
57 |
- enewgroup dnscrypt |
58 |
- enewuser dnscrypt -1 -1 /var/empty dnscrypt |
59 |
-} |
60 |
- |
61 |
-src_prepare() { |
62 |
- default |
63 |
- # Create directory structure suitable for building |
64 |
- mkdir -p "src/${EGO_PN%/*}" || die |
65 |
- mv "${PN}" "src/${EGO_PN}" || die |
66 |
- mv "vendor" "src/" || die |
67 |
- |
68 |
- if use systemd; then |
69 |
- sed -i 's|\['\''127\.0\.0\.1:53'\'', '\''\[::1\]:53'\''\]|\[\]|' \ |
70 |
- "src/${EGO_PN}"/example-dnscrypt-proxy.toml || die |
71 |
- fi |
72 |
-} |
73 |
- |
74 |
-src_install() { |
75 |
- dobin dnscrypt-proxy |
76 |
- |
77 |
- insinto /etc/dnscrypt-proxy |
78 |
- newins "src/${EGO_PN}"/example-dnscrypt-proxy.toml dnscrypt-proxy.toml |
79 |
- doins "src/${EGO_PN}"/example-{blacklist.txt,whitelist.txt} |
80 |
- doins "src/${EGO_PN}"/example-{cloaking-rules.txt,forwarding-rules.txt} |
81 |
- |
82 |
- insinto "/usr/share/dnscrypt-proxy" |
83 |
- doins -r "utils/generate-domains-blacklists/." |
84 |
- |
85 |
- newinitd "${FILESDIR}"/dnscrypt-proxy.initd-r2 dnscrypt-proxy |
86 |
- newconfd "${FILESDIR}"/dnscrypt-proxy.confd-r2 dnscrypt-proxy |
87 |
- systemd_dounit systemd/dnscrypt-proxy.service |
88 |
- systemd_dounit systemd/dnscrypt-proxy.socket |
89 |
- |
90 |
- einstalldocs |
91 |
-} |
92 |
- |
93 |
-pkg_postinst() { |
94 |
- fcaps_pkg_postinst |
95 |
- |
96 |
- if ! use filecaps; then |
97 |
- ewarn "'filecaps' USE flag is disabled" |
98 |
- ewarn "${PN} will fail to listen on port 53 if started via OpenRC" |
99 |
- ewarn "please either change port to > 1024, configure to run ${PN} as root" |
100 |
- ewarn "or re-enable 'filecaps'" |
101 |
- ewarn |
102 |
- fi |
103 |
- |
104 |
- local v |
105 |
- for v in ${REPLACING_VERSIONS}; do |
106 |
- if [[ ${v} == 1.* ]] ; then |
107 |
- elog "Version 2.x.x is a complete rewrite of ${PN}" |
108 |
- elog "please clean up old config/log files" |
109 |
- elog |
110 |
- fi |
111 |
- done |
112 |
- |
113 |
- if systemd_is_booted || has_version sys-apps/systemd; then |
114 |
- elog "Starting with version 2.0.9 ${PN} unit changed:" |
115 |
- elog "It now runs as an unprivileged user with dynamic UID/GID" |
116 |
- elog "and privately stores log and cache files" |
117 |
- elog |
118 |
- elog "See man:systemd.exec, man:nss-systemd" |
119 |
- elog |
120 |
- elog "Edit ${PN}.socket if you need to change port and address" |
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 |
-} |
133 |
|
134 |
diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-r2 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-r2 |
135 |
deleted file mode 100644 |
136 |
index 9934e828b82..00000000000 |
137 |
--- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-r2 |
138 |
+++ /dev/null |
139 |
@@ -1,3 +0,0 @@ |
140 |
-#DNSCRYPT_OPTS="--config /etc/dnscrypt-proxy/dnscrypt-proxy.toml" |
141 |
-#DNSCRYPT_USER="dnscrypt" |
142 |
-#DNSCRYPT_GROUP="dnscrypt" |
143 |
|
144 |
diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-r2 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-r2 |
145 |
deleted file mode 100644 |
146 |
index dcccd83dab3..00000000000 |
147 |
--- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-r2 |
148 |
+++ /dev/null |
149 |
@@ -1,19 +0,0 @@ |
150 |
-#!/sbin/openrc-run |
151 |
-# Copyright 1999-2018 Gentoo Foundation |
152 |
-# Distributed under the terms of the GNU General Public License v2 |
153 |
- |
154 |
-command="/usr/bin/dnscrypt-proxy" |
155 |
-command_args="${DNSCRYPT_OPTS:---config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}" |
156 |
-command_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}" |
157 |
-pidfile="/run/${SVCNAME}.pid" |
158 |
-start_stop_daemon_args="--background --make-pidfile" |
159 |
- |
160 |
-depend() { |
161 |
- use net logger |
162 |
- provide dns |
163 |
-} |
164 |
- |
165 |
-start_pre() { |
166 |
- checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${SVCNAME}" |
167 |
- checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${SVCNAME}" |
168 |
-} |
169 |
|
170 |
diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service-r2 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service-r2 |
171 |
deleted file mode 100644 |
172 |
index 745b094aaa1..00000000000 |
173 |
--- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service-r2 |
174 |
+++ /dev/null |
175 |
@@ -1,23 +0,0 @@ |
176 |
-[Unit] |
177 |
-Description=DNSCrypt client proxy |
178 |
-Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki |
179 |
-Requires=dnscrypt-proxy.socket |
180 |
-After=network.target |
181 |
-Before=nss-lookup.target |
182 |
-Wants=nss-lookup.target |
183 |
- |
184 |
-[Install] |
185 |
-Also=dnscrypt-proxy.socket |
186 |
-WantedBy=multi-user.target |
187 |
- |
188 |
-[Service] |
189 |
-User=dnscrypt |
190 |
-Group=dnscrypt |
191 |
-Type=simple |
192 |
-NonBlocking=true |
193 |
-ExecStart=/usr/bin/dnscrypt-proxy --config /etc/dnscrypt-proxy/dnscrypt-proxy.toml |
194 |
-ProtectHome=true |
195 |
-CacheDirectory=dnscrypt-proxy |
196 |
-LogsDirectory=dnscrypt-proxy |
197 |
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE |
198 |
-AmbientCapabilities=CAP_NET_BIND_SERVICE |