Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnscrypt-proxy/
Date: Fri, 07 Sep 2018 07:32:01
Message-Id: 1536305373.dae57c0dc5d8170230823617874a4d75b8908db5.gyakovlev@gentoo
1 commit: dae57c0dc5d8170230823617874a4d75b8908db5
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 7 07:05:13 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 7 07:29:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dae57c0d
7
8 net-dns/dnscrypt-proxy: drop 2.0.15
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 net-dns/dnscrypt-proxy/Manifest | 1 -
13 .../dnscrypt-proxy/dnscrypt-proxy-2.0.15.ebuild | 98 ----------------------
14 2 files changed, 99 deletions(-)
15
16 diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest
17 index 6fe73c2f309..17454adf09d 100644
18 --- a/net-dns/dnscrypt-proxy/Manifest
19 +++ b/net-dns/dnscrypt-proxy/Manifest
20 @@ -1,2 +1 @@
21 -DIST dnscrypt-proxy-2.0.15.tar.gz 2887764 BLAKE2B 7c4dd36f8305494566cb8548e478d9b89eed799dab124e574c0840c606f6c51cafb73818a07b18928a6457756a122d7bceabc108b1114b2b546d3db707d2ef3a SHA512 4517ab7b7eb1474f8c9e133a289caf6c02f472b51b910f1fbe1e5ffd6d389943626c8878e68f7f27a47b00301a427dfe9c563bc82b67cafab32f4ab3bc4c84b9
22 DIST dnscrypt-proxy-2.0.16.tar.gz 3770249 BLAKE2B e6dc40ec503cff11e4deec1a243875fff42ec7ecba8c7c3552b69322d405c762fa152e7e9417baf944e2a476715f00813a305c20db583970520d35acd378f1d4 SHA512 f138df20560dd440a2ed390c1468d630191ae7b0e50521b4dde3fa7ef4377c3ae6409e8c547858bace53216c84aeeea6794305546b9ff87832f704c160c6782f
23
24 diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.15.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.15.ebuild
25 deleted file mode 100644
26 index 48aca623318..00000000000
27 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.15.ebuild
28 +++ /dev/null
29 @@ -1,98 +0,0 @@
30 -# Copyright 1999-2018 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=6
34 -
35 -EGO_PN="github.com/jedisct1/${PN}"
36 -
37 -inherit fcaps golang-build systemd user
38 -
39 -DESCRIPTION="A flexible DNS proxy, with support for encrypted DNS protocols"
40 -HOMEPAGE="https://github.com/jedisct1/dnscrypt-proxy"
41 -SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 -
43 -LICENSE="ISC"
44 -SLOT="0"
45 -KEYWORDS="~amd64 ~arm ~x86"
46 -IUSE="test"
47 -
48 -FILECAPS=( cap_net_bind_service+ep usr/bin/dnscrypt-proxy )
49 -PATCHES=( "${FILESDIR}"/config-full-paths-r10.patch )
50 -
51 -pkg_setup() {
52 - enewgroup dnscrypt-proxy
53 - enewuser dnscrypt-proxy -1 -1 /var/empty dnscrypt-proxy
54 -}
55 -
56 -src_prepare() {
57 - default
58 - # Create directory structure suitable for building
59 - mkdir -p "src/${EGO_PN%/*}" || die
60 - mv "${PN}" "src/${EGO_PN}" || die
61 - mv "vendor" "src/" || die
62 -}
63 -
64 -src_install() {
65 - dobin dnscrypt-proxy
66 -
67 - insinto /etc/dnscrypt-proxy
68 - newins "src/${EGO_PN}"/example-dnscrypt-proxy.toml dnscrypt-proxy.toml
69 - doins "src/${EGO_PN}"/example-{blacklist.txt,whitelist.txt}
70 - doins "src/${EGO_PN}"/example-{cloaking-rules.txt,forwarding-rules.txt}
71 -
72 - insinto "/usr/share/dnscrypt-proxy"
73 - doins -r "utils/generate-domains-blacklists/."
74 -
75 - newinitd "${FILESDIR}"/dnscrypt-proxy.initd dnscrypt-proxy
76 - newconfd "${FILESDIR}"/dnscrypt-proxy.confd dnscrypt-proxy
77 - systemd_newunit "${FILESDIR}"/dnscrypt-proxy.service dnscrypt-proxy.service
78 - systemd_newunit "${FILESDIR}"/dnscrypt-proxy.socket dnscrypt-proxy.socket
79 -
80 - einstalldocs
81 -}
82 -
83 -pkg_postinst() {
84 - fcaps_pkg_postinst
85 -
86 - if ! use filecaps; then
87 - ewarn "'filecaps' USE flag is disabled"
88 - ewarn "${PN} will fail to listen on port 53"
89 - ewarn "please do one the following:"
90 - ewarn "1) re-enable 'filecaps'"
91 - ewarn "2) change port to > 1024"
92 - ewarn "3) configure to run ${PN} as root (not recommended)"
93 - ewarn
94 - fi
95 -
96 - local v
97 - for v in ${REPLACING_VERSIONS}; do
98 - if [[ ${v} == 1.* ]] ; then
99 - elog "Version 2 is a complete rewrite of ${PN}"
100 - elog "please clean up old config/log files"
101 - elog
102 - fi
103 - if [[ ${v} == 2.* ]] ; then
104 - elog "As of version 2.0.12 of ${PN} runs as an 'dnscrypt-proxy' user/group"
105 - elog "you can remove obsolete 'dnscrypt' accounts from the system"
106 - elog
107 - fi
108 - done
109 -
110 - if systemd_is_booted || has_version sys-apps/systemd; then
111 - elog "Using systemd socket activation may cause issues with speed"
112 - elog "latency and reliability of ${PN} and is discouraged by upstream"
113 - elog "Existing installations advised to disable 'dnscrypt-proxy.socket'"
114 - elog "It is disabled by default for new installations"
115 - elog "check "$(systemd_get_systemunitdir)/${PN}.service" for details"
116 - elog
117 -
118 - fi
119 -
120 - elog "After starting the service you will need to update your"
121 - elog "/etc/resolv.conf and replace your current set of resolvers"
122 - elog "with:"
123 - elog
124 - elog "nameserver 127.0.0.1"
125 - elog
126 - elog "Also see https://github.com/jedisct1/${PN}/wiki"
127 -}