summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2015-02-27 23:30:44 +0000
committerMichael Orlitzky <mjo@gentoo.org>2015-02-27 23:30:44 +0000
commit303edd77125ddedb8b02692aa55a1faaab802877 (patch)
treec054a176c82fd01c0c3541ec2ae7948a460d11a4 /mail-filter
parentFallback to automatic libiconv detection (bug #541566 by Allen Parker). (diff)
downloadhistorical-303edd77125ddedb8b02692aa55a1faaab802877.tar.gz
historical-303edd77125ddedb8b02692aa55a1faaab802877.tar.bz2
historical-303edd77125ddedb8b02692aa55a1faaab802877.zip
Revbump to fix bug #541100. Thanks to Markus Oehme for the report and the fix.
Package-Manager: portage-2.2.14/cvs/Linux x86_64 Manifest-Sign-Key: 0x6F48D3DA05C2DADB!
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamassassin/ChangeLog9
-rw-r--r--mail-filter/spamassassin/Manifest26
-rw-r--r--mail-filter/spamassassin/files/net-dns-0.76_compatibility.patch39
-rw-r--r--mail-filter/spamassassin/metadata.xml13
-rw-r--r--mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild219
5 files changed, 294 insertions, 12 deletions
diff --git a/mail-filter/spamassassin/ChangeLog b/mail-filter/spamassassin/ChangeLog
index 66d113b17c54..30e9bce832ff 100644
--- a/mail-filter/spamassassin/ChangeLog
+++ b/mail-filter/spamassassin/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-filter/spamassassin
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.260 2015/02/26 19:00:42 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.261 2015/02/27 23:30:33 mjo Exp $
+
+*spamassassin-3.4.0-r1 (27 Feb 2015)
+
+ 27 Feb 2015; Michael Orlitzky <mjo@gentoo.org>
+ +files/net-dns-0.76_compatibility.patch, +spamassassin-3.4.0-r1.ebuild,
+ metadata.xml:
+ Revbump to fix bug #541100. Thanks to Markus Oehme for the report and the fix.
26 Feb 2015; Markus Meier <maekke@gentoo.org> spamassassin-3.4.0.ebuild:
arm stable, bug #537464
diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest
index 1b9c46f9dac8..42562c5d375d 100644
--- a/mail-filter/spamassassin/Manifest
+++ b/mail-filter/spamassassin/Manifest
@@ -3,6 +3,7 @@ Hash: SHA256
AUX 3.0.0-spamd.conf 1523 SHA256 02e2625617215f61909bbac603e1aa4846d8a99cc93d14cbf0f5212f9809159f SHA512 224d72d0ca118d419d8c2af7b00cd16c76896ebcff1860bcdc7172d104a9be419adc09fd25ef7ce76e2bc0a0411ef9c46ed9cdee405ad9222dee4ca2e6fe6388 WHIRLPOOL 977a5075298728b3022604fd24fe41649e29f7fc4a0391c819608c8acfbcd9f79f7d15f24c069eae2b334fd570fe6abe0b0c8c8ce877244727bef84e908d9094
AUX 3.3.1-spamd.init 1076 SHA256 6d7fc294587625cd6f790dacede74cbafd6d86dbefbe4fcf33bfa40e8e918678 SHA512 1596199958b170b48c344324412f835e45e1a48e17be66a1e383c7cd2d906d17f80d906b51b3d09035ce9849e4090fce9ce58f42937738995d91dec64415a820 WHIRLPOOL 3dd0767ba317fc499c9b1ba234223456a6d9375f1dec0c13911ed66b4594aa79bd50271fdb922c364d3f7fb72da01555b5adae2acbe991d2b9d6b4773954566b
+AUX net-dns-0.76_compatibility.patch 1958 SHA256 bb328f92e6bec18bd351fc52e711c9d23b09911592ddeaed43601c4ce5c46445 SHA512 ea1eb17255accbca2a1280e94dbe5853886f6bf9ca9e41546c2425921586fc6cd05b043ddd312fd3d9c105902d3817ca304a4c8cee443da4bdff0abf20f67069 WHIRLPOOL 832f63e742639233e77a9afd334053ba6c32a40c7d855ecc36a6db1d6ac4f871a23bd0e398d73b6e9b7ee6ff48ee319110751d8174e0462942ff70c407189268
AUX secrets.cf 664 SHA256 9f134c7b857b21689f612fc6d131f719e5a65e2ba341b282e7aa57402c854139 SHA512 bb6992098a44e16147be46b75b70e3fb81672285dd71a30719606e2cab556720fc9dd318c7a80832ceaf2e6d9c98c2dd7434f48242feede1922c3e1073559edb WHIRLPOOL 1eccfd765106199312fb23581612b810b92fe8cc3e94b9c4964bcf550ac68bab1e88af07d5324a2be11111cf04f941f4bcfe5482bc71c72ef5ab35be53512ebc
AUX spamassassin-3.3.2-binary_token.patch 465 SHA256 170ffed8831f7e45d7e50fda774dccd2482f4652c733e419c664d04b3208f37f SHA512 0e101c9792bc1cc6123fa1546e2d412b23bd9811541f18454182871995ad4436916e038be2352774c313e61c6decf99c7b378b3e107dfd05fbeedb75a65ce6ad WHIRLPOOL 88739e51bba39242dfba9adc437a06922f1c9f43e7bc5988c3e6cccc3da937949b634567824587c5c366ff0a4f30b68631f14faf0425f05cd068380d87c83dbc
AUX spamassassin-3.3.2-innodb.patch 4749 SHA256 d40a72692f9b7161f2a332189e68cfd5486b69a4d2e9fdea9d23d6ae7bd7fd10 SHA512 8d72542f1853eee35a9fb8a3127bd8a3a3aeb2ee0b30e1f15a7c45f7a1d81054c50c57a9b8109c9348dbdbe1a084a0932bc9efa8a5516da92142bd8371ed2ecd WHIRLPOOL 7f58df175bb6cef1d970577960e29077ae2172d74bda30dd7c47283df4e7dfbbe8f44045259531659f2eddc748b3f05853aca5c62f90949c6a22d3287a90495c
@@ -14,13 +15,26 @@ AUX spamassassin.service.conf 333 SHA256 b6f942eb15f2476dbd161db92b8dacec43f2a06
DIST Mail-SpamAssassin-3.3.2.tar.bz2 1006577 SHA256 c7239b4b4ef04ba5e2d5aedb9156850146ed3fa47c88f0a0757f08e22f93a205 SHA512 3baabfacd2f3ac1debc2bbcdc0b2109ad51f6b176b9a6d037e14999c430150f0922469f777e7d35311ab819eb20905b55c00aa58f1c3c8d5f881d173dd441cbd WHIRLPOOL 5751d7285ffd29c041056f15ff6c85f66ecf6b9e806558623716ad8826124e1f92096f0e8b00016158b4a965927bde7e9e5ed48984ee956906175431e8a45ee5
DIST Mail-SpamAssassin-3.4.0.tar.bz2 1065544 SHA256 553b39bae969b4ba20854c0a0fa1eba2a6aa0f4e103b530e0da4e152cdce4714 SHA512 4a04604a0331a9c23cd10d4fb58e5ca5d3e592bbeffacf0f89b379e5b46118f8b1500d671606a2407115f90fb633a713c8ed557f0db155f4645e263175b0946c WHIRLPOOL 401d61a0ab8bd906b14effb0125aeb3b1a87cdd115484b0787410a03208208e6dfb3c7a440c82ff2334c093555ac7e4eae8b9fc735de5e503f1396a172cec927
EBUILD spamassassin-3.3.2-r5.ebuild 7256 SHA256 c0fe3ae4dfb105f1a569edc4dfd17b2f067469ff8535a3bc51707516565ecb17 SHA512 a5302b95cbeabffa8372cea671718a3829761eeda7a5e4ee07f82987d356993d37efb48cd4389fe0ebd8ea745f119427c0b8fa5ef0e98a7d0498f792f55ef553 WHIRLPOOL a31a700d58922a4edbe14b65ad61d2f1ea5c3939b832ae4cd7e95462af621fce1dc995bdbe3933bf9674dd9675eb6a83b2417170635faa92d507aa73719c4227
+EBUILD spamassassin-3.4.0-r1.ebuild 6668 SHA256 0733b7052fb5fd9f8b546b7d668c39473091d3ad22e546dbf3c22bfb8c825af8 SHA512 dc4da41f272a50c547ecfd31d0f1bb418d4096edea6546505a6514a6b292f83c05a7c66ec533062bba8ecd222a8a600d91c9dfee9b18435277ed0fc2bd51bb92 WHIRLPOOL 1f84bda1afddcac60809dba493bee707fc2b68bdf01fb504ce7fd7e0a845efaccec9c250ea58e65dabd31ead7f889a94cc4ae2d7c22b348273d357608642542c
EBUILD spamassassin-3.4.0.ebuild 6814 SHA256 87b281405db443c48731c9b8d227c1dae5fd8ad04b92d90728610d44a722d64c SHA512 80421bd082c595ae7c4c011e3d6dd3c1b1f34264fa3263c88702ce4914237d28fcef1338631ebcf5dde3f9dec2e01da0d5231be1e2e513fbf8caf587857617c7 WHIRLPOOL f66896c5cfa495c64724c9a8a9c64fbab8752a10dfc596b99ee542fd7c2469477dde0f6523d9da36251fe33b68a4f9cd94c7c5a4a380f3e558f93165f27eacf3
-MISC ChangeLog 48833 SHA256 20000fbce78e4756efe7c0acd76798583d72a9727b17d78d35cf42e2f766eccd SHA512 51428d6a29124fb01a23ec7445f32c92af89da7fa83f5d6fbe722299cbaad92060efcc65fcd7adc61d60eec02f058daf3ab01e94761aab1ecc05eed8fa57220a WHIRLPOOL 3f5791ef8e5ab82c59f1d6cd435ae5e565bf32540c2bbbac234a522f69042aee6497a81b6db5fc34a7b356b07bf8085390dd9acb7bd42cd9c7573ee6504ba6fa
-MISC metadata.xml 318 SHA256 d3b11832e2f16b407a81b40ae5d9fad6f9ee6c1d05aaf3ceba10f73587b57a1b SHA512 798d87344a3f9ebb71402ce04a10637210d2c64a185ce171ad90b8bfadb04d1e3d97628901c586283f98271b7e804c9670270ba840c8dd35d536f306dbeee3c5 WHIRLPOOL d5367b39d84321ede6fa5a6d5b1969b6a8e876cf613c743220cbf28421eb2f8ab7c4721761a1e0c05572a03ec01d5aa5758b283883abc78be051d7fc0a8fbfb1
+MISC ChangeLog 49089 SHA256 6ac39a3c5014b562ca850bd800b0a2cee49a5622d09cb0fcc38646e6a7f67a10 SHA512 83d48d1ba03afcb5f06642e4aea3358f764cc2d88b023e38c6746ba662db7999ab703dab16f7a803c03085af6f419b99f3cbcc33c1d62a1d0e36f5abd7dfe1ed WHIRLPOOL aab11cabb638359c8b135915084d6db99b8baed8cd0f27e3e805dd89383a90bfe91d174cc9baa6f968f42cf9ff4ba2ceb2e1b587003937328517765af2cd499c
+MISC metadata.xml 441 SHA256 473af2c203113f5a0d3278b0463629db003fd3f8ae35b0a7bb4708da70ddb8d3 SHA512 00da607df1ad621ae35b2e9f6b4578c20a5e5ee359485fd4e47de4ad043ecda2505e9d57bdb26e608f2134f83e60e43855acb53aae91c0b909fa1087383c9134 WHIRLPOOL ecc66cb8342ef2d7d734d51ee42bcb1a00e795d0a4a28b2d616fe0d0991eb7b399b19b090d6e641fb72351dd8b2f5d45d239bb5a9adedefdd1882c1ec418e302
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
+Version: GnuPG v2.0
-iEYEAREIAAYFAlTvbV0ACgkQkKaRLQcq0GI7egCePrnzGh44Nium2nBXzd8tUQYY
-btoAn0yLynFuaxrqwhNSWkra2Mz/q16w
-=Oyox
+iQJ8BAEBCABmBQJU8P4dXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxNEU5RDcyRDdCMUFGREVGQzBCNDFDMUY2
+RjQ4RDNEQTA1QzJEQURCAAoJEG9I09oFwtrb6HIP/3TyIAGlRP7hYcYFGeAvtc/F
+EbMu7NA13K+sUHtulzP3pIdQ8hOoTbDYz888+LP8/ivUymgz9lPgCTJbu28XF/dA
+T0vpMxKm+NiCVMCQbb6VEnUP2vZ9E50En7lQEcu4ay+2HG6fKKFhYkDceu2TaiHw
+EzFLHwz+5U1UbEMykxd2Ot94Oy9i9BeGt/uR/sJikvKi4hu2lgYM7rzBbeBV8pYH
+bLwdhp492ONOFwYk8gqjDkLGRrDPeJQT65Cm6p6HRJmUilt7tyUSzfauAKAQW/jP
+KuTfiU+HrUm6WxGcRciiTCg0kG36lUtRU/xvDPt8vneagxNwTqBXqwB4yHk/qJvm
+p7VSET92d4xBThS8dQtaakSLrTuPQkJmxSefOMJtpwGSlN/Oc/3sxXMQy65idmsy
+EWxvkU9aFdlCkx4YDULyKSGwpBVDyX0Kopsvb0uOrG2l0CxmY7Qx95mgklHe4wZ9
+XAsjAzbpCoCmHneFxLZ+Z4Lh6oKHpEXn/QQF6NOkeEnYd8dkY7+QajqTnOHfjh8d
+5pgfOwzZ+ysyTaUfCz4Pqy6XRz9tkWUiP5KJyMgxtRHp/dqyUyZABlfGFZHrp41U
+GTkvcBxTYJh1y5wJg5YSe3b48OVhBMAGo5V806C/1rStjifQIcbhlNwToosQP386
+ona19V7z0M6YZVu+iXdu
+=Q7EU
-----END PGP SIGNATURE-----
diff --git a/mail-filter/spamassassin/files/net-dns-0.76_compatibility.patch b/mail-filter/spamassassin/files/net-dns-0.76_compatibility.patch
new file mode 100644
index 000000000000..2d882313848e
--- /dev/null
+++ b/mail-filter/spamassassin/files/net-dns-0.76_compatibility.patch
@@ -0,0 +1,39 @@
+From the upstream bug report at,
+
+ https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7057
+
+Net::DNS version 0.76 changed the field name holding a set of nameservers
+in a Net::DNS::Resolver object: it used to be 'nameservers',
+but is now split into two fields: 'nameserver4' and 'nameserver6'.
+
+Mail/SpamAssassin/DnsResolver.pm relied on the internal field name
+of a Net::DNS::Resolver object to obtain a default list of
+recursive name servers, so the change in Net::DNS broke that.
+
+As a result, SpamAssassin now fails DNS checks and reports:
+ dns: eval failed: available_nameservers: No DNS servers available!
+when used with Net::DNS 0.76 or later and no DNS servers are
+configured explicitly in a custom .cf file (config option: dns_server).
+
+The problem was reported by Walter Hurry on a mailing list, 2014-06-17.
+
+The solution is to use an official access method to obtain this
+information from Net::DNS::Resolver. Apparently early versions
+of Net::DNS lacked such official access method, which is why we
+needed to peek under the Net::DNS hood.
+
+--- spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm 2014/06/18 16:47:04 1603517
++++ spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm 2014/06/18 16:48:04 1603518
+@@ -204,8 +204,10 @@
+ @ns_addr_port = @{$self->{conf}->{dns_servers}};
+ dbg("dns: servers set by config to: %s", join(', ',@ns_addr_port));
+ } elsif ($res) { # default as provided by Net::DNS, e.g. /etc/resolv.conf
+- @ns_addr_port = map(untaint_var("[$_]:" . $res->{port}),
+- @{$res->{nameservers}});
++ my @ns = $res->UNIVERSAL::can('nameservers') ? $res->nameservers
++ : @{$res->{nameservers}};
++ my $port = $res->UNIVERSAL::can('port') ? $res->port : $res->{port};
++ @ns_addr_port = map(untaint_var("[$_]:" . $port), @ns);
+ dbg("dns: servers obtained from Net::DNS : %s", join(', ',@ns_addr_port));
+ }
+ return @ns_addr_port;
diff --git a/mail-filter/spamassassin/metadata.xml b/mail-filter/spamassassin/metadata.xml
index b422644865ec..822c9ad63fc5 100644
--- a/mail-filter/spamassassin/metadata.xml
+++ b/mail-filter/spamassassin/metadata.xml
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer>
- <email>maintainer-needed@gentoo.org</email>
- </maintainer>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
<use>
- <flag name='qmail'>Build qmail functionality and docs</flag>
+ <flag name='qmail'>Build qmail functionality and docs</flag>
+ <flag name='bayes'>
+ Require a database (MySQL, SQLite, Postgres, or BerkDB) backend to
+ enable the Bayesian filtering database.
+ </flag>
</use>
</pkgmetadata>
-
diff --git a/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild b/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild
new file mode 100644
index 000000000000..3cc06507e56d
--- /dev/null
+++ b/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild
@@ -0,0 +1,219 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild,v 1.1 2015/02/27 23:30:33 mjo Exp $
+
+EAPI=5
+
+inherit perl-module toolchain-funcs eutils systemd readme.gentoo
+
+MY_P=Mail-SpamAssassin-${PV//_/-}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="An extensible mail filter which can identify and tag spam"
+HOMEPAGE="http://spamassassin.apache.org/"
+SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2"
+
+LICENSE="Apache-2.0 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="+bayes berkdb qmail ssl doc ldap mysql postgres sqlite ipv6"
+
+# You can do without a database unless you need the Bayes features.
+REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )"
+
+DEPEND=">=dev-lang/perl-5.8.8-r8
+ virtual/perl-MIME-Base64
+ >=virtual/perl-Pod-Parser-1.510.0-r2
+ virtual/perl-Storable
+ virtual/perl-Time-HiRes
+ >=dev-perl/HTML-Parser-3.43
+ >=dev-perl/Mail-DKIM-0.37
+ >=dev-perl/Net-DNS-0.53
+ dev-perl/Digest-SHA1
+ dev-perl/libwww-perl
+ >=virtual/perl-Archive-Tar-1.23
+ app-crypt/gnupg
+ >=virtual/perl-IO-Zlib-1.04
+ >=dev-util/re2c-0.12.0
+ dev-perl/Mail-SPF
+ >=dev-perl/NetAddr-IP-4.0.1
+ dev-perl/Geo-IP
+ dev-perl/Encode-Detect
+ dev-perl/Net-Patricia
+ ssl? (
+ dev-perl/IO-Socket-SSL
+ dev-libs/openssl
+ )
+ berkdb? (
+ virtual/perl-DB_File
+ )
+ ldap? ( dev-perl/perl-ldap )
+ mysql? (
+ dev-perl/DBI
+ dev-perl/DBD-mysql
+ )
+ postgres? (
+ dev-perl/DBI
+ dev-perl/DBD-Pg
+ )
+ sqlite? (
+ dev-perl/DBI
+ dev-perl/DBD-SQLite
+ )
+ ipv6? (
+ || ( dev-perl/IO-Socket-INET6
+ virtual/perl-IO-Socket-IP )
+ )"
+RDEPEND="${DEPEND}"
+
+SRC_TEST="do"
+
+src_prepare() {
+ epatch "${FILESDIR}/net-dns-0.76_compatibility.patch"
+}
+
+src_configure() {
+ # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again
+ # (just to be sure, nobody knows how it could happen in the first place).
+ myconf="SYSCONFDIR=${EPREFIX}/etc"
+ myconf+=" DATADIR=${EPREFIX}/usr/share/spamassassin"
+
+ # If ssl is enabled, spamc can be built with ssl support.
+ if use ssl; then
+ myconf+=" ENABLE_SSL=yes"
+ else
+ myconf+=" ENABLE_SSL=no"
+ fi
+
+ # Set the path to the Perl executable explictly. This will be used to
+ # create the initial sharpbang line in the scripts and might cause
+ # a versioned app name end in there, see
+ # <http://bugs.gentoo.org/show_bug.cgi?id=62276>
+ myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl"
+
+ # Setting the following env var ensures that no questions are asked.
+ perl-module_src_configure
+ # Configure spamc
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile
+}
+
+src_compile() {
+ export PERL_MM_USE_DEFAULT=1
+
+ # Now compile all the stuff selected.
+ perl-module_src_compile
+
+ if use qmail; then
+ emake spamc/qmail-spamc
+ fi
+}
+
+src_install () {
+ perl-module_src_install
+
+ # Create the stub dir used by sa-update and friends
+ keepdir /var/lib/spamassassin
+
+ # Move spamd to sbin where it belongs.
+ dodir /usr/sbin
+ mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed"
+
+ if use qmail; then
+ dobin spamc/qmail-spamc
+ fi
+
+ ln -s mail/spamassassin "${ED}"/etc/spamassassin || die
+
+ # Disable plugin by default
+ sed -i -e 's/^loadplugin/\#loadplugin/g' \
+ "${ED}"/etc/mail/spamassassin/init.pre \
+ || die "failed to disable plugins by default"
+
+ # Add the init and config scripts.
+ newinitd "${FILESDIR}"/3.3.1-spamd.init spamd
+ newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd
+
+ systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
+ systemd_install_serviced "${FILESDIR}"/${PN}.service.conf
+
+ if use postgres; then
+ sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die
+
+ dodoc sql/*_pg.sql
+ else
+ sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die
+ fi
+
+ if use mysql; then
+ sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die
+
+ dodoc sql/*_mysql.sql
+ else
+ sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die
+ fi
+
+ dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \
+ sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \
+ sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \
+ spamd-apache2/README.apache
+
+ # Rename some docu files so they don't clash with others
+ newdoc spamd/README README.spamd
+ newdoc sql/README README.sql
+ newdoc ldap/README README.ldap
+
+ if use qmail; then
+ dodoc spamc/README.qmail
+ fi
+
+ insinto /etc/mail/spamassassin/
+ insopts -m0400
+ newins "${FILESDIR}"/secrets.cf secrets.cf.example
+
+ cat <<-EOF > "${T}/local.cf.example"
+ # Sensitive data, such as database connection info, should be stored in
+ # /etc/mail/spamassassin/secrets.cf with appropriate permissions
+EOF
+
+ insopts -m0644
+ doins "${T}/local.cf.example"
+}
+
+pkg_postinst() {
+ elog "If you plan on using the -u flag to spamd, please read the notes"
+ elog "in /etc/conf.d/spamd regarding the location of the pid file."
+ elog
+ elog "If you build ${PN} with optional dependancy support,"
+ elog "you can enable them in /etc/mail/spamassassin/init.pre"
+ elog
+ elog "You need to configure your database to be able to use Bayes filter"
+ elog "with database backend, otherwise it will still use (and need) the"
+ elog "Berkeley DB support."
+ elog "Look at the sql/README.bayes file in the documentation directory"
+ elog "for how to configure it."
+ elog
+ elog "If you plan to use Vipul's Razor, note that versions up to and"
+ elog "including version 2.82 include a bug that will slow down the entire"
+ elog "perl interpreter. Version 2.83 or later fixes this."
+ elog "If you do not plan to use this plugin, be sure to comment out"
+ elog "its loadplugin line in /etc/mail/spamassassin/v310.pre."
+ elog
+ elog "The DKIM plugin is now enabled by default for new installs,"
+ elog "if the perl module Mail::DKIM is installed."
+ elog "However, installation of SpamAssassin will not overwrite existing"
+ elog ".pre configuration files, so to use DKIM when upgrading from a"
+ elog "previous release that did not use DKIM, a directive:"
+ elog
+ elog "loadplugin Mail::SpamAssassin::Plugin::DKIM"
+ elog "will need to be uncommented in file 'v312.pre', or added"
+ elog "to some other .pre file, such as local.pre."
+ elog
+ ewarn "Rules are no longer included with SpamAssassin out of the box".
+ ewarn "You will need to immediately run sa-update, or download"
+ ewarn "the additional rules .tgz package and run sa-update --install"
+ ewarn "with it, to get a ruleset."
+ elog
+ elog "If you run sa-update and receive a GPG validation error."
+ elog "Then you need to import an updated sa-update key."
+ elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt"
+ elog
+}