1 |
commit: c929fd524d26a95b386bef689dd15cb01dafbca9 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 22 14:16:18 2021 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 22 14:16:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c929fd52 |
7 |
|
8 |
net-vpn/tor: version bump to 0.4.7.1_alpha, new alpha branch |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-vpn/tor/Manifest | 2 + |
14 |
net-vpn/tor/tor-0.4.7.1_alpha.ebuild | 108 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 110 insertions(+) |
16 |
|
17 |
diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest |
18 |
index 4cfea21c84a..bf5862a099b 100644 |
19 |
--- a/net-vpn/tor/Manifest |
20 |
+++ b/net-vpn/tor/Manifest |
21 |
@@ -2,3 +2,5 @@ DIST tor-0.4.5.10.tar.gz 7870323 BLAKE2B cb0b1ee9c997a8837837b5a21e3a18e3efc52f8 |
22 |
DIST tor-0.4.5.10.tar.gz.asc 833 BLAKE2B 8b42bf8e2276ad9f83acf344ddba7db73c8dd3446074980bac339b9021112161944364b5f3d05eae81231ec92846a22fab081bb881133f259a715e242878d64f SHA512 87a60a51c29b8a3ae43b47f0f16e966911e1712ab276cd3da0f8e3194839c6b5c074bd43290a00ff401efd376a7d3100031f8d8e683d9ffa2a35ad709bcaf4b8 |
23 |
DIST tor-0.4.6.7.tar.gz 7790727 BLAKE2B da6b0fe0de6a334713cf881dece6ef5a932b0f4374a7dde1e1cb78b4b43944fd6156d84bd98c8be734a7cf81b99cb36187544028c3e4800d38d11d7286d19e12 SHA512 e5f9e235fc4b96f5e63e0bfa4ca412d0d11299a31cb77cae1c199b276d0dfbf3656657ddf910b22625dd49eb726d487666e80e8889db78c9edebbab0d80d9e03 |
24 |
DIST tor-0.4.6.7.tar.gz.asc 833 BLAKE2B 2054c094cc8ce28bfc8822fa6b0ac5a028b41c96160d135da53112c4fcb7ae048e8d48b58f164dd33c6c7dd851aaa71173b2aa36f70411fc7cc2b67d346ce00b SHA512 d45caaa4795d05f1f1a558192c5eedff608c74be0ef933e0ff7a4f68123a109e38e7fe26222c66dfc8966a07f458eeadf77d7f4731d88389595b59413140e9a3 |
25 |
+DIST tor-0.4.7.1-alpha.tar.gz 7837114 BLAKE2B 87e9cae4fa187b6f7c3f5ed2aa750d6dd4ac3cebdddd566255bf24980dc70b4893f167a1e08e0918545d1533776c57026c30a05dbdf84e80b4f83222dcc93363 SHA512 c88e129d1315ddd35f3387bdd24ac337bf46d47fd403737f5536a8428679bd35ec997ff41910acbd6d9b751f40279e4360fb5b6f2bdb67744a9b0d675595dc42 |
26 |
+DIST tor-0.4.7.1-alpha.tar.gz.asc 833 BLAKE2B 124b7de4c71cdcf2dd79f17d450d6dc4a8cefccd185efed2226e8a2d454a53f56aa86bb43eb1f1d6760cd1ad34764340bd2fa9a2c4e5a581f0db9310bc663aff SHA512 2cdb8483ebd9ca49323346703ca970c10fc0151d91a03535c61e44bab4102f0ffd65008c66ebe62c59596ec6c843910f75b7b75af98e747bff2391dbf9d72410 |
27 |
|
28 |
diff --git a/net-vpn/tor/tor-0.4.7.1_alpha.ebuild b/net-vpn/tor/tor-0.4.7.1_alpha.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..2bfba3ee842 |
31 |
--- /dev/null |
32 |
+++ b/net-vpn/tor/tor-0.4.7.1_alpha.ebuild |
33 |
@@ -0,0 +1,108 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="8" |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8,9} ) |
40 |
+inherit flag-o-matic python-any-r1 readme.gentoo-r1 systemd verify-sig |
41 |
+ |
42 |
+MY_PV="$(ver_rs 4 -)" |
43 |
+MY_PF="${PN}-${MY_PV}" |
44 |
+DESCRIPTION="Anonymizing overlay network for TCP" |
45 |
+HOMEPAGE="https://www.torproject.org/" |
46 |
+SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz |
47 |
+ https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz |
48 |
+ verify-sig? ( https://dist.torproject.org/${MY_PF}.tar.gz.asc )" |
49 |
+S="${WORKDIR}/${MY_PF}" |
50 |
+ |
51 |
+LICENSE="BSD GPL-2" |
52 |
+SLOT="0" |
53 |
+if [[ ${PV} != *_alpha* && ${PV} != *_beta* && ${PV} != *_rc* ]]; then |
54 |
+ KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~ppc-macos" |
55 |
+fi |
56 |
+IUSE="caps doc lzma +man scrypt seccomp selinux +server systemd tor-hardening test zstd" |
57 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/torproject.org.asc |
58 |
+ |
59 |
+BDEPEND="verify-sig? ( app-crypt/openpgp-keys-tor )" |
60 |
+DEPEND=" |
61 |
+ dev-libs/libevent:=[ssl] |
62 |
+ sys-libs/zlib |
63 |
+ caps? ( sys-libs/libcap ) |
64 |
+ man? ( app-text/asciidoc ) |
65 |
+ dev-libs/openssl:0=[-bindist(-)] |
66 |
+ lzma? ( app-arch/xz-utils ) |
67 |
+ scrypt? ( app-crypt/libscrypt ) |
68 |
+ seccomp? ( >=sys-libs/libseccomp-2.4.1 ) |
69 |
+ systemd? ( sys-apps/systemd ) |
70 |
+ zstd? ( app-arch/zstd )" |
71 |
+RDEPEND=" |
72 |
+ acct-user/tor |
73 |
+ acct-group/tor |
74 |
+ ${DEPEND} |
75 |
+ selinux? ( sec-policy/selinux-tor )" |
76 |
+ |
77 |
+# bug #764260 |
78 |
+DEPEND+=" |
79 |
+ test? ( |
80 |
+ ${DEPEND} |
81 |
+ ${PYTHON_DEPS} |
82 |
+ )" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch |
86 |
+) |
87 |
+ |
88 |
+DOCS=() |
89 |
+ |
90 |
+RESTRICT="!test? ( test )" |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ use test && python-any-r1_pkg_setup |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING ) |
98 |
+ export ac_cv_lib_cap_cap_init=$(usex caps) |
99 |
+ econf \ |
100 |
+ --localstatedir="${EPREFIX}/var" \ |
101 |
+ --disable-all-bugs-are-fatal \ |
102 |
+ --enable-system-torrc \ |
103 |
+ --disable-android \ |
104 |
+ --disable-html-manual \ |
105 |
+ --disable-libfuzzer \ |
106 |
+ --enable-missing-doc-warnings \ |
107 |
+ --disable-module-dirauth \ |
108 |
+ --enable-pic \ |
109 |
+ --disable-rust \ |
110 |
+ --disable-restart-debugging \ |
111 |
+ --disable-zstd-advanced-apis \ |
112 |
+ $(use_enable man asciidoc) \ |
113 |
+ $(use_enable man manpage) \ |
114 |
+ $(use_enable lzma) \ |
115 |
+ $(use_enable scrypt libscrypt) \ |
116 |
+ $(use_enable seccomp) \ |
117 |
+ $(use_enable server module-relay) \ |
118 |
+ $(use_enable systemd) \ |
119 |
+ $(use_enable tor-hardening gcc-hardening) \ |
120 |
+ $(use_enable tor-hardening linker-hardening) \ |
121 |
+ $(use_enable test unittests) \ |
122 |
+ $(use_enable test coverage) \ |
123 |
+ $(use_enable zstd) |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ default |
128 |
+ readme.gentoo_create_doc |
129 |
+ |
130 |
+ newconfd "${FILESDIR}"/tor.confd tor |
131 |
+ newinitd "${FILESDIR}"/tor.initd-r9 tor |
132 |
+ systemd_dounit "${FILESDIR}"/tor.service |
133 |
+ |
134 |
+ keepdir /var/lib/tor |
135 |
+ |
136 |
+ fperms 750 /var/lib/tor |
137 |
+ fowners tor:tor /var/lib/tor |
138 |
+ |
139 |
+ insinto /etc/tor/ |
140 |
+ newins "${FILESDIR}"/torrc-r2 torrc |
141 |
+} |