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 6A78A15808B for ; Wed, 13 Apr 2022 21:34:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75DE6E0920; Wed, 13 Apr 2022 21:34:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B472CE0923 for ; Wed, 13 Apr 2022 21:34:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 1BDBD341E52 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 58DEA391 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: <1649885619.18b07e74036f2267e0c5746baff558eba755c851.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.5_alpha.ebuild X-VCS-Directories: net-vpn/tor/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: 18b07e74036f2267e0c5746baff558eba755c851 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: 6fbe2ca8-990c-4a32-bd1d-91c932110205 X-Archives-Hash: a6585ae776a3cb3a49474c2f2f1cedf5 commit: 18b07e74036f2267e0c5746baff558eba755c851 Author: John Helmert III gentoo org> AuthorDate: Wed Apr 13 21:23:10 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Wed Apr 13 21:33:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b07e74 net-vpn/tor: add 0.4.7.5_alpha 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.5_alpha.ebuild | 122 +++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) diff --git a/net-vpn/tor/Manifest b/net-vpn/tor/Manifest index e972d0dc3a2d..338f49ca49fa 100644 --- a/net-vpn/tor/Manifest +++ b/net-vpn/tor/Manifest @@ -10,3 +10,6 @@ DIST tor-0.4.6.9.tar.gz.asc 833 BLAKE2B 1028464261cd02502408fff7354b92c68f51ce4e DIST tor-0.4.7.4-alpha.tar.gz 7855828 BLAKE2B c30f131254a55e0fcea82361b491730ec4cae2de9bba33bd4f2d68a71b658478ab2344727096c34a7216a13617ea70b7288b8c1f1e80ffcaeb03aba6b462c0ec SHA512 8956424cec7d9ec223ea974e2d13e1f50e3003a9a7535bff109504ce3a9cb8e62add4dd5b716990b8e8fe258fd9854fe5ae00a914dfa7c7e2f79b3d703363db0 DIST tor-0.4.7.4-alpha.tar.gz.sha256sum 91 BLAKE2B d3e9416c33e286225b3f41f57bb4cb01ba724a4142b301d3a9fde61c6191c83252a3f1ea7100d26cffc6a0eb4466517b61a167a9f19627679ff5299434dd07e3 SHA512 08d06eb70f2894117b83a934a4df334cd2c7db2f4a51a10233e9e71f94a8aba4a0262476e20480444e232116cd184635d53ec5f4a81f8de78cd1bfd75158eecd DIST tor-0.4.7.4-alpha.tar.gz.sha256sum.asc 716 BLAKE2B f65ea8b99a957cb2bfea6a5da664864df68a521268f0c15dee02a738498af7ccc8c0b7299bfe413ee16011f3ea414b694482e8c45c691c1e6585648621cd02a6 SHA512 f8353d9c1d3b9a14767fff8c795acf8914c5970a3b146b0b05010b6a6a01901faa27098a18f08119c0256be43c9e5d43dfe12b36ac2d00d8e2506349884317db +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 diff --git a/net-vpn/tor/tor-0.4.7.5_alpha.ebuild b/net-vpn/tor/tor-0.4.7.5_alpha.ebuild new file mode 100644 index 000000000000..a117b5a80dea --- /dev/null +++ b/net-vpn/tor/tor-0.4.7.5_alpha.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 +}