summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2024-03-26 15:02:54 +0100
committerPetr Vaněk <arkamar@gentoo.org>2024-03-26 15:36:12 +0100
commitb92b177e55830ccd00c72b0ac5acfcebd16ea7d1 (patch)
tree6c29706ad6d204df5a37bf1ae276b711350f6ab0 /dev-perl/Mail-SPF
parentpackage.mask: Last rite x11-libs/scw (diff)
downloadgentoo-b92b177e55830ccd00c72b0ac5acfcebd16ea7d1.tar.gz
gentoo-b92b177e55830ccd00c72b0ac5acfcebd16ea7d1.tar.bz2
gentoo-b92b177e55830ccd00c72b0ac5acfcebd16ea7d1.zip
dev-perl/Mail-SPF: rename spfd to spfd.pl
This change is necessary in order to avoid collision with mail-filter/libspf2. The change is consistent with already renamed spfquery.pl. Bug: https://bugs.gentoo.org/281189 Closes: https://bugs.gentoo.org/886179 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'dev-perl/Mail-SPF')
-rw-r--r--dev-perl/Mail-SPF/Mail-SPF-2.9.0-r4.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-perl/Mail-SPF/Mail-SPF-2.9.0-r4.ebuild b/dev-perl/Mail-SPF/Mail-SPF-2.9.0-r4.ebuild
new file mode 100644
index 000000000000..eed5bdd1b6d3
--- /dev/null
+++ b/dev-perl/Mail-SPF/Mail-SPF-2.9.0-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=JMEHNLE
+DIST_SECTION=mail-spf
+DIST_VERSION=v2.9.0
+inherit perl-module
+
+DESCRIPTION="An object-oriented implementation of Sender Policy Framework"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ dev-perl/Error
+ >=dev-perl/Net-DNS-0.620.0
+ >=dev-perl/NetAddr-IP-4
+ >=dev-perl/URI-1.130.0
+ >=dev-perl/Net-DNS-Resolver-Programmable-0.3.0
+ virtual/perl-version
+ !!dev-perl/Mail-SPF-Query
+"
+BDEPEND="${RDEPEND}
+ >=dev-perl/Module-Build-0.280.500
+ >=dev-perl/Net-DNS-Resolver-Programmable-0.3.0
+ test? ( virtual/perl-Test-Simple )
+"
+
+src_prepare() {
+ perl-module_src_prepare
+ sed -i -e "s:spfquery:spfquery.pl:" Build.PL || die "sed failed"
+ mv "${S}"/bin/spfquery{,.pl} || die "renaming spfquery failed"
+ mv "${S}"/sbin/spfd{,.pl} || die "renaming spfd failed"
+}
+
+pkg_postinst() {
+ elog "The spfquery script was renamed to spfquery.pl because of file collisions."
+}
+
+src_test() {
+ local badfiles=(
+ t/90-author-pod-validation.t
+ )
+ if ! has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+ einfo "Removing network tests w/o DIST_TEST_OVERRIDE=~network"
+ badfiles+=( "t/00.04-class-server.t" )
+ fi
+ perl_rm_files "${badfiles[@]}"
+ perl-module_src_test
+}