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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D3EAD138359 for ; Wed, 28 Oct 2020 18:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4D93E0878; Wed, 28 Oct 2020 18:32:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBEC7E0878 for ; Wed, 28 Oct 2020 18:32:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BA63335C5D for ; Wed, 28 Oct 2020 18:32:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87BFD3B5 for ; Wed, 28 Oct 2020 18:32:45 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1603909960.ac1936e82ef20aa73d9ecd7bcb56f7f3ce0cb287.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/onionrouter/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/onionrouter/onionrouter-9999.ebuild X-VCS-Directories: net-mail/onionrouter/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: ac1936e82ef20aa73d9ecd7bcb56f7f3ce0cb287 X-VCS-Branch: master Date: Wed, 28 Oct 2020 18:32:45 +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: 37358d6d-d319-4d6a-aac8-a7cf33d80095 X-Archives-Hash: fca59fcf83bdc26430f0034f7f6511c2 commit: ac1936e82ef20aa73d9ecd7bcb56f7f3ce0cb287 Author: Craig Andrews gentoo org> AuthorDate: Wed Oct 28 18:32:22 2020 +0000 Commit: Craig Andrews gentoo org> CommitDate: Wed Oct 28 18:32:40 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac1936e8 net-mail/onionrouter: Add live version Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Craig Andrews gentoo.org> net-mail/onionrouter/onionrouter-9999.ebuild | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/net-mail/onionrouter/onionrouter-9999.ebuild b/net-mail/onionrouter/onionrouter-9999.ebuild new file mode 100644 index 00000000000..35d74e96b3d --- /dev/null +++ b/net-mail/onionrouter/onionrouter-9999.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 systemd + +DESCRIPTION=".onion discovery via SRV DNS lookups for use with postfix" +HOMEPAGE="https://pypi.org/project/onionrouter/ https://github.com/ehloonion/onionrouter/" +if [[ ${PV} == *9999 ]] ; then + SRC_URI="" + EGIT_REPO_URI="https://github.com/ehloonion/onionrouter.git" + inherit git-r3 +else + KEYWORDS="~amd64" + SRC_URI="https://pypi.io/packages/source/${PN::1}/${PN}/${P}.tar.gz" +fi +IUSE="test" +RESTRICT="!test? ( test )" + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND="$(python_gen_cond_dep ' + dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +')" +BDEPEND="$(python_gen_cond_dep ' + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +')" + +distutils_enable_tests pytest + +src_prepare() { + # https://github.com/ehloonion/onionrouter/pull/15 + cp "${FILESDIR}/conftest.py" "${S}" || die + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + systemd_dounit "${FILESDIR}/${PN}.service" + insinto /etc/onionrouter + doins "${S}/onionrouter/configs/onionrouter.ini" +}