summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2014-09-28 18:01:28 +0000
committerMikle Kolyada <zlogene@gentoo.org>2014-09-28 18:01:28 +0000
commit1a5344475d59113bab26a4741d873c6ae48036d0 (patch)
treeb6833e6e278d796a0c07ca46b1d449e72cb0e804 /mail-filter
parentStable for amd64 wrt bug #521520 (diff)
downloadhistorical-1a5344475d59113bab26a4741d873c6ae48036d0.tar.gz
historical-1a5344475d59113bab26a4741d873c6ae48036d0.tar.bz2
historical-1a5344475d59113bab26a4741d873c6ae48036d0.zip
Drop old.
Package-Manager: portage-2.2.8-r2/cvs/Linux x86_64 Manifest-Sign-Key: 0xC42EB5D6
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamassassin/ChangeLog6
-rw-r--r--mail-filter/spamassassin/Manifest14
-rw-r--r--mail-filter/spamassassin/spamassassin-3.3.2-r2.ebuild220
-rw-r--r--mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild221
4 files changed, 11 insertions, 450 deletions
diff --git a/mail-filter/spamassassin/ChangeLog b/mail-filter/spamassassin/ChangeLog
index 3bdf0c59b8c8..469aa2574f25 100644
--- a/mail-filter/spamassassin/ChangeLog
+++ b/mail-filter/spamassassin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-filter/spamassassin
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.250 2014/09/28 17:59:32 zlogene Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.251 2014/09/28 18:01:23 zlogene Exp $
+
+ 28 Sep 2014; Mikle Kolyada <zlogene@gentoo.org> -spamassassin-3.3.2-r2.ebuild,
+ -spamassassin-3.3.2-r4.ebuild:
+ Drop old.
28 Sep 2014; Mikle Kolyada <zlogene@gentoo.org> spamassassin-3.4.0.ebuild:
Add ~alpha keyword wrt bug #521400
diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest
index 571a89de9a48..2664d09eee8b 100644
--- a/mail-filter/spamassassin/Manifest
+++ b/mail-filter/spamassassin/Manifest
@@ -13,18 +13,16 @@ AUX spamassassin.service-r1 323 SHA256 960eb0115ac4e70981f9a4350767e001cdabb244f
AUX spamassassin.service.conf 333 SHA256 b6f942eb15f2476dbd161db92b8dacec43f2a0664b45405f3e4396f23ab8b18d SHA512 d818e0ca5bfa9dadb94f99351a307f41c05bc46b89f55a03b9ba2fba0bd06fada06adf1a3eff949f3a04151f3680b279d78fba08c8f28873d17e4a4aa55edca4 WHIRLPOOL 9b5e5674223f99df7afb48482f12f4fa307677290833dd6d3285cdcb94bea1a632c76e8a99e7e38b556a61c20375389d5a370105d2d8c2d4f1de445340ab429d
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-r2.ebuild 7044 SHA256 9f003eb382b0305f5c9f55fd7a613b96de1229fbe62f40318b45473fd13e95de SHA512 977747d8ce0518ad66829d094c88893782b59a86e042572dd6b0963e31e510ec6e13f95b675630a238a2984cf7026cbe0062f6582483a32d3998399256759990 WHIRLPOOL d2f9facb48461285ebf3cac1b65f14b2aa5cef277c252b4179163b56810c4457bd0db92421d0614d1c53caed76741141b303dfea3079b2e4774b60226bc22f7b
-EBUILD spamassassin-3.3.2-r4.ebuild 7129 SHA256 37e5ee5aa6a60e88a2def29df40184995de1c21a7e469efbdc3872cae4c202fc SHA512 b2772ece42b2760b9af9f7bb0a827c686ce71e338b869dd8508cd52784ce1b79f2a030760d886abb1c57bbe8becf390d5db358a3efae3c5f949800ad9a758cd5 WHIRLPOOL bb31f0426e901343d4cf4a544a27138f92fcf1a22f3b51441ce67ab76764d13a87e639f7b1c610a839724d3ab9ba8eeb850bf47c656508164f92c17d75ed979f
EBUILD spamassassin-3.3.2-r5.ebuild 7226 SHA256 91a70a35d8f47f8f904dec4a8f30d5c91710c895c4a13cd51ce38e828d856372 SHA512 332b191e37a2e9806156115df5002e9a260b10d37224534ce2124a892b3c98e7ae29dcc97293c11586603f8aee389dff4a7a8730dfdb56a515482c2d4a5b16e5 WHIRLPOOL 3b4d377af8336ae2408bad1160f2402e681d65ec4b495fa550de59df31e8a3ef8bbec8abefab3a10dbdab41580b7624cc7010aa2b9ba9eb23ca14d86f10b3a54
EBUILD spamassassin-3.4.0.ebuild 6759 SHA256 cff96f20cd9d82f09a651114f0487d27f5d335b730d9c58b437c5af21acf809b SHA512 e35eb04e5b7a71e13d2d5b4ff4aec7ebf11e266798d16ee65553eac96507cf0683e38c7136d9b089a7f42e0d1843bdc5fddb46a5c547afca164acd23350f9160 WHIRLPOOL b9ff11c2fec7ca966e47ef244ff49e8e3c5bed256aec8b41f5535f66adee50ca59de831a568cf8674d2bdd34c531f85a9daad416e520e228fa35d78557e0f940
-MISC ChangeLog 47370 SHA256 90d344929720a52cd8a773fa910d9369a1bb37a00e2b12e40ee9b9c677899d08 SHA512 b48c2a7844cf41506673462385c04213b9552f5b036ed420304bc8d60d0d6dcf640628a73dd09ce5a4a471e2f4bf631b9c30e7e9885935d5466c28f8defe750b WHIRLPOOL 58ad1019a032e4011a4a4bf2324d6eefc79cf484268bbf75422fcf9df68637f23fb00fb3989adf5d836be44d3c347e17362b4aa05e06998aa4810a98416435f1
+MISC ChangeLog 47497 SHA256 9d23ad849d5cafdcb62a96bc9a1b80a62f9244f0e2835940caef22df89f49a5b SHA512 851cf914cd4052cff11592dcc2844537016ddd852d71193f7f4be010b234f9a1fd14d91ac8eabfcffc1343608dbda0e0379408133ad2d26a53614f21cae527f7 WHIRLPOOL 9c2d3099f160a5bfe7f4083f17c77689e4cb524a397b6f658fabc340e9dcabdcc32aa43e5251e81553dca4078913de0ef64c22747ba31673aa9984869517a5df
MISC metadata.xml 233 SHA256 2c234ebf47c0de34ea504b0342e8eca756fb7d77a6ac82cadb15fe5ba11e8beb SHA512 26f4aee998e006f276bd381132a5449fe3d8de3fe17610aab068873b1e0273d9f37b7171777e205b8ec3eabb53fcbce1eb4d45db7710fae41674b3fabca2eefa WHIRLPOOL 7992869e2f4237d58b3ea97c8b9fe61e90ec523d3fe81cbe14601841908ccf251d064aa53930ad73b61d5dfb7546995ea41491bfbad1542e18f9c5f9994f9153
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iJwEAQEIAAYFAlQoTDwACgkQG9wOWsQutdYy7wQAlURY7yVCPZVMziScKTRJjoRV
-7zg5z7xnTqbII7jQ7RLDCoWx8uuZGS4Rs5eexfjvrww+nZ/2QPNT0Zj2ZcHdXWqC
-0xSyNg0vlxlLiIOYvTeUwytiAfok4eZph8kTKAXihVslFxjeIxr5r/nL3szrvRFh
-jDpzq7ntMq8yuYiUKhg=
-=GOa0
+iJwEAQEIAAYFAlQoTKsACgkQG9wOWsQutdZoZgQAkJ2fXCp3qX8P/x9s6OGeYf0t
+YV7gufLjxbP+3X/9Ws9supeyZ7A7C9NFq6AW+Q7qa1XOa7cjCAjFiem3fr5PI8Wx
+xosXwXz6D5IYHMi1WkT3ltzrttyfoi0Z3pH12vL+y7imR7cLTzxUe8m8QINvia6c
+EEnR4J9AeAePAyt8KbU=
+=8+QZ
-----END PGP SIGNATURE-----
diff --git a/mail-filter/spamassassin/spamassassin-3.3.2-r2.ebuild b/mail-filter/spamassassin/spamassassin-3.3.2-r2.ebuild
deleted file mode 100644
index b77873cc72e6..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.3.2-r2.ebuild
+++ /dev/null
@@ -1,220 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.2-r2.ebuild,v 1.10 2014/07/21 19:04:56 dilfridge Exp $
-
-EAPI=4
-
-inherit perl-module toolchain-funcs eutils systemd
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify 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"
-# need keyword request for Mail-SPF ppc ppc64
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.8-r8
- virtual/perl-MIME-Base64
- >=virtual/perl-Pod-Parser-1.32
- 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.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- dev-perl/Mail-SPF
- dev-perl/NetAddr-IP
- 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
- )"
-RDEPEND="${DEPEND}"
-
-SRC_TEST="do"
-
-src_prepare() {
- # http://old.nabble.com/Migrating-bayes-to-mysql-fails-with-parsing-errors-td31889789i20.html
-
- # https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6624
- epatch "${FILESDIR}/${P}-mysql_count_rows.patch"
-
- #https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6625
- epatch "${FILESDIR}/${P}-binary_token.patch"
-
- # https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6626
- epatch "${FILESDIR}/${P}-innodb.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 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"
-
- # Add Gentoo tag to make it easy for the upstream devs to spot
- # possible modifications or patches.
- #version_tag="g${PV:6}${PR}"
- #version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- #echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # 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
-
- # Add the init and config scripts.
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd
-
- systemd_dounit "${FILESDIR}"/${PN}.service
-
- if use postgres; then
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd"
-
- dodoc sql/*_pg.sql
- else
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd"
- fi
-
- if use mysql; then
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd"
-
- dodoc sql/*_mysql.sql
- else
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd"
- 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
-
- cp "${FILESDIR}"/secrets.cf "${ED}"/etc/mail/spamassassin/secrets.cf.example || die
- fperms 0400 /etc/mail/spamassassin/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
-
- insinto /etc/mail/spamassassin/
- doins "${T}/local.cf.example"
-}
-
-pkg_postinst() {
- perl-module_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.\n"
- elog "If you build ${PN} with optional dependancy support,"
- elog "you can enable them in /etc/mail/spamassassin/init.pre\n"
- 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.\n"
- 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.\n"
- 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:\n"
- 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.\n"
- 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.\n"
- elog "If when 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\n"
-}
diff --git a/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild b/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild
deleted file mode 100644
index d17a90a1b048..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild,v 1.2 2014/07/21 19:04:56 dilfridge Exp $
-
-EAPI=4
-
-inherit perl-module toolchain-funcs eutils systemd
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify 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"
-# need keyword request for Mail-SPF ppc ppc64
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.8-r8
- virtual/perl-MIME-Base64
- >=virtual/perl-Pod-Parser-1.32
- 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.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- dev-perl/Mail-SPF
- dev-perl/NetAddr-IP
- 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
- )"
-RDEPEND="${DEPEND}"
-
-SRC_TEST="do"
-
-src_prepare() {
- # http://old.nabble.com/Migrating-bayes-to-mysql-fails-with-parsing-errors-td31889789i20.html
-
- # https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6624
- epatch "${FILESDIR}/${P}-mysql_count_rows.patch"
-
- #https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6625
- epatch "${FILESDIR}/${P}-binary_token.patch"
-
- # https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6626
- epatch "${FILESDIR}/${P}-innodb.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 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"
-
- # Add Gentoo tag to make it easy for the upstream devs to spot
- # possible modifications or patches.
- #version_tag="g${PV:6}${PR}"
- #version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- #echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # 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
-
- # 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"
-
- dodoc sql/*_pg.sql
- else
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd"
- fi
-
- if use mysql; then
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd"
-
- dodoc sql/*_mysql.sql
- else
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd"
- 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
-
- cp "${FILESDIR}"/secrets.cf "${ED}"/etc/mail/spamassassin/secrets.cf.example || die
- fperms 0400 /etc/mail/spamassassin/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
-
- insinto /etc/mail/spamassassin/
- doins "${T}/local.cf.example"
-}
-
-pkg_postinst() {
- perl-module_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.\n"
- elog "If you build ${PN} with optional dependancy support,"
- elog "you can enable them in /etc/mail/spamassassin/init.pre\n"
- 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.\n"
- 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.\n"
- 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:\n"
- 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.\n"
- 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.\n"
- elog "If when 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\n"
-}