From c4119921b083e616bf30d84d984a8ac92c45a863 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Wed, 14 Aug 2019 18:02:14 +0000 Subject: Fix parsing SPF records - Bump PORTREVISION for package change PR: 239855 Submitted by: grembo Reference: http://debian.2.n7.nabble.com/Bug-461709-usr-sbin-spamd-spf-lookup-failed-Can-t-locate-object-method-quot-new-quot-via-package-quo-td492057.html https://rt.cpan.org/Public/Bug/Display.html?id=130299 --- mail/p5-Mail-SPF/Makefile | 7 ++++--- mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm | 10 ++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm (limited to 'mail') diff --git a/mail/p5-Mail-SPF/Makefile b/mail/p5-Mail-SPF/Makefile index 723fa9a6260a..46ad897dd871 100644 --- a/mail/p5-Mail-SPF/Makefile +++ b/mail/p5-Mail-SPF/Makefile @@ -4,7 +4,7 @@ PORTNAME= Mail-SPF PORTVERSION= 2.9.0 DISTVERSIONPREFIX= v -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -23,10 +23,11 @@ RUN_DEPENDS= p5-Error>=0:lang/p5-Error \ p5-URI>=1.13:net/p5-URI TEST_DEPENDS= p5-Test-Pod>=1:devel/p5-Test-Pod +USES= perl5 shebangfix +USE_PERL5= modbuild + CONFIGURE_ARGS= --install_path sbin=${PREFIX}/sbin NO_ARCH= yes -USE_PERL5= modbuild -USES= perl5 shebangfix SHEBANG_FILES= bin/spfquery sbin/spfd diff --git a/mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm b/mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm new file mode 100644 index 000000000000..233466ba2643 --- /dev/null +++ b/mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm @@ -0,0 +1,10 @@ +--- lib/Mail/SPF/Record.pm.orig 2013-07-22 03:52:32 UTC ++++ 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/ + ^ -- cgit v1.2.3