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 6F002138351 for ; Sun, 19 Apr 2020 20:40:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D054E08AB; Sun, 19 Apr 2020 20:40:29 +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 54D19E08AB for ; Sun, 19 Apr 2020 20:40:29 +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 6A73834F02A for ; Sun, 19 Apr 2020 20:40:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DEF401E1 for ; Sun, 19 Apr 2020 20:40:24 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1587328381.d17a7b908eb21b413c87019ddd1749bce7737a69.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/pypolicyd-spf/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2-r1.ebuild X-VCS-Directories: mail-filter/pypolicyd-spf/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: d17a7b908eb21b413c87019ddd1749bce7737a69 X-VCS-Branch: master Date: Sun, 19 Apr 2020 20:40:24 +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: ddc37d4b-1bdb-4428-a005-ab8a9d053d3c X-Archives-Hash: d0b52ac0e386d737e12c501844597424 commit: d17a7b908eb21b413c87019ddd1749bce7737a69 Author: Michael Orlitzky gentoo org> AuthorDate: Sun Apr 19 16:43:16 2020 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sun Apr 19 20:33:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d17a7b90 mail-filter/pypolicyd-spf: new revision with python-3.{7,8} support. Nothing new here except the EAPI and PYTHON_COMPAT. Closes: https://bugs.gentoo.org/718324 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michael Orlitzky gentoo.org> .../pypolicyd-spf/pypolicyd-spf-2.0.2-r1.ebuild | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2-r1.ebuild b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2-r1.ebuild new file mode 100644 index 00000000000..bede125e92e --- /dev/null +++ b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) + +# The built-in ipaddress module handles the parsing of IP addresses. If +# python is built without ipv6 support, then ipaddress can't parse ipv6 +# addresses, and the daemon will crash if it sees an ipv6 SPF record. In +# other words, it's completely broken. +PYTHON_REQ_USE="ipv6" + +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 + +DESCRIPTION="Python-based policy daemon for Postfix SPF verification" +HOMEPAGE="https://launchpad.net/pypolicyd-spf" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-python/pyspf[${PYTHON_USEDEP}]" + +RDEPEND="${DEPEND} + dev-python/authres[${PYTHON_USEDEP}]" + +DOCS=( CHANGES policyd-spf.conf.commented README README.per_user_whitelisting ) + +python_prepare_all() { + # The "real" config file mentions the commented one, so we point + # users in the right direction. + local oldconf="policyd-spf.conf.commented" + local newconf="/usr/share/doc/${PF}/${oldconf}" + + sed -i "1 s~ ${oldconf}~,\n# ${newconf}~" policyd-spf.conf \ + || die 'failed to update commented config file path' + + distutils-r1_python_prepare_all +}