1 |
commit: dd08e553a35d81a2a853a9610083f2143a25039a |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 24 16:19:12 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 24 16:19:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd08e553 |
7 |
|
8 |
net-vpn/tor: version bump to 0.4.1.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-vpn/tor/Manifest | 1 + |
14 |
net-vpn/tor/tor-0.4.1.6.ebuild | 89 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest |
18 |
index ff75bd5feaa..0d14e1cff82 100644 |
19 |
--- a/net-vpn/tor/Manifest |
20 |
+++ b/net-vpn/tor/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST tor-0.4.0.5.tar.gz 7203877 BLAKE2B e03710038615a5b9baf327933917c369bb3fabd4df6dd9f16053a0b72bcf20219e956e74258d0e39ae297d406035a89fab017d2e28c795f5d713c3933ad7cd29 SHA512 f6bccc52aaa436a501077b0891ecd3a9779f288b3b15fd76fa2c612e60aba04763b5951f55b2357e6271797b2f924bee9a6d2c1ee20419daa02d9d38ec68510b |
23 |
DIST tor-0.4.1.5.tar.gz 7378436 BLAKE2B 33e4cd5958f4b0e1ece2cc035f87d6ccd255fcc9d0d1d92d05a9d469997f39120cddf700a614b80c83dbc4f57a80e270178ea3c04159b96aec248405654a6a5b SHA512 33d30f5fd2a92dfcb28d97c76c9d396d3eda27036b01c3a678428e878f046e45a87c2d42de0c1b8ba672568d75b08ba4cbf56d1aa50acd34c0d174180faace6e |
24 |
+DIST tor-0.4.1.6.tar.gz 7390096 BLAKE2B b98f06b771953de781f446528096ff3c688599bae4c141f14a6be06373deebf11f6c15faf2168aee672bf75fcd25f42e2142e469046cd0a442b558c7cf41b28b SHA512 9e4625216e25b9498d6054a9920e5a8932ca7b28c5131062eac637b69c80cdf05bc3fd008b833e5359d8849e256f1f405abd56b07f50fd91077b153ba60503da |
25 |
|
26 |
diff --git a/net-vpn/tor/tor-0.4.1.6.ebuild b/net-vpn/tor/tor-0.4.1.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5260bac68c8 |
29 |
--- /dev/null |
30 |
+++ b/net-vpn/tor/tor-0.4.1.6.ebuild |
31 |
@@ -0,0 +1,89 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+inherit flag-o-matic readme.gentoo-r1 systemd user |
38 |
+ |
39 |
+MY_PV="$(ver_rs 4 -)" |
40 |
+MY_PF="${PN}-${MY_PV}" |
41 |
+DESCRIPTION="Anonymizing overlay network for TCP" |
42 |
+HOMEPAGE="http://www.torproject.org/" |
43 |
+SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz |
44 |
+ https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz" |
45 |
+S="${WORKDIR}/${MY_PF}" |
46 |
+ |
47 |
+LICENSE="BSD GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~ppc-macos" |
50 |
+IUSE="caps doc libressl lzma +man scrypt seccomp selinux systemd tor-hardening test zstd" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ dev-libs/libevent[ssl] |
54 |
+ sys-libs/zlib |
55 |
+ caps? ( sys-libs/libcap ) |
56 |
+ man? ( app-text/asciidoc ) |
57 |
+ !libressl? ( dev-libs/openssl:0=[-bindist] ) |
58 |
+ libressl? ( dev-libs/libressl:0= ) |
59 |
+ lzma? ( app-arch/xz-utils ) |
60 |
+ scrypt? ( app-crypt/libscrypt ) |
61 |
+ seccomp? ( sys-libs/libseccomp ) |
62 |
+ systemd? ( sys-apps/systemd ) |
63 |
+ zstd? ( app-arch/zstd )" |
64 |
+RDEPEND="${DEPEND} |
65 |
+ selinux? ( sec-policy/selinux-tor )" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch |
69 |
+ "${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch |
70 |
+) |
71 |
+ |
72 |
+DOCS=() |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ enewgroup tor |
76 |
+ enewuser tor -1 -1 /var/lib/tor tor |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING ) |
81 |
+ export ac_cv_lib_cap_cap_init=$(usex caps) |
82 |
+ econf \ |
83 |
+ --localstatedir="${EPREFIX}/var" \ |
84 |
+ --enable-system-torrc \ |
85 |
+ --disable-android \ |
86 |
+ --disable-libfuzzer \ |
87 |
+ --disable-module-dirauth \ |
88 |
+ --enable-pic \ |
89 |
+ --disable-rust \ |
90 |
+ --disable-restart-debugging \ |
91 |
+ --disable-zstd-advanced-apis \ |
92 |
+ $(use_enable man asciidoc) \ |
93 |
+ $(use_enable lzma) \ |
94 |
+ $(use_enable scrypt libscrypt) \ |
95 |
+ $(use_enable seccomp) \ |
96 |
+ $(use_enable systemd) \ |
97 |
+ $(use_enable tor-hardening gcc-hardening) \ |
98 |
+ $(use_enable tor-hardening linker-hardening) \ |
99 |
+ $(use_enable test unittests) \ |
100 |
+ $(use_enable test coverage) \ |
101 |
+ $(use_enable zstd) |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ default |
106 |
+ readme.gentoo_create_doc |
107 |
+ |
108 |
+ newconfd "${FILESDIR}"/tor.confd tor |
109 |
+ newinitd "${FILESDIR}"/tor.initd-r8 tor |
110 |
+ systemd_dounit contrib/dist/tor.service |
111 |
+ |
112 |
+ keepdir /var/lib/tor |
113 |
+ |
114 |
+ fperms 750 /var/lib/tor |
115 |
+ fowners tor:tor /var/lib/tor |
116 |
+ |
117 |
+ insinto /etc/tor/ |
118 |
+ newins "${FILESDIR}"/torrc-r1 torrc |
119 |
+ |
120 |
+} |