Hi, this is an update to latest version, ok ? Comments ? Cheers Giovanni
? patches/patch-lib_Mail_SPF_pm Index: Makefile =================================================================== RCS file: /cvs/ports/mail/p5-Mail-SPF/Makefile,v diff -u -p -r1.12 Makefile --- Makefile 21 Sep 2023 16:42:14 -0000 1.12 +++ Makefile 1 Jul 2024 08:23:39 -0000 @@ -1,8 +1,6 @@ COMMENT = perl oop implementation of Sender Policy Framework -DISTNAME = Mail-SPF-v2.9.0 -PKGNAME = p5-${DISTNAME:S/-v/-/} -REVISION = 4 +DISTNAME = Mail-SPF-3.20240617 CATEGORIES = mail MAINTAINER = Giovanni Bechis <giova...@openbsd.org> @@ -12,7 +10,6 @@ PERMIT_PACKAGE = Yes MODULES = cpan PKG_ARCH = * -CONFIGURE_STYLE = modbuild RUN_DEPENDS = devel/p5-Error \ net/p5-NetAddr-IP>=4 \ @@ -26,6 +23,6 @@ MAKE_ENV = TEST_POD=Yes CONFIGURE_ARGS = install_path=sbin="${PREFIX}/sbin" post-build: - pod2man ${WRKSRC}/sbin/spfd > ${WRKSRC}/blib/bindoc/spfd.1 + find ${WRKBUILD}/blib -type f -name '*.orig.port' -delete .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/mail/p5-Mail-SPF/distinfo,v diff -u -p -r1.3 distinfo --- distinfo 12 Sep 2014 17:14:12 -0000 1.3 +++ distinfo 1 Jul 2024 08:23:39 -0000 @@ -1,2 +1,2 @@ -SHA256 (Mail-SPF-v2.9.0.tar.gz) = YctZFfHHrMepMf/Bv8EpG9+sVV4qRusjkbmV6p7LYWI= -SIZE (Mail-SPF-v2.9.0.tar.gz) = 103834 +SHA256 (Mail-SPF-3.20240617.tar.gz) = Q5MKcIuOYF8xNREgYZ7Yz6XXif5m5/lFGDk2k/nhCuk= +SIZE (Mail-SPF-3.20240617.tar.gz) = 79806 Index: patches/patch-lib_Mail_SPF_Mod_Exp_pm =================================================================== RCS file: patches/patch-lib_Mail_SPF_Mod_Exp_pm diff -N patches/patch-lib_Mail_SPF_Mod_Exp_pm --- patches/patch-lib_Mail_SPF_Mod_Exp_pm 19 Sep 2023 09:29:51 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,34 +0,0 @@ -Fix for cpan bug 149825 (https://rt.cpan.org/Ticket/Display.html?id=149825) -Index: lib/Mail/SPF/Mod/Exp.pm ---- lib/Mail/SPF/Mod/Exp.pm.orig -+++ lib/Mail/SPF/Mod/Exp.pm -@@ -145,12 +145,27 @@ sub process { - @txt_rrs == 1 - or $server->throw_result('permerror', $request, - "Redundant authority explanation strings found at domain '$exp_domain'"); # RFC 4408, 6.2/4 -- my $explanation = Mail::SPF::MacroString->new( -+ -+ my $explanation; -+ # join with no intervening spaces, RFC 6376 -+ if ( Net::DNS->VERSION >= 0.69 ) { -+ # must call txtdata() in a list context -+ $explanation = Mail::SPF::MacroString->new( -+ text => join('', $txt_rrs[0]->txtdata), -+ server => $server, -+ request => $request, -+ is_explanation => TRUE -+ ); -+ } else { -+ # char_str_list method is 'historical' -+ $explanation = Mail::SPF::MacroString->new( - text => join('', $txt_rrs[0]->char_str_list), - server => $server, - request => $request, - is_explanation => TRUE -- ); -+ ); -+ } -+ - $request->state('authority_explanation', $explanation); - } - # Ignore DNS and other errors: Index: patches/patch-lib_Mail_SPF_Record_pm =================================================================== RCS file: patches/patch-lib_Mail_SPF_Record_pm diff -N patches/patch-lib_Mail_SPF_Record_pm --- patches/patch-lib_Mail_SPF_Record_pm 11 Mar 2022 19:34:50 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -Fix for cpan bug 130299 (https://rt.cpan.org/Public/Bug/Display.html?id=130299) -Index: lib/Mail/SPF/Record.pm ---- lib/Mail/SPF/Record.pm.orig -+++ lib/Mail/SPF/Record.pm -@@ -206,6 +206,7 @@ sub parse_version_tag { - - sub parse_term { - my ($self) = @_; -+ require Mail::SPF::Mech; - if ( - $self->{parse_text} =~ s/ - ^ Index: patches/patch-lib_Mail_SPF_Server_pm =================================================================== RCS file: patches/patch-lib_Mail_SPF_Server_pm diff -N patches/patch-lib_Mail_SPF_Server_pm --- patches/patch-lib_Mail_SPF_Server_pm 21 Sep 2023 16:42:14 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,29 +0,0 @@ -Fix for cpan bug 149825 (https://rt.cpan.org/Ticket/Display.html?id=149825) -Index: lib/Mail/SPF/Server.pm ---- lib/Mail/SPF/Server.pm.orig -+++ lib/Mail/SPF/Server.pm -@@ -22,6 +22,7 @@ use strict; - use base 'Mail::SPF::Base'; - - use Error ':try'; -+use Net::DNS; - use Net::DNS::Resolver; - - use Mail::SPF::MacroString; -@@ -513,7 +514,15 @@ sub get_acceptable_records_from_packet { - foreach my $rr ($packet->answer) { - next if $rr->type ne $rr_type; # Ignore RRs of unexpected type. - -- my $text = join('', $rr->char_str_list); -+ my $text; -+ # join with no intervening spaces, RFC 6376 -+ if ( Net::DNS->VERSION >= 0.69 ) { -+ # must call txtdata() in a list context -+ $text = join '', $rr->txtdata; -+ } else { -+ # char_str_list method is 'historical' -+ $text = join('', $rr->char_str_list); -+ } - my $record; - - # Try to parse RR as each of the requested record versions, Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/mail/p5-Mail-SPF/pkg/PLIST,v diff -u -p -r1.2 PLIST --- pkg/PLIST 11 Mar 2022 19:34:50 -0000 1.2 +++ pkg/PLIST 1 Jul 2024 08:23:39 -0000 @@ -1,4 +1,5 @@ @conflict p5-Mail-SPF-Query-* +bin/spfd bin/spfquery ${P5SITE}/Mail/ ${P5SITE}/Mail/SPF/ @@ -57,4 +58,3 @@ ${P5SITE}/Mail/SPF/v2/Record.pm @man man/man3p/Mail::SPF::Util.3p @man man/man3p/Mail::SPF::v1::Record.3p @man man/man3p/Mail::SPF::v2::Record.3p -sbin/spfd
OpenPGP_signature.asc
Description: OpenPGP digital signature