1 |
commit: 1059f5ed9556e94ae173faf64dee378056a6a805 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 21:38:36 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 21:39:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1059f5ed |
7 |
|
8 |
net-dns/dnscrypt-proxy: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-dns/dnscrypt-proxy/Manifest | 1 - |
14 |
.../dnscrypt-proxy/dnscrypt-proxy-2.0.43.ebuild | 105 --------------------- |
15 |
2 files changed, 106 deletions(-) |
16 |
|
17 |
diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest |
18 |
index 1cd014712ec..1723c8920ad 100644 |
19 |
--- a/net-dns/dnscrypt-proxy/Manifest |
20 |
+++ b/net-dns/dnscrypt-proxy/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST dnscrypt-proxy-2.0.43.tar.gz 2279744 BLAKE2B f06892bc14da2be2e97dfb5d233420cf3726e359ccd0658d4309981291a12a7cac7a7592d11717a9466144bd5cb9d9a4e1b6ba8877a8b5c539783749588a10a1 SHA512 a1d14756d6be6450683a44adae197aa582df2556dda588debdadd0903b5993a4dc579880479f138ec3690045aeab833a19f23b2555a403930d26d4a5bc90ed5f |
23 |
DIST dnscrypt-proxy-2.0.44.tar.gz 2279842 BLAKE2B 90f156914dd29ab5baa2eb02ed2992583999a6688d09a532f8c7c1ec6d285bd39893f66726da928f295056fd66cd756f4332f1ed21284ffa3d357ce355a08625 SHA512 009e2b669c1d6f6cd6b41f5e04d08735587f420dacdea8d422a3c12a62614c1ce1963deebca3af1f956070abd9ff5df9182cb27e31fa0fac8a95478739445801 |
24 |
|
25 |
diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.43.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.43.ebuild |
26 |
deleted file mode 100644 |
27 |
index bfc4fef8eb0..00000000000 |
28 |
--- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-2.0.43.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,105 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-EGO_PN="github.com/DNSCrypt/${PN}" |
37 |
- |
38 |
-inherit fcaps go-module systemd |
39 |
- |
40 |
-if [[ ${PV} == 9999 ]]; then |
41 |
- inherit git-r3 |
42 |
- EGIT_REPO_URI="https://${EGO_PN}.git" |
43 |
-else |
44 |
- SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
46 |
-fi |
47 |
- |
48 |
-DESCRIPTION="A flexible DNS proxy, with support for encrypted DNS protocols" |
49 |
-HOMEPAGE="https://github.com/DNSCrypt/dnscrypt-proxy" |
50 |
- |
51 |
-LICENSE="Apache-2.0 BSD ISC MIT MPL-2.0" |
52 |
-SLOT="0" |
53 |
-IUSE="pie" |
54 |
- |
55 |
-BDEPEND=">=dev-lang/go-1.13" |
56 |
- |
57 |
-RDEPEND=" |
58 |
- acct-group/dnscrypt-proxy |
59 |
- acct-user/dnscrypt-proxy |
60 |
-" |
61 |
- |
62 |
-FILECAPS=( cap_net_bind_service+ep usr/bin/dnscrypt-proxy ) |
63 |
- |
64 |
-PATCHES=( "${FILESDIR}"/config-full-paths-r11.patch ) |
65 |
- |
66 |
-src_compile() { |
67 |
- pushd "${PN}" >/dev/null || die |
68 |
- go build -v -x -mod=readonly -mod=vendor -buildmode="$(usex pie pie default)" || die |
69 |
- popd >/dev/null || die |
70 |
-} |
71 |
- |
72 |
-src_test() { |
73 |
- cd "${PN}" || die |
74 |
- go test -mod=vendor -buildmode="$(usex pie pie default)" || die "Failed to run tests" |
75 |
-} |
76 |
- |
77 |
-src_install() { |
78 |
- pushd "${PN}" >/dev/null || die |
79 |
- |
80 |
- dobin dnscrypt-proxy |
81 |
- |
82 |
- insinto /etc/dnscrypt-proxy |
83 |
- newins example-dnscrypt-proxy.toml dnscrypt-proxy.toml |
84 |
- doins example-{blacklist.txt,whitelist.txt} |
85 |
- doins example-{cloaking-rules.txt,forwarding-rules.txt} |
86 |
- |
87 |
- popd >/dev/null || die |
88 |
- |
89 |
- insinto /usr/share/dnscrypt-proxy |
90 |
- doins -r "utils/generate-domains-blacklists/." |
91 |
- |
92 |
- newinitd "${FILESDIR}"/dnscrypt-proxy.initd dnscrypt-proxy |
93 |
- newconfd "${FILESDIR}"/dnscrypt-proxy.confd dnscrypt-proxy |
94 |
- |
95 |
- systemd_newunit "${FILESDIR}"/dnscrypt-proxy.service dnscrypt-proxy.service |
96 |
- systemd_newunit "${FILESDIR}"/dnscrypt-proxy.socket dnscrypt-proxy.socket |
97 |
- |
98 |
- insinto /etc/logrotate.d |
99 |
- newins "${FILESDIR}"/dnscrypt-proxy.logrotate dnscrypt-proxy |
100 |
- |
101 |
- einstalldocs |
102 |
-} |
103 |
- |
104 |
-pkg_postinst() { |
105 |
- fcaps_pkg_postinst |
106 |
- go-module_pkg_postinst |
107 |
- |
108 |
- if ! use filecaps; then |
109 |
- ewarn "'filecaps' USE flag is disabled" |
110 |
- ewarn "${PN} will fail to listen on port 53" |
111 |
- ewarn "please do one the following:" |
112 |
- ewarn "1) re-enable 'filecaps'" |
113 |
- ewarn "2) change port to > 1024" |
114 |
- ewarn "3) configure to run ${PN} as root (not recommended)" |
115 |
- ewarn |
116 |
- fi |
117 |
- |
118 |
- if systemd_is_booted || has_version sys-apps/systemd; then |
119 |
- elog "Using systemd socket activation may cause issues with speed" |
120 |
- elog "latency and reliability of ${PN} and is discouraged by upstream" |
121 |
- elog "Existing installations advised to disable 'dnscrypt-proxy.socket'" |
122 |
- elog "It is disabled by default for new installations" |
123 |
- elog "check "$(systemd_get_systemunitdir)/${PN}.service" for details" |
124 |
- elog |
125 |
- |
126 |
- fi |
127 |
- |
128 |
- elog "After starting the service you will need to update your" |
129 |
- elog "/etc/resolv.conf and replace your current set of resolvers" |
130 |
- elog "with:" |
131 |
- elog |
132 |
- elog "nameserver 127.0.0.1" |
133 |
- elog |
134 |
- elog "Also see https://github.com/DNSCrypt/${PN}/wiki" |
135 |
-} |