1 |
commit: 8aed9b14e12fd326eb9dba01ae813d4546daa087 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 11 09:45:02 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 11 09:46:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aed9b14 |
7 |
|
8 |
net-misc/tor: version bump to 0.2.7.6 |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
net-misc/tor/Manifest | 1 + |
13 |
net-misc/tor/tor-0.2.7.6.ebuild | 99 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 100 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest |
17 |
index 7960002..fb253e5 100644 |
18 |
--- a/net-misc/tor/Manifest |
19 |
+++ b/net-misc/tor/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST tor-0.2.6.10.tar.gz 3587211 SHA256 0542c0efe43b86619337862fa7eb02c7a74cb23a79d587090628a5f0f1224b8d SHA512 4d1fd794d48ada725af829e1c1f3f3b7d8d04f2d1dd22e4f175ddc49401834f2001f04d78b011cdc7e953fe44972f2859d87078489a08ae126b44f93f6b9a438 WHIRLPOOL ba2685454ecb0dd94c568e05fb14526cd06beea6e9c6f7b27328f85c555392b6f42f35dc7860ae25299a830c7f6643963a9b9719a2557c28a7216019c96caf21 |
22 |
DIST tor-0.2.7.5.tar.gz 4838541 SHA256 7d2a9e4db1bd99deb8395609b59cac217b0c1ee9ff2eeb0f088b91a5d8f6aa5f SHA512 c57b3ee6ecc36456182c7130db671c5581914cddf973c9460625cd5ecd10d128f3e4832f1520269f6ab145cc0dcb218df2a19fb659b778fb31d9f69de5362678 WHIRLPOOL d80b5949f6e23d1c3f501d5175a22eb54702266d87ff5a28bb6c727cfc8b656ca717d3bd7bf9031a56748f8b743cafecae7dd7fb14d6713271df20998e5bc562 |
23 |
+DIST tor-0.2.7.6.tar.gz 4869754 SHA256 493a8679f904503048114aca6467faef56861206bab8283d858f37141d95105d SHA512 9b0dbfabe6cd05189b179da24bfaa73b89ab237775e3b5b0ebc0a22ee98909e9b13e55841a466f04000e0ff876c15f76515ff46abca28d05eeddbdc52f183afc WHIRLPOOL 03adf1d113049ad0b7df11f4d7f2d21f2a4582fcf51046534666b748f8d2dae383fa9e9cc2b44a2388f993d21681801bff33cc2a0a9cb5aaa7cfb9600f62e4ad |
24 |
|
25 |
diff --git a/net-misc/tor/tor-0.2.7.6.ebuild b/net-misc/tor/tor-0.2.7.6.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..721cd19 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/tor/tor-0.2.7.6.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="5" |
36 |
+ |
37 |
+inherit eutils flag-o-matic readme.gentoo systemd toolchain-funcs versionator user |
38 |
+ |
39 |
+MY_PV="$(replace_version_separator 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 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos" |
50 |
+IUSE="-bufferevents libressl scrypt seccomp selinux stats systemd tor-hardening transparent-proxy test web" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ !libressl? ( dev-libs/openssl:0=[-bindist] ) |
54 |
+ libressl? ( dev-libs/libressl:= ) |
55 |
+ sys-libs/zlib |
56 |
+ dev-libs/libevent |
57 |
+ bufferevents? ( dev-libs/libevent[ssl] ) |
58 |
+ scrypt? ( app-crypt/libscrypt ) |
59 |
+ seccomp? ( sys-libs/libseccomp ) |
60 |
+ systemd? ( sys-apps/systemd )" |
61 |
+RDEPEND="${DEPEND} |
62 |
+ selinux? ( sec-policy/selinux-tor )" |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ enewgroup tor |
66 |
+ enewuser tor -1 -1 /var/lib/tor tor |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ epatch "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch |
71 |
+ epatch_user |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ # Upstream isn't sure of all the user provided CFLAGS that |
76 |
+ # will break tor, but does recommend against -fstrict-aliasing. |
77 |
+ # We'll filter-flags them here as we encounter them. |
78 |
+ filter-flags -fstrict-aliasing |
79 |
+ |
80 |
+ econf \ |
81 |
+ --enable-system-torrc \ |
82 |
+ --enable-asciidoc \ |
83 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
84 |
+ $(use_enable stats instrument-downloads) \ |
85 |
+ $(use_enable bufferevents) \ |
86 |
+ $(use_enable scrypt libscrypt) \ |
87 |
+ $(use_enable seccomp) \ |
88 |
+ $(use_enable systemd) \ |
89 |
+ $(use_enable tor-hardening gcc-hardening) \ |
90 |
+ $(use_enable tor-hardening linker-hardening) \ |
91 |
+ $(use_enable transparent-proxy transparent) \ |
92 |
+ $(use_enable web tor2web-mode) \ |
93 |
+ $(use_enable test unittests) \ |
94 |
+ $(use_enable test coverage) |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ readme.gentoo_create_doc |
99 |
+ |
100 |
+ newconfd "${FILESDIR}"/tor.confd tor |
101 |
+ newinitd "${FILESDIR}"/tor.initd-r7 tor |
102 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
103 |
+ systemd_dotmpfilesd "${FILESDIR}/${PN}.conf" |
104 |
+ |
105 |
+ emake DESTDIR="${D}" install |
106 |
+ |
107 |
+ keepdir /var/lib/tor |
108 |
+ |
109 |
+ dodoc README ChangeLog ReleaseNotes doc/HACKING |
110 |
+ |
111 |
+ fperms 750 /var/lib/tor |
112 |
+ fowners tor:tor /var/lib/tor |
113 |
+ |
114 |
+ insinto /etc/tor/ |
115 |
+ newins "${FILESDIR}"/torrc-r1 torrc |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ readme.gentoo_pkg_postinst |
120 |
+ |
121 |
+ if [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -eq 8 && $(gcc-micro-version) -ge 1 ]] ; then |
122 |
+ ewarn "Due to a bug in >=gcc-4.8.1, compiling ${P} with -Os leads to an infinite" |
123 |
+ ewarn "loop. See:" |
124 |
+ ewarn |
125 |
+ ewarn " https://trac.torproject.org/projects/tor/ticket/10259" |
126 |
+ ewarn " https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59358" |
127 |
+ ewarn |
128 |
+ fi |
129 |
+} |