diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-08-09 03:53:00 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-08-09 03:53:18 -0400 |
commit | eee4f39cc19e4a78b2866a505750e192dca2902c (patch) | |
tree | 7b11b5e7067742ec5f83da863c8cebd55eabb34d /net-misc/tor | |
parent | net-im/telegram-desktop-bin: version bump to 0.10.1. (diff) | |
download | gentoo-eee4f39cc19e4a78b2866a505750e192dca2902c.tar.gz gentoo-eee4f39cc19e4a78b2866a505750e192dca2902c.tar.bz2 gentoo-eee4f39cc19e4a78b2866a505750e192dca2902c.zip |
net-misc/tor: version bump to 0.2.9.1_alpha
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-misc/tor')
-rw-r--r-- | net-misc/tor/Manifest | 1 | ||||
-rw-r--r-- | net-misc/tor/tor-0.2.9.1_alpha.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest index 93a530baa6e5..8b103e01f5b4 100644 --- a/net-misc/tor/Manifest +++ b/net-misc/tor/Manifest @@ -1,2 +1,3 @@ DIST tor-0.2.7.6.tar.gz 4869754 SHA256 493a8679f904503048114aca6467faef56861206bab8283d858f37141d95105d SHA512 9b0dbfabe6cd05189b179da24bfaa73b89ab237775e3b5b0ebc0a22ee98909e9b13e55841a466f04000e0ff876c15f76515ff46abca28d05eeddbdc52f183afc WHIRLPOOL 03adf1d113049ad0b7df11f4d7f2d21f2a4582fcf51046534666b748f8d2dae383fa9e9cc2b44a2388f993d21681801bff33cc2a0a9cb5aaa7cfb9600f62e4ad DIST tor-0.2.8.6.tar.gz 5163500 SHA256 3dc9fc02f7cd22ed5fce707e0d9b26a72b1bd0976766a804cb13078d32e3ab5a SHA512 2a550fa82135b3d5b0ae3c9e11d0fee1053a6b70e1dfd1921934bce280dc2a130966d541783f5f1a2d9f3c1ba87cec301d0d29acd9fbeaf47c0f206447d1bedc WHIRLPOOL dce56253ff0420dfceb66a9ade22318472f7161671039fe276a23000b85ec4fec749f8a7cf9b847dffb4f915e04fb6acb746413169e5b25f4becf1f65f997233 +DIST tor-0.2.9.1-alpha.tar.gz 5284721 SHA256 1a1b57af6bb47ecb62e4c60e2ceecb5609b558b1fdd87c86a91571d1601ba3f2 SHA512 3f66a679ece3434e772e8481a63032099c4c9e9e9c1c4a8450328551c6638021396bb7934fa1bf3802c14228a7fc3be3118ed399bfd4858b89ffa3fac54ab69c WHIRLPOOL ee7a961d43307b872cc6e4acb9828c8cd1ef13251589defb59e0f86e7225bb1f1dd7e6b131f1478c26d68756d67dc099211508e0e95b9863c46769ffaa1cac07 diff --git a/net-misc/tor/tor-0.2.9.1_alpha.ebuild b/net-misc/tor/tor-0.2.9.1_alpha.ebuild new file mode 100644 index 000000000000..0f889a958bc9 --- /dev/null +++ b/net-misc/tor/tor-0.2.9.1_alpha.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils flag-o-matic readme.gentoo-r1 systemd versionator user + +MY_PV="$(replace_version_separator 4 -)" +MY_PF="${PN}-${MY_PV}" +DESCRIPTION="Anonymizing overlay network for TCP" +HOMEPAGE="http://www.torproject.org/" +SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz + https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz" +S="${WORKDIR}/${MY_PF}" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos" +IUSE="-bufferevents libressl scrypt seccomp selinux systemd tor-hardening test web" + +DEPEND=" + app-text/asciidoc + dev-libs/libevent + sys-libs/zlib + bufferevents? ( dev-libs/libevent[ssl] ) + !libressl? ( dev-libs/openssl:0=[-bindist] ) + libressl? ( dev-libs/libressl:0= ) + scrypt? ( app-crypt/libscrypt ) + seccomp? ( sys-libs/libseccomp ) + systemd? ( sys-apps/systemd )" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-tor )" + +pkg_setup() { + enewgroup tor + enewuser tor -1 -1 /var/lib/tor tor +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch + epatch_user +} + +src_configure() { + # Upstream isn't sure of all the user provided CFLAGS that + # will break tor, but does recommend against -fstrict-aliasing. + # We'll filter-flags them here as we encounter them. + filter-flags -fstrict-aliasing + + econf \ + --enable-system-torrc \ + --enable-asciidoc \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable bufferevents) \ + $(use_enable scrypt libscrypt) \ + $(use_enable seccomp) \ + $(use_enable systemd) \ + $(use_enable tor-hardening gcc-hardening) \ + $(use_enable tor-hardening linker-hardening) \ + $(use_enable web tor2web-mode) \ + $(use_enable test unittests) \ + $(use_enable test coverage) +} + +src_install() { + readme.gentoo_create_doc + + newconfd "${FILESDIR}"/tor.confd tor + newinitd "${FILESDIR}"/tor.initd-r7 tor + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_dotmpfilesd "${FILESDIR}/${PN}.conf" + + emake DESTDIR="${D}" install + + keepdir /var/lib/tor + + dodoc -r README ChangeLog ReleaseNotes doc/HACKING + + fperms 750 /var/lib/tor + fowners tor:tor /var/lib/tor + + insinto /etc/tor/ + newins "${FILESDIR}"/torrc-r1 torrc +} |