Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnscrypt-proxy/, net-dns/dnscrypt-proxy/files/
Date: Sat, 08 Apr 2017 21:24:17
Message-Id: 1491686641.5f338345bb76b04f58cb1fc71f785b6dc5488ee5.monsieurp@gentoo
1 commit: 5f338345bb76b04f58cb1fc71f785b6dc5488ee5
2 Author: soredake <fdsfgs <AT> krutt <DOT> org>
3 AuthorDate: Tue Mar 28 19:57:12 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 8 21:24:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f338345
7
8 net-dns/dnscrypt-proxy: version bump to 1.9.4.
9
10 Closes: https://github.com/gentoo/gentoo/pull/4320
11
12 net-dns/dnscrypt-proxy/Manifest | 1 +
13 net-dns/dnscrypt-proxy/dnscrypt-proxy-1.9.4.ebuild | 62 ++++++++++++++++++++++
14 .../dnscrypt-proxy/files/dnscrypt-proxy.service | 2 +-
15 3 files changed, 64 insertions(+), 1 deletion(-)
16
17 diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest
18 index ae23f926c2e..abfc5a7fef2 100644
19 --- a/net-dns/dnscrypt-proxy/Manifest
20 +++ b/net-dns/dnscrypt-proxy/Manifest
21 @@ -3,3 +3,4 @@ DIST dnscrypt-proxy-1.4.3.tar.gz 1560345 SHA256 f10f10c18e25ced3c5ec5d0c4145d332
22 DIST dnscrypt-proxy-1.6.0.tar.gz 1579293 SHA256 7703a41a1040fc30b19fdfbbaba36b411e66d998584b0e2fa5088f734f4f86be SHA512 1937a80ab0e6e5786b0d004fef1c007d9d8a4df335542ae6f96c1eac7739920f2ff4b469d30abac774c12a41d275c2a8bf31b5514d7af446028cedeeb3efcf02 WHIRLPOOL b24eb58bca1ff8fa55fec3836399a3ee5c66823d8b459e5f8ce7aa653454407dc3b80d7dc050b76e5c0595fc0e2d854478a6f949ef859b149f6b20e127c98274
23 DIST dnscrypt-proxy-1.6.1.tar.gz 1721006 SHA256 c519012a66f3ee30be02113d1e0139be08ccd2ec45ca4102eac35be731a65340 SHA512 8d49be73e4b2fe1131349846191f54c7f212ff301a6a6c2a77505225f81b0615e968c945013e732c4fce3b6090606245ec7343fb0d6145bb10b67dd4112d2367 WHIRLPOOL ca5a1c3792728ff54ee5e3c5a8815deb1ce2e1bdd016438ad0b84d89458064e0178df3c1dee77c8a685894092e48a305b521dc8e4bfc3cb40a0d7ac7e7e66d18
24 DIST dnscrypt-proxy-1.7.0.tar.gz 1714401 SHA256 be9827f66401f38fd4bdb372046eff9b5802ab5f3d188878a0dcd7bd20074c09 SHA512 611d9cd9d9c086ec8e2b60f6c574451eae71ea07de85973049be7090cfbd8bf790d41f8a4a2b39d74091fba7091551967b93b85a8661c03ecad43d868df597a3 WHIRLPOOL 0c3902bfcc3571175f0f8638327cbaf5eada512565f214232732d14dc6a83f55a0babedd68007cbaeec1b584bcb1d3cc621df8b07638bacfe5893c6222d12997
25 +DIST dnscrypt-proxy-1.9.4.tar.gz 1660333 SHA256 40543efbcd56033ac03a1edf4581305e8c9bed4579ac55e6279644f07c315307 SHA512 b19103dc39655f199c85ec69daab949d07adc12e64411d2323308afb398e6ac6563bbc17f2e317bfe1e6c95c810487d8d62da3f4c7f7257bdcf837cd0390bfb0 WHIRLPOOL 4e9494c2765ecf9d625f7b44c0f58c40e491e1334a58552111730ecd3b95cba10667b2bfa2b29e291ccfa97a5678bbbc398dd14e888914bfddc6f7e61bac4a3a
26
27 diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.9.4.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.9.4.ebuild
28 new file mode 100644
29 index 00000000000..b8069db8ab6
30 --- /dev/null
31 +++ b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.9.4.ebuild
32 @@ -0,0 +1,62 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit systemd user
39 +
40 +DESCRIPTION="A tool for securing communications between a client and a DNS resolver"
41 +HOMEPAGE="https://dnscrypt.org"
42 +SRC_URI="https://download.dnscrypt.org/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="ISC"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~x86"
47 +IUSE="hardened libressl +plugins ssl systemd"
48 +
49 +RDEPEND="
50 + dev-libs/libsodium
51 + net-libs/ldns
52 + ssl? (
53 + !libressl? ( dev-libs/openssl:0= )
54 + libressl? ( dev-libs/libressl:0= )
55 + )
56 + systemd? ( sys-apps/systemd )"
57 +DEPEND="${RDEPEND}
58 + virtual/pkgconfig"
59 +
60 +DOCS="AUTHORS ChangeLog NEWS README* THANKS *txt"
61 +
62 +pkg_setup() {
63 + enewgroup dnscrypt
64 + enewuser dnscrypt -1 -1 /var/empty dnscrypt
65 +}
66 +
67 +src_configure() {
68 + econf \
69 + $(use_enable hardened pie) \
70 + $(use_enable plugins) \
71 + $(use_enable ssl openssl) \
72 + $(use_with systemd)
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
79 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
80 + systemd_dounit "${FILESDIR}"/${PN}.service
81 +}
82 +
83 +pkg_postinst() {
84 + elog "After starting the service you will need to update your"
85 + elog "/etc/resolv.conf and replace your current set of resolvers"
86 + elog "with:"
87 + elog
88 + elog "nameserver <DNSCRYPT_LOCALIP>"
89 + elog
90 + elog "where <DNSCRYPT_LOCALIP> is what you supplied in"
91 + elog "/etc/conf.d/dnscrypt-proxy, default is \"127.0.0.1\"."
92 + elog
93 + elog "Also see https://github.com/jedisct1/dnscrypt-proxy#usage."
94 +}
95
96 diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
97 index 414c0b498c5..1363ac8f8fc 100644
98 --- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
99 +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
100 @@ -2,7 +2,7 @@
101 Description=A tool for securing communications between a client and a DNS resolver
102
103 [Service]
104 -Type=forking
105 +Type=simple
106 PIDFile=/var/run/dnscrypt-proxy.pid
107 EnvironmentFile=/etc/conf.d/dnscrypt-proxy
108 ExecStartPre=/bin/rm -f /var/run/dnscrypt-proxy.pid