From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14A4A15808B for ; Wed, 13 Apr 2022 21:34:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77CE4E0923; Wed, 13 Apr 2022 21:34:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 64460E0920 for ; Wed, 13 Apr 2022 21:34:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0FC54341E51 for ; Wed, 13 Apr 2022 21:34:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C7E13A5 for ; Wed, 13 Apr 2022 21:33:58 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1649885624.5abf225cf39a130ee7c81d79c37319ce1c9fed27.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/tor/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/tor/Manifest net-vpn/tor/tor-0.4.7.6_rc.ebuild X-VCS-Directories: net-vpn/tor/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: 5abf225cf39a130ee7c81d79c37319ce1c9fed27 X-VCS-Branch: master Date: Wed, 13 Apr 2022 21:33:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9ff7563-a14e-4773-b9c1-72d5512dab7b X-Archives-Hash: 7b1fa94798c5309eaa9496a3bc39c9bd commit: 5abf225cf39a130ee7c81d79c37319ce1c9fed27 Author: John Helmert III gentoo org> AuthorDate: Wed Apr 13 21:31:01 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Wed Apr 13 21:33:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5abf225c net-vpn/tor: add 0.4.7.6_rc Just a naive copy bump. Useful for testing for the tagged bug. Bug: https://bugs.gentoo.org/838229 Signed-off-by: John Helmert III gentoo.org> net-vpn/tor/Manifest | 3 + net-vpn/tor/tor-0.4.7.6_rc.ebuild | 122 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest index 338f49ca49fa..f67d67cae673 100644 --- a/net-vpn/tor/Manifest +++ b/net-vpn/tor/Manifest @@ -13,3 +13,6 @@ DIST tor-0.4.7.4-alpha.tar.gz.sha256sum.asc 716 BLAKE2B f65ea8b99a957cb2bfea6a5d DIST tor-0.4.7.5-alpha.tar.gz 7876166 BLAKE2B f6389401adf0b3fae548f27a13b5a9f20fcad7a4fea7ea7dde159d10a49032d03e1b82a8eaf494df2e20958e510bc9aacc24d2f5ea71aa354614d726396117b4 SHA512 db93ecdeaa600ad6ac5a3c07d7cf0a00c6f89cbe4e407ac7070ad1de958329b0019145b25bc9671bbe1a12bcf3397ffa493abfa147293480616cb82923c09f1d DIST tor-0.4.7.5-alpha.tar.gz.sha256sum 91 BLAKE2B 97d7a909cf2f7a94b9ba5ad143c7d3c368f3352be16e61e181b34acde8fea3d314220914ab9b589ad926d360e0bc3bf3012722f7ddfff96909d57d8359fd5c1d SHA512 f86bd14c4964f4deb4aac748dd31a623dd40800d2494b6c627a14d58818f2b7d2d64054f18e0d5f5368e13e2f8242ff46c40447559c22085321710236e21ae98 DIST tor-0.4.7.5-alpha.tar.gz.sha256sum.asc 716 BLAKE2B 41c5b1242c31d67d17ac9d2ebfd1d6cccb603f83beea0f7b86bf669b6ab6a497fd7331d4eab00a4da9eb5a0cf774df259df428f88bbed751bce23ae4f9dfdab0 SHA512 fa5839e5beaa4decb7ae5410f4261017cbd3308faa773f225a8fcb0c91f90dc7a259c098f3aab511223709ce638dc22e68c5f5235f7e17cafe51c0fd22663437 +DIST tor-0.4.7.6-rc.tar.gz 7883100 BLAKE2B 5820bc21507c1d35cbff9752c9e4e40a9cf387c374a03c5ae02941e113a8f57b7f1ff8f5fceb29670f7a91373adb365252e81b4fc694bd0a7a009d0f9336494e SHA512 4a2331e40a9963efe1922fabb3b3022c6ded0b817c46e8dfb1494c94e9374b639222d131eddd4d2363f3cdea3b1c055ee49d9ab0f583695aee793571ed67e5f6 +DIST tor-0.4.7.6-rc.tar.gz.sha256sum 88 BLAKE2B 676e680b35ba079e4fcb368aed54fd287b5b7888fd67f8566d417e7b7ddbed8ad865eeb022a40f7247f7e8d72f745c9ed69e12f3eab391f0df110a611c7995e0 SHA512 7804acd9d97168364298accdd04dda88525084cfdf752873c6810e93ac915a2167c8f94b4d2621f18107f911d18a4565e1ab35e4ade732ff813d614dd7e86f58 +DIST tor-0.4.7.6-rc.tar.gz.sha256sum.asc 716 BLAKE2B a62c8653fe9a53487101caaef951c99f695ead61c276047b406634b38626b6432432691cf18d186791ebe8f2d483cb9f2373bc2de778e1ef9bef4777d458a8f2 SHA512 e39eb31e7a938fbb19c0e8d89b6d16e332c0491b9b80034b19f1eeb45f15d5c5d1e94ea85a14d9fa160ce48d73cea509c698aa512181b6a361b79823380f0370 diff --git a/net-vpn/tor/tor-0.4.7.6_rc.ebuild b/net-vpn/tor/tor-0.4.7.6_rc.ebuild new file mode 100644 index 000000000000..a117b5a80dea --- /dev/null +++ b/net-vpn/tor/tor-0.4.7.6_rc.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{8,9} ) +inherit flag-o-matic python-any-r1 readme.gentoo-r1 systemd verify-sig + +MY_PV="$(ver_rs 4 -)" +MY_PF="${PN}-${MY_PV}" +DESCRIPTION="Anonymizing overlay network for TCP" +HOMEPAGE="https://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 + verify-sig? ( + https://dist.torproject.org/${MY_PF}.tar.gz.sha256sum + https://dist.torproject.org/${MY_PF}.tar.gz.sha256sum.asc + )" +S="${WORKDIR}/${MY_PF}" + +LICENSE="BSD GPL-2" +SLOT="0" +if [[ ${PV} != *_alpha* && ${PV} != *_beta* && ${PV} != *_rc* ]]; then + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~ppc-macos" +fi +IUSE="caps doc lzma +man scrypt seccomp selinux +server systemd tor-hardening test zstd" +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/torproject.org.asc + +BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-tor-20220216 )" +DEPEND=" + dev-libs/libevent:=[ssl] + sys-libs/zlib + caps? ( sys-libs/libcap ) + man? ( app-text/asciidoc ) + dev-libs/openssl:0=[-bindist(-)] + lzma? ( app-arch/xz-utils ) + scrypt? ( app-crypt/libscrypt ) + seccomp? ( >=sys-libs/libseccomp-2.4.1 ) + systemd? ( sys-apps/systemd ) + zstd? ( app-arch/zstd )" +RDEPEND=" + acct-user/tor + acct-group/tor + ${DEPEND} + selinux? ( sec-policy/selinux-tor )" + +# bug #764260 +DEPEND+=" + test? ( + ${DEPEND} + ${PYTHON_DEPS} + )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch +) + +DOCS=() + +RESTRICT="!test? ( test )" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_detached ${MY_PF}.tar.gz.sha256sum{,.asc} + verify-sig_verify_unsigned_checksums \ + ${MY_PF}.tar.gz.sha256sum sha256 ${MY_PF}.tar.gz + cd "${WORKDIR}" || die + fi + + default +} + +src_configure() { + use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING ) + export ac_cv_lib_cap_cap_init=$(usex caps) + econf \ + --localstatedir="${EPREFIX}/var" \ + --disable-all-bugs-are-fatal \ + --enable-system-torrc \ + --disable-android \ + --disable-html-manual \ + --disable-libfuzzer \ + --enable-missing-doc-warnings \ + --disable-module-dirauth \ + --enable-pic \ + --disable-restart-debugging \ + --disable-zstd-advanced-apis \ + $(use_enable man asciidoc) \ + $(use_enable man manpage) \ + $(use_enable lzma) \ + $(use_enable scrypt libscrypt) \ + $(use_enable seccomp) \ + $(use_enable server module-relay) \ + $(use_enable systemd) \ + $(use_enable tor-hardening gcc-hardening) \ + $(use_enable tor-hardening linker-hardening) \ + $(use_enable test unittests) \ + $(use_enable test coverage) \ + $(use_enable zstd) +} + +src_install() { + default + readme.gentoo_create_doc + + newconfd "${FILESDIR}"/tor.confd tor + newinitd "${FILESDIR}"/tor.initd-r9 tor + systemd_dounit "${FILESDIR}"/tor.service + + keepdir /var/lib/tor + + fperms 750 /var/lib/tor + fowners tor:tor /var/lib/tor + + insinto /etc/tor/ + newins "${FILESDIR}"/torrc-r2 torrc +}