From fbda87924e6faa7a1919f1a2b4182490bde5ec5c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 3 Sep 2021 20:56:28 +0100 Subject: gentoo resync : 03.09.2021 --- mail-filter/Manifest.gz | Bin 8711 -> 8708 bytes mail-filter/spf-engine/Manifest | 2 +- mail-filter/spf-engine/spf-engine-2.9.2-r1.ebuild | 79 ---------------------- mail-filter/spf-engine/spf-engine-2.9.2-r3.ebuild | 79 ++++++++++++++++++++++ 4 files changed, 80 insertions(+), 80 deletions(-) delete mode 100644 mail-filter/spf-engine/spf-engine-2.9.2-r1.ebuild create mode 100644 mail-filter/spf-engine/spf-engine-2.9.2-r3.ebuild (limited to 'mail-filter') diff --git a/mail-filter/Manifest.gz b/mail-filter/Manifest.gz index d374a7e40f51..039dfbb0f2b0 100644 Binary files a/mail-filter/Manifest.gz and b/mail-filter/Manifest.gz differ diff --git a/mail-filter/spf-engine/Manifest b/mail-filter/spf-engine/Manifest index 91108167f4ed..6cdafb52cc80 100644 --- a/mail-filter/spf-engine/Manifest +++ b/mail-filter/spf-engine/Manifest @@ -1,3 +1,3 @@ DIST spf-engine-2.9.2.tar.gz 52737 BLAKE2B 39d6c9831ef3ea489f2910fcbcaec9b2bed627f02459e20826166f04a2fe895aecf83768a3446a037e4231cc317ee277f6ff8e9030c72d8819739f6af889d632 SHA512 fe1fe82411ed4d6fcfadccd6ccc9fbd36372b4676051aafa5984740cba862336b00567576b3e32451cd24b0cfcd992d7dfdee33f0cf65a35f4009837e99b8f98 -EBUILD spf-engine-2.9.2-r1.ebuild 2780 BLAKE2B 1aa8a6f0389dbe7ad85ee40787463b39124ab404cd2cff9618d38b53ddfde8e5574cc14029e9de39d6ac8aa0dc5cbc6503e3c09d39c2a41fde780d6dea79713b SHA512 d4fc689d17d28f49d7dcafb34ca884fb7c6eacaa165dba8bf88673000f426b5f4a062d25c43e2204d79c351b3691047ad0e063709b1b6d3c1b60fb68b3b0f99e +EBUILD spf-engine-2.9.2-r3.ebuild 2783 BLAKE2B 6cb7071aada85cd6c41aa2285404dc86d130dec6a4082ea5c26369f6b47431cbbd3f9ef05c54bc8c9d6bd8977cf6c8b04cc9d2e9a4527d8b06e6eb4f9df03ff7 SHA512 f6b78f1ca2bb3c33b2477719f8f6d8c3645444afa51ec58fce86504ade28ff830b38bb7b00cf70c616a9834080f468e24a2d215188e753c284927a06b3207aec MISC metadata.xml 350 BLAKE2B 979a5608d2877fdfe350a7f58ca1d0da721f3d2742b89bab11b6eae5d7ebfcf1f0b8cbda8b81c904aefcbbb908b325d732a6928093dfed57a13d407e91a769ca SHA512 434b6b307bfb636ed69cb2fa9a95daa7c5208501054df048346973a16ebb14786fdf4eda749eea6006c529f9d5a9c78b6ff32d7e85f76644250944e5d8f7b3a8 diff --git a/mail-filter/spf-engine/spf-engine-2.9.2-r1.ebuild b/mail-filter/spf-engine/spf-engine-2.9.2-r1.ebuild deleted file mode 100644 index 25381a867142..000000000000 --- a/mail-filter/spf-engine/spf-engine-2.9.2-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_7 python3_8 python3_9 ) - -# 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" - -# setup.py defines entry_points -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 - -DESCRIPTION="Policy daemon and milter for Postfix SPF verification" -HOMEPAGE="https://launchpad.net/spf-engine" -SRC_URI="mirror://pypi/${PN:0:1}/${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 -e "1 s~ ${oldconf}~,\n# ${newconf}~" -i policyd-spf.conf \ - || die 'failed to update commented config file path' - - distutils-r1_python_prepare_all -} - -src_install() { - distutils-r1_src_install - - # Remove the milter files that are installed by default. The milter - # isn't quite ready: - # - # * The README says it's experimental not well-tested. - # * There's no documentation for its configuration parameters - # (expecially the UserID). - # * The configuration file is hard-coded to /usr/local. - # * The paths in the systemd service file are hard-coded to /usr/local. - # * We need to write an OpenRC service script for it. - # - # These are all eventually doable, but I'm not willing to commit to - # making the milter work before upstream is. - # - rm "${ED}/usr/bin/pyspf-milter" \ - || die "failed to remove ${ED}/usr/bin/pyspf-milter" - rm -r "${ED}/usr/lib/systemd" \ - || die "failed to remove ${ED}/usr/lib/systemd" - rm -r "${ED}/usr/etc/init.d" \ - || die "failed to remove ${ED}/usr/etc/init.d" - einfo "The milter component of spf-engine is still deemed experimental" - einfo "and not well-tested by upstream. It's missing configuration" - einfo "files, service scripts, and documentation. In other words, it" - einfo "doesn't work yet." - - # The setuptools installation routing always works relative to - # python's prefix, so that when installing locally you wind up - # with paths like /usr/local/etc. However for system installs - # that does the wrong thing and puts the sysconfdir at /usr/etc. - # Here we move it to the right place. - mv -v "${ED}/usr/etc" "${ED}/" || die 'failed to relocate sysconfdir' -} diff --git a/mail-filter/spf-engine/spf-engine-2.9.2-r3.ebuild b/mail-filter/spf-engine/spf-engine-2.9.2-r3.ebuild new file mode 100644 index 000000000000..4936a62e0edb --- /dev/null +++ b/mail-filter/spf-engine/spf-engine-2.9.2-r3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_7 python3_8 python3_9 ) + +# 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(+)" + +# setup.py defines entry_points +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Policy daemon and milter for Postfix SPF verification" +HOMEPAGE="https://launchpad.net/spf-engine" +SRC_URI="mirror://pypi/${PN:0:1}/${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 -e "1 s~ ${oldconf}~,\n# ${newconf}~" -i policyd-spf.conf \ + || die 'failed to update commented config file path' + + distutils-r1_python_prepare_all +} + +src_install() { + distutils-r1_src_install + + # Remove the milter files that are installed by default. The milter + # isn't quite ready: + # + # * The README says it's experimental not well-tested. + # * There's no documentation for its configuration parameters + # (expecially the UserID). + # * The configuration file is hard-coded to /usr/local. + # * The paths in the systemd service file are hard-coded to /usr/local. + # * We need to write an OpenRC service script for it. + # + # These are all eventually doable, but I'm not willing to commit to + # making the milter work before upstream is. + # + rm "${ED}/usr/bin/pyspf-milter" \ + || die "failed to remove ${ED}/usr/bin/pyspf-milter" + rm -r "${ED}/usr/lib/systemd" \ + || die "failed to remove ${ED}/usr/lib/systemd" + rm -r "${ED}/usr/etc/init.d" \ + || die "failed to remove ${ED}/usr/etc/init.d" + einfo "The milter component of spf-engine is still deemed experimental" + einfo "and not well-tested by upstream. It's missing configuration" + einfo "files, service scripts, and documentation. In other words, it" + einfo "doesn't work yet." + + # The setuptools installation routing always works relative to + # python's prefix, so that when installing locally you wind up + # with paths like /usr/local/etc. However for system installs + # that does the wrong thing and puts the sysconfdir at /usr/etc. + # Here we move it to the right place. + mv -v "${ED}/usr/etc" "${ED}/" || die 'failed to relocate sysconfdir' +} -- cgit v1.2.3