[packages/spamassassin] - rel 2; netdns fix; create pid file at /var/run/spamassassin.pid

arekm arekm at pld-linux.org
Thu Jul 21 19:03:37 CEST 2016


commit 13d47961ce798e1c3d081ef19876f7729d9497ed
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jul 21 19:03:32 2016 +0200

    - rel 2; netdns fix; create pid file at /var/run/spamassassin.pid

 spamassassin-3.4.1-netdns.patch | 12 ++++++++++++
 spamassassin-spamd.init         |  2 +-
 spamassassin.spec               |  6 ++++--
 3 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/spamassassin.spec b/spamassassin.spec
index 3fe7aed..bd52fed 100644
--- a/spamassassin.spec
+++ b/spamassassin.spec
@@ -13,7 +13,7 @@ Summary:	A spam filter for email which can be invoked from mail delivery agents
 Summary(pl.UTF-8):	Filtr antyspamowy, przeznaczony dla programów dostarczających pocztę (MDA)
 Name:		spamassassin
 Version:	3.4.1
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Applications/Mail
 Source0:	http://ftp.ps.pl/pub/apache//spamassassin/source/%{pdir}-%{pnam}-%{version}.tar.bz2
@@ -26,6 +26,7 @@ Source5:	sa-update.sh
 Source6:	sa-update.cron
 Source7:	spamassassin-official.conf
 Source8:	sought.conf
+Patch0:		spamassassin-3.4.1-netdns.patch
 URL:		http://spamassassin.apache.org/
 BuildRequires:	openssl-devel >= 0.9.7d
 BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.16
@@ -260,6 +261,7 @@ aplikacji do czytania poczty.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 # for spamc/configure
@@ -279,7 +281,7 @@ export CFLAGS="%{rpmcflags}"
 %{__sed} -e "s,@@LOCAL_STATE_DIR@@,$(pwd)," sa-compile.raw > sa-compile.pl
 %{__perl} -T sa-compile.pl --siteconfigpath=rules
 
-%{?with_tests:%{__make} -j1 test}
+%{?with_tests:%{__make} -j1 TEST_VERBOSE=1 test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/spamassassin-3.4.1-netdns.patch b/spamassassin-3.4.1-netdns.patch
new file mode 100644
index 0000000..8a37352
--- /dev/null
+++ b/spamassassin-3.4.1-netdns.patch
@@ -0,0 +1,12 @@
+diff -Nur Mail-SpamAssassin-3.4.1.orig/lib/Mail/SpamAssassin/DnsResolver.pm Mail-SpamAssassin-3.4.1/lib/Mail/SpamAssassin/DnsResolver.pm
+--- Mail-SpamAssassin-3.4.1.orig/lib/Mail/SpamAssassin/DnsResolver.pm	2015-04-28 13:56:49.000000000 -0600
++++ Mail-SpamAssassin-3.4.1/lib/Mail/SpamAssassin/DnsResolver.pm	2016-06-11 13:55:15.380517343 -0600
+@@ -592,6 +592,8 @@
+   };
+ 
+   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) {
diff --git a/spamassassin-spamd.init b/spamassassin-spamd.init
index 404ea98..615819c 100644
--- a/spamassassin-spamd.init
+++ b/spamassassin-spamd.init
@@ -42,7 +42,7 @@ start() {
 	fi
 
 	msg_starting "SpamAssassin"
-	daemon /usr/bin/spamd $SPAMD_OPTS
+	daemon /usr/bin/spamd -r /var/run/spamassassin.pid $SPAMD_OPTS
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/spamd
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/spamassassin.git/commitdiff/13d47961ce798e1c3d081ef19876f7729d9497ed



More information about the pld-cvs-commit mailing list