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