From cd981f32acc0dc0214ffcfc8b3b145822ac4b209 Mon Sep 17 00:00:00 2001 From: webbuilder_pel7ppc64bebuilder0 Date: Sun, 28 Oct 2018 10:52:13 +0100 Subject: [PATCH] spamassassin-iXhash2 package update Signed-off-by: webbuilder_pel7ppc64bebuilder0 --- SOURCES/spamassassin-iXhash2-2.05-conf.patch | 33 +++++++ SOURCES/spamassassin-iXhash2.eml | 21 +++++ SPECS/spamassassin-iXhash2.spec | 96 ++++++++++++++++++++ 3 files changed, 150 insertions(+) create mode 100644 SOURCES/spamassassin-iXhash2-2.05-conf.patch create mode 100644 SOURCES/spamassassin-iXhash2.eml create mode 100644 SPECS/spamassassin-iXhash2.spec diff --git a/SOURCES/spamassassin-iXhash2-2.05-conf.patch b/SOURCES/spamassassin-iXhash2-2.05-conf.patch new file mode 100644 index 0000000..648ec98 --- /dev/null +++ b/SOURCES/spamassassin-iXhash2-2.05-conf.patch @@ -0,0 +1,33 @@ +Patch by Robert Scheck for iXhash2 >= 2.05 which +sets some useful defaults based on Mail::SpamAssassin::Plugin::iXhash2. + +--- iXhash2-2.05/iXhash2.cf 2012-07-08 13:29:31.000000000 +0200 ++++ iXhash2-2.05/iXhash2.cf.conf 2017-12-05 23:44:34.000000000 +0100 +@@ -1,20 +1,17 @@ ++# iXhash computes MD5 checksums of fragments of the body of an e-mail ++# and compares them to those of known spam using DNS queries to a RBL- ++# like name server. So it works similar to the standard plugins that ++# use the Pyzor, Razor and DCC software packages. + + # Note: loadplugin should really go into local.pre or so +-loadplugin Mail::SpamAssassin::Plugin::iXhash2 iXhash2.pm ++loadplugin Mail::SpamAssassin::Plugin::iXhash2 + + ifplugin Mail::SpamAssassin::Plugin::iXhash2 + +-ixhashdnsbl GENERIC_IXHASH generic.ixhash.net. +-body GENERIC_IXHASH eval:check_ixhash('GENERIC_IXHASH') +-tflags GENERIC_IXHASH net +- + ixhashdnsbl NIXSPAM_IXHASH ix.dnsbl.manitu.net. + body NIXSPAM_IXHASH eval:check_ixhash('NIXSPAM_IXHASH') ++describe NIXSPAM_IXHASH http://www.nixspam.org/ + tflags NIXSPAM_IXHASH net +- +-ixhashdnsbl SEM_IXHASH ixhash.spameatingmonkey.net. +-body SEM_IXHASH eval:check_ixhash('SEM_IXHASH') +-tflags SEM_IXHASH net ++score NIXSPAM_IXHASH 3.0 + + endif +- diff --git a/SOURCES/spamassassin-iXhash2.eml b/SOURCES/spamassassin-iXhash2.eml new file mode 100644 index 0000000..5b15311 --- /dev/null +++ b/SOURCES/spamassassin-iXhash2.eml @@ -0,0 +1,21 @@ +From: "iXhash plugin test mail" +Message-ID: +To: admin@testsite.com +Subject: iXhash plugin test mail + + + + + + + + This is an e-mail designed to test the iXhash plugin's functionality.
+
+ If you run this mail through SpamAssassin (using 'spamassassin -D IXHASH < iXhash.eml', you should see the plugin score with the list 'generic.ixhash.net'.
+ This is because the hashes this mail generates ( cbdc00eaaf002aad4448b75f47a9784f and 464d43b6999bdbdf6071b8b1d3f9a525 ) are permanently listed on that list.
+ Apart from that this mail is of no use.
+
+ + + + diff --git a/SPECS/spamassassin-iXhash2.spec b/SPECS/spamassassin-iXhash2.spec new file mode 100644 index 0000000..f807be3 --- /dev/null +++ b/SPECS/spamassassin-iXhash2.spec @@ -0,0 +1,96 @@ +%global pkgname iXhash2 + +Summary: SpamAssassin plugin to lookup e-mail checksums in blacklists +Name: spamassassin-%{pkgname} +Version: 2.05 +Release: 14%{?dist} +License: ASL 2.0 +Group: Applications/Internet +URL: http://mailfud.org/%{pkgname}/ +Source0: http://mailfud.org/%{pkgname}/%{pkgname}-%{version}.tar.gz +Source1: spamassassin-iXhash2.eml +Patch0: spamassassin-iXhash2-2.05-conf.patch +Requires: spamassassin >= 3.2 +Provides: spamassassin-iXhash = 1.5.5-2 +Obsoletes: spamassassin-iXhash < 1.5.5-2 +BuildRequires: %{_bindir}/perldoc +BuildRequires: perl-generators +BuildArch: noarch + +%description +iXhash2 is an unofficial improved version of the iXhash spam filter +plugin for SpamAssassin, adding async DNS lookups for performance and +removing unneeded features but fully compatible with the iXhash 1.5.5 +(https://sourceforge.net/projects/ixhash/) implementation. It computes +MD5 checksums of fragments of the body of an e-mail and compares them +to those of known spam using DNS queries to a RBL-like name server. So +it works similar to the standard plugins that use the Pyzor, Razor and +DCC software packages from within SpamAssassin. + +%prep +%setup -q -n %{pkgname}-%{version} +%patch0 -p1 -b .conf +cp -pf %{SOURCE1} iXhash2.eml + +%build + +%install +install -D -p -m 644 %{pkgname}.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf +touch -c -r %{pkgname}.cf.conf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf +install -D -p -m 644 %{pkgname}.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ +perldoc %{pkgname}.pm > $RPM_BUILD_ROOT%{_mandir}/man3/Mail::SpamAssassin::Plugin::%{pkgname}.3pm + +%files +%license LICENSE +%doc CHANGELOG README iXhash2.eml +%config(noreplace) %{_sysconfdir}/mail/spamassassin/%{pkgname}.cf +%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm +%{_mandir}/man3/*.3pm* + +%changelog +* Sat Jul 14 2018 Fedora Release Engineering - 2.05-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 2.05-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Dec 06 2017 Robert Scheck 2.05-12 +- Remove retired iXhash blacklists from default configuration + +* Thu Jul 27 2017 Fedora Release Engineering - 2.05-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 2.05-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 2.05-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 2.05-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 2.05-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 2.05-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 2.05-5 +- Perl 5.18 rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 2.05-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 2.05-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jul 12 2012 Robert Scheck 2.05-2 +- Added missing perldoc requirement (#838327 #c3) + +* Sun Jul 08 2012 Robert Scheck 2.05-1 +- Switched to iXhash2 2.05 (#838327) + +* Fri Nov 12 2010 Robert Scheck 1.5.5-1 +- Upgrade to 1.5.5 +- Initial spec file for Fedora and Red Hat Enterprise Linux