1 |
commit: 46700174943fefa3dad6caf59a0417eb2e3cd572 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 25 20:39:52 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 25 20:40:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46700174 |
7 |
|
8 |
net-vpn/tor: add 0.4.3.1_alpha, new alpha branch |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-vpn/tor/Manifest | 1 + |
14 |
net-vpn/tor/metadata.xml | 1 + |
15 |
net-vpn/tor/tor-0.4.3.1_alpha.ebuild | 92 ++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 94 insertions(+) |
17 |
|
18 |
diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest |
19 |
index 2ff186c0e65..b33b018529a 100644 |
20 |
--- a/net-vpn/tor/Manifest |
21 |
+++ b/net-vpn/tor/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST tor-0.4.0.5.tar.gz 7203877 BLAKE2B e03710038615a5b9baf327933917c369bb3fabd4df6dd9f16053a0b72bcf20219e956e74258d0e39ae297d406035a89fab017d2e28c795f5d713c3933ad7cd29 SHA512 f6bccc52aaa436a501077b0891ecd3a9779f288b3b15fd76fa2c612e60aba04763b5951f55b2357e6271797b2f924bee9a6d2c1ee20419daa02d9d38ec68510b |
24 |
DIST tor-0.4.1.7.tar.gz 7512661 BLAKE2B 34c1c8e40c6a2a2aeb19e1161b3b32d1683da246c5839c9fc4375471d8e7c46bb1277bcf8fc700898580a6b15d8f401ee61f422ecd7a88c783cffb1157150fc5 SHA512 f6ead1412d23516a16f31e1157b4538071752ae09a421d9dceaa7cf76599c01490f9bfcb8e26f1a75e888359adf6adcd029ca64cf48e3b45b07e2d62482c9541 |
25 |
DIST tor-0.4.2.5.tar.gz 7596836 BLAKE2B 0c7fa5d427f9d0683846c1023a4539ae4042c0d26f1c5afff20037f0681f6ea0dfb735e9c0e9d14bd7dddbfd5a0023064dc6e6cf6e6629402a6a13248129e6c5 SHA512 e63157713caa3590324f652f17c5c5634bab015dcde5c7832eb725351c3a91c1051dd8a95650502703e9c3dd5daefc2867ff3d20530dfec17310bb3dd4bb5b7d |
26 |
+DIST tor-0.4.3.1-alpha.tar.gz 7716850 BLAKE2B a03d0a1ad172ac9e5fd511ad772b4dbb4f2c75f42bb30636d5928bad819b984ac36bc11894d2aa75f0cca57591385a8cda5186c64c54aad222cd233268bfe8c9 SHA512 fb51b368927fd292de7f257e31bd882168a04bf7ffc108a1fff2bf555118d71732213ef6d2b5adb93f9178b5410307025c4a0494858fb457913655a0b705466b |
27 |
|
28 |
diff --git a/net-vpn/tor/metadata.xml b/net-vpn/tor/metadata.xml |
29 |
index 121fa511c90..5d6719bc9a3 100644 |
30 |
--- a/net-vpn/tor/metadata.xml |
31 |
+++ b/net-vpn/tor/metadata.xml |
32 |
@@ -8,6 +8,7 @@ |
33 |
<use> |
34 |
<flag name="man">Build and install man pages</flag> |
35 |
<flag name="scrypt">Use <pkg>app-crypt/libscrypt</pkg> for the scrypt algorithm</flag> |
36 |
+ <flag name="server">Enable tor's relay module so it can operate as a relay/bridge/authority</flag> |
37 |
<flag name="tor-hardening">Compile tor with hardening on vanilla compilers/linkers</flag> |
38 |
</use> |
39 |
</pkgmetadata> |
40 |
|
41 |
diff --git a/net-vpn/tor/tor-0.4.3.1_alpha.ebuild b/net-vpn/tor/tor-0.4.3.1_alpha.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..36757c1c3d7 |
44 |
--- /dev/null |
45 |
+++ b/net-vpn/tor/tor-0.4.3.1_alpha.ebuild |
46 |
@@ -0,0 +1,92 @@ |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI="7" |
51 |
+ |
52 |
+inherit flag-o-matic readme.gentoo-r1 systemd |
53 |
+ |
54 |
+MY_PV="$(ver_rs 4 -)" |
55 |
+MY_PF="${PN}-${MY_PV}" |
56 |
+DESCRIPTION="Anonymizing overlay network for TCP" |
57 |
+HOMEPAGE="http://www.torproject.org/" |
58 |
+SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz |
59 |
+ https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz" |
60 |
+S="${WORKDIR}/${MY_PF}" |
61 |
+ |
62 |
+LICENSE="BSD GPL-2" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~ppc-macos" |
65 |
+IUSE="caps doc libressl lzma +man scrypt seccomp selinux +server systemd tor-hardening test zstd" |
66 |
+ |
67 |
+DEPEND=" |
68 |
+ dev-libs/libevent:=[ssl] |
69 |
+ sys-libs/zlib |
70 |
+ caps? ( sys-libs/libcap ) |
71 |
+ man? ( app-text/asciidoc ) |
72 |
+ !libressl? ( dev-libs/openssl:0=[-bindist] ) |
73 |
+ libressl? ( dev-libs/libressl:0= ) |
74 |
+ lzma? ( app-arch/xz-utils ) |
75 |
+ scrypt? ( app-crypt/libscrypt ) |
76 |
+ seccomp? ( >=sys-libs/libseccomp-2.4.1 ) |
77 |
+ systemd? ( sys-apps/systemd ) |
78 |
+ zstd? ( app-arch/zstd )" |
79 |
+RDEPEND=" |
80 |
+ acct-user/tor |
81 |
+ acct-group/tor |
82 |
+ ${DEPEND} |
83 |
+ selinux? ( sec-policy/selinux-tor )" |
84 |
+ |
85 |
+PATCHES=( |
86 |
+ "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch |
87 |
+ "${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch |
88 |
+) |
89 |
+ |
90 |
+DOCS=() |
91 |
+ |
92 |
+RESTRICT="!test? ( test )" |
93 |
+ |
94 |
+src_configure() { |
95 |
+ use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING ) |
96 |
+ export ac_cv_lib_cap_cap_init=$(usex caps) |
97 |
+ econf \ |
98 |
+ --localstatedir="${EPREFIX}/var" \ |
99 |
+ --enable-system-torrc \ |
100 |
+ --disable-android \ |
101 |
+ --disable-html-manual \ |
102 |
+ --disable-libfuzzer \ |
103 |
+ --enable-missing-doc-warnings \ |
104 |
+ --disable-module-dirauth \ |
105 |
+ --enable-pic \ |
106 |
+ --disable-rust \ |
107 |
+ --disable-restart-debugging \ |
108 |
+ --disable-zstd-advanced-apis \ |
109 |
+ $(use_enable man asciidoc) \ |
110 |
+ $(use_enable man manpage) \ |
111 |
+ $(use_enable lzma) \ |
112 |
+ $(use_enable scrypt libscrypt) \ |
113 |
+ $(use_enable seccomp) \ |
114 |
+ $(use_enable server module-relay) \ |
115 |
+ $(use_enable systemd) \ |
116 |
+ $(use_enable tor-hardening gcc-hardening) \ |
117 |
+ $(use_enable tor-hardening linker-hardening) \ |
118 |
+ $(use_enable test unittests) \ |
119 |
+ $(use_enable test coverage) \ |
120 |
+ $(use_enable zstd) |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ default |
125 |
+ readme.gentoo_create_doc |
126 |
+ |
127 |
+ newconfd "${FILESDIR}"/tor.confd tor |
128 |
+ newinitd "${FILESDIR}"/tor.initd-r9 tor |
129 |
+ systemd_dounit contrib/dist/tor.service |
130 |
+ |
131 |
+ keepdir /var/lib/tor |
132 |
+ |
133 |
+ fperms 750 /var/lib/tor |
134 |
+ fowners tor:tor /var/lib/tor |
135 |
+ |
136 |
+ insinto /etc/tor/ |
137 |
+ newins "${FILESDIR}"/torrc-r2 torrc |
138 |
+} |