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, 17 Nov 2018 12:46:27
Message-Id: 1542458771.279d6514add37c343657783b8cfd1cb6495006b1.blueness@gentoo
1 commit: 279d6514add37c343657783b8cfd1cb6495006b1
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 17 12:35:54 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 17 12:46:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=279d6514
7
8 net-vpn/tor: version bump to 0.3.5.5_alpha
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-vpn/tor/Manifest | 1 +
14 net-vpn/tor/tor-0.3.5.5_alpha.ebuild | 87 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest
18 index 2655668c85a..0f777fb39dc 100644
19 --- a/net-vpn/tor/Manifest
20 +++ b/net-vpn/tor/Manifest
21 @@ -4,3 +4,4 @@ DIST tor-0.3.4.8.tar.gz 6679385 BLAKE2B 9cb65442effd1cfceb34f3483a0e96de5e59e9ce
22 DIST tor-0.3.4.9.tar.gz 6695931 BLAKE2B ebfe0f49ae923e63b0bd8a7cafc453d7b0775cbfd167463b364490faf9bbf61decd28906d8f5bb08bfa9a5a10b371d9188a5019314c0de5ace15cc379347f88e SHA512 cc254a2cc2f21b4511e9cb215ba5f05fefc4dceffcf46a402efa2d3540872a4ed8e0095245df0802ea12c1367451bc16ca60c0aea6a77e2139580f3c5ba8c02f
23 DIST tor-0.3.5.3-alpha.tar.gz 6862572 BLAKE2B c4832828042bbecaf7c34bcb8999873cb4a5314598b2731cba02b2335c09fd8685588c52b15345821288cc94c9ab731c150b5010dee27d2dce1a15914ee31a6d SHA512 fdbbf5a69f9c0708afa4bb9e4925db4f7384997d7f497f1298d0106b76944c060c858fd061aa292310384e7b35f0ac41570cd89bb8c7e8208c832908fa3288af
24 DIST tor-0.3.5.4-alpha.tar.gz 6867919 BLAKE2B 0b9ecb02c4399df80a641825d955ca39c6d8712e8706db63d9946698adf77cf4af0d947077e6150da60e38a41accf6e6894bd29e54c1fc590a38fbc9003220bc SHA512 8bb6c72295fb6d92301fc59159368960d1b12c3c24cbca8620efe20121192d3307fd0e44d91c5cf69bbc27486ad31ec87db04ff732a7eef36b0b5d81898d3cda
25 +DIST tor-0.3.5.5-alpha.tar.gz 6893528 BLAKE2B 36d3ac98cd535046110ef24f8e388481ecfac2cd01f52b8fe1f0a88e0639ee5bbf620b50b256c954f1bc37da5c99bc8bf74a29315c3def9f21e4ab845a213153 SHA512 963aeb6ecdf8c772670261a49e273a89b5a5ac4296aec445fecf42996059a1aecaadba198a495c665afab02fc55d2572f0e66a7ebfc775512d029d53c3fd6575
26
27 diff --git a/net-vpn/tor/tor-0.3.5.5_alpha.ebuild b/net-vpn/tor/tor-0.3.5.5_alpha.ebuild
28 new file mode 100644
29 index 00000000000..c6f1f5f1020
30 --- /dev/null
31 +++ b/net-vpn/tor/tor-0.3.5.5_alpha.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +inherit flag-o-matic readme.gentoo-r1 systemd user
39 +
40 +MY_PV="$(ver_rs 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 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~ppc-macos"
51 +IUSE="caps libressl lzma scrypt seccomp selinux systemd tor-hardening test zstd"
52 +
53 +DEPEND="
54 + app-text/asciidoc
55 + dev-libs/libevent[ssl]
56 + sys-libs/zlib
57 + caps? ( sys-libs/libcap )
58 + !libressl? ( dev-libs/openssl:0=[-bindist] )
59 + libressl? ( dev-libs/libressl:0= )
60 + lzma? ( app-arch/xz-utils )
61 + scrypt? ( app-crypt/libscrypt )
62 + seccomp? ( sys-libs/libseccomp )
63 + systemd? ( sys-apps/systemd )
64 + zstd? ( app-arch/zstd )"
65 +RDEPEND="${DEPEND}
66 + selinux? ( sec-policy/selinux-tor )"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch
70 + "${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch
71 +)
72 +
73 +DOCS=( README ChangeLog ReleaseNotes doc/HACKING )
74 +
75 +pkg_setup() {
76 + enewgroup tor
77 + enewuser tor -1 -1 /var/lib/tor tor
78 +}
79 +
80 +src_configure() {
81 + export ac_cv_lib_cap_cap_init=$(usex caps)
82 + econf \
83 + --localstatedir="${EPREFIX}/var" \
84 + --enable-system-torrc \
85 + --enable-asciidoc \
86 + --disable-android \
87 + --disable-libfuzzer \
88 + --disable-module-dirauth \
89 + --enable-pic \
90 + --disable-rust \
91 + --disable-restart-debugging \
92 + --disable-zstd-advanced-apis \
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 +}