pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/spamassassin Add patch to fix SA working with >=N...
details: https://anonhg.NetBSD.org/pkgsrc/rev/45e2d012b2c9
branches: trunk
changeset: 354795:45e2d012b2c9
user: roy <roy%pkgsrc.org@localhost>
date: Thu Nov 10 20:25:50 2016 +0000
description:
Add patch to fix SA working with >=Net::DNS-1.01, taken from upstream.
diffstat:
mail/spamassassin/Makefile | 6 +-
mail/spamassassin/distinfo | 3 +-
mail/spamassassin/patches/patch-lib_Mail_SpamAssassin_DnsResolver.pm | 16 ++++++++++
3 files changed, 21 insertions(+), 4 deletions(-)
diffs (60 lines):
diff -r 53c18498d8dd -r 45e2d012b2c9 mail/spamassassin/Makefile
--- a/mail/spamassassin/Makefile Thu Nov 10 14:00:17 2016 +0000
+++ b/mail/spamassassin/Makefile Thu Nov 10 20:25:50 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.126 2016/11/02 21:09:02 roy Exp $
+# $NetBSD: Makefile,v 1.127 2016/11/10 20:25:50 roy Exp $
DISTNAME= Mail-SpamAssassin-3.4.1
PKGNAME= spamassassin-3.4.1
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:=spamassassin/source/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -36,7 +36,7 @@
DEPENDS+= p5-Mail-SPF-[0-9]*:../../mail/p5-Mail-SPF
#DEPENDS+= {p5-MIME-Base64>=2.11,perl>=5.8.0}:../../converters/p5-MIME-Base64
DEPENDS+= p5-NetAddr-IP>=4.007:../../net/p5-NetAddr-IP
-DEPENDS+= p5-Net-DNS>=0.58:../../net/p5-Net-DNS
+DEPENDS+= p5-Net-DNS>=1.01:../../net/p5-Net-DNS
#DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes
DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
DEPENDS+= re2c>=0.13.6:../../devel/re2c
diff -r 53c18498d8dd -r 45e2d012b2c9 mail/spamassassin/distinfo
--- a/mail/spamassassin/distinfo Thu Nov 10 14:00:17 2016 +0000
+++ b/mail/spamassassin/distinfo Thu Nov 10 20:25:50 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.68 2016/02/05 16:08:54 prlw1 Exp $
+$NetBSD: distinfo,v 1.69 2016/11/10 20:25:50 roy Exp $
SHA1 (Mail-SpamAssassin-3.4.1.tar.gz) = e7b342d30f4983f70f4234480b489ccc7d2aa615
RMD160 (Mail-SpamAssassin-3.4.1.tar.gz) = 4b7d6a6def068eb015e8d4699db410ade76b28f3
@@ -11,6 +11,7 @@
SHA1 (patch-Makefile.PL) = d322d7fb7286d5cf87ca775f9c381db32626e060
SHA1 (patch-README) = 5d2aaecc4791e4f76df1078c17036cc23a39a8d0
SHA1 (patch-ae) = d46b1d8f56c8c61936c307f74b39a49da1b1f353
+SHA1 (patch-lib_Mail_SpamAssassin_DnsResolver.pm) = 129386c70010f6005ff93d4c237c219fe5b8a4a9
SHA1 (patch-sa-compile) = e8a92060eefbc1c95b7b2c674fc69686a66f230b
SHA1 (patch-sa-update) = 59cba1287051042fc7f510f5e5ef462e2ee8d034
SHA1 (patch-spamd_netbsd-rc-script.sh) = 192fc1876ee30a4475c0efd9be6340e87d9fa2f4
diff -r 53c18498d8dd -r 45e2d012b2c9 mail/spamassassin/patches/patch-lib_Mail_SpamAssassin_DnsResolver.pm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamassassin/patches/patch-lib_Mail_SpamAssassin_DnsResolver.pm Thu Nov 10 20:25:50 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_Mail_SpamAssassin_DnsResolver.pm,v 1.5 2016/11/10 20:25:50 roy Exp $
+
+Taken from upstream to fix using newer Net::DNS
+
+--- lib/Mail/SpamAssassin/DnsResolver.pm.orig 2016-11-10 20:06:02.000000000 +0000
++++ lib/Mail/SpamAssassin/DnsResolver.pm
+@@ -592,6 +592,9 @@ sub new_dns_packet {
+ };
+
+ if ($packet) {
++ # RD flag needs to be set explicitly since Net::DNS 1.01, Bug 7223
++ $packet->header->rd(1);
++
+ # my $udp_payload_size = $self->{res}->udppacketsize;
+ my $udp_payload_size = $self->{conf}->{dns_options}->{edns};
+ if ($udp_payload_size && $udp_payload_size > 512) {
Home |
Main Index |
Thread Index |
Old Index