Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/tor/
Date: Sat, 14 Jul 2018 11:21:10
Message-Id: 1531567260.9fcba4faba8aaf7b1aed41829a221b04ddabf412.blueness@gentoo
1 commit: 9fcba4faba8aaf7b1aed41829a221b04ddabf412
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 14 11:19:41 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 14 11:21:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fcba4fa
7
8 net-vpn/tor: version bump to 0.3.3.9
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-vpn/tor/Manifest | 1 +
13 net-vpn/tor/tor-0.3.3.9.ebuild | 87 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest
17 index 85bb72350a7..e3111e19fa5 100644
18 --- a/net-vpn/tor/Manifest
19 +++ b/net-vpn/tor/Manifest
20 @@ -1,4 +1,5 @@
21 DIST tor-0.3.1.10.tar.gz 6192183 BLAKE2B 4c1b57a3b19d18d735bb7362a08e4c2330350f2e31d52a8eb6d837cebc45ad6e64f3364e368f72d59bb8f51f652d4029a3e237a26efe580551811f5812e8dac4 SHA512 92af34a96bea2a99ab51d766d932da697409e404da4318ba6b3360ff0c2e9369b9afa652445a1651940f5a0502f4137141cc87cff14eba180539ea81be0c21a3
22 DIST tor-0.3.2.10.tar.gz 6421984 BLAKE2B bab8031982f05ee29b14d22fdd9c4912e35342e6ac57a1c3fe1d5de3c4f394e0211607d20917b705a5f489109511a7ed7761e1dd7b4310c3d112c5e7cf9964bb SHA512 b916173b13fbca71a1b859d0cb1b090a063b27039ce88cedcf4b17ab282bfaa2edf0bb9f213fc20f82af856c880e0747a593e3d8fe1bc17319dc5cd8ac4490df
23 DIST tor-0.3.3.8.tar.gz 6564878 BLAKE2B 1bb9adc4aaa6b207b544a98cb66349cce09a4d731a4e8908403da0d80b4b3ae3d4d5dabb9cd75bbecbac1b4f1233e06b235fb5c87bb2253a27a30a80f59074cf SHA512 b937f7f429690fa92d112d5bc48234c4b96f69614f319f04dab62e5b11b87e5e141d48642afac89e1dfe62a394d56b82ebf7fb1ac10de91923135a434a79718f
24 +DIST tor-0.3.3.9.tar.gz 6563091 BLAKE2B 9bb2009c309005ad913aa8f3e175ef8500a571de6210ecaa1a17947633e201092dd819e30e95a55918dff54858b8c420039e960113e9096b2b4f43ca596bb3bd SHA512 3b1fd9926988233c605996281510cd966a08bc1008e1e4bf7e0ed76b40c1820b7789a85555d5a4d9c0b58db992366d7a62d5d3b20e818a0d68df3b2286d0df3d
25 DIST tor-0.3.4.2-alpha.tar.gz 6634506 BLAKE2B f5fd597c0df5d49230d380b8a989cc1549d7e0249269fe5dad4cbc62dcd4f1bf03320f330591379be97a6ca19625f9c3813fb16728be9e8e0b9b446da6e127a4 SHA512 cec88017f1a36a74234eebfe83cca0d983ac698c5e27c6861d107e3776d89074b4dd654fdea943e325ed0ca81d7a64dfd80bda61f26a73d29ec75b940323a930
26
27 diff --git a/net-vpn/tor/tor-0.3.3.9.ebuild b/net-vpn/tor/tor-0.3.3.9.ebuild
28 new file mode 100644
29 index 00000000000..fd1ee6ae393
30 --- /dev/null
31 +++ b/net-vpn/tor/tor-0.3.3.9.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +
38 +inherit flag-o-matic readme.gentoo-r1 systemd versionator user
39 +
40 +MY_PV="$(replace_version_separator 4 -)"
41 +MY_PF="${PN}-${MY_PV}"
42 +DESCRIPTION="Anonymizing overlay network for TCP"
43 +HOMEPAGE="http://www.torproject.org/"
44 +SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz
45 + https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz"
46 +S="${WORKDIR}/${MY_PF}"
47 +
48 +LICENSE="BSD GPL-2"
49 +SLOT="0"
50 +# We need to keyword app-arch/zstd
51 +#KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
52 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~ppc-macos"
53 +IUSE="caps libressl lzma scrypt seccomp selinux systemd tor-hardening test web zstd"
54 +
55 +DEPEND="
56 + app-text/asciidoc
57 + dev-libs/libevent[ssl]
58 + sys-libs/zlib
59 + caps? ( sys-libs/libcap )
60 + !libressl? ( dev-libs/openssl:0=[-bindist] )
61 + libressl? ( dev-libs/libressl:0= )
62 + lzma? ( app-arch/xz-utils )
63 + scrypt? ( app-crypt/libscrypt )
64 + seccomp? ( sys-libs/libseccomp )
65 + systemd? ( sys-apps/systemd )
66 + zstd? ( app-arch/zstd )"
67 +RDEPEND="${DEPEND}
68 + selinux? ( sec-policy/selinux-tor )"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch
72 + "${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch
73 +)
74 +
75 +DOCS=( README ChangeLog ReleaseNotes doc/HACKING )
76 +
77 +pkg_setup() {
78 + enewgroup tor
79 + enewuser tor -1 -1 /var/lib/tor tor
80 +}
81 +
82 +src_configure() {
83 + export ac_cv_lib_cap_cap_init=$(usex caps)
84 + econf \
85 + --localstatedir="${EPREFIX}/var" \
86 + --enable-system-torrc \
87 + --enable-asciidoc \
88 + --disable-android \
89 + --disable-libfuzzer \
90 + --disable-rust \
91 + --disable-restart-debugging \
92 + $(use_enable lzma) \
93 + $(use_enable scrypt libscrypt) \
94 + $(use_enable seccomp) \
95 + $(use_enable systemd) \
96 + $(use_enable tor-hardening gcc-hardening) \
97 + $(use_enable tor-hardening linker-hardening) \
98 + $(use_enable web tor2web-mode) \
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 +}