1 |
pacho 13/12/28 13:56:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spamassassin-3.3.2-r4.ebuild |
5 |
Log: |
6 |
Let people pass more options to spamd process (#496254 by Evert) |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.230 mail-filter/spamassassin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.230&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.230&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/ChangeLog?r1=1.229&r2=1.230 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v |
20 |
retrieving revision 1.229 |
21 |
retrieving revision 1.230 |
22 |
diff -u -r1.229 -r1.230 |
23 |
--- ChangeLog 21 Dec 2013 18:00:47 -0000 1.229 |
24 |
+++ ChangeLog 28 Dec 2013 13:56:06 -0000 1.230 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for mail-filter/spamassassin |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.229 2013/12/21 18:00:47 zlogene Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.230 2013/12/28 13:56:06 pacho Exp $ |
30 |
+ |
31 |
+*spamassassin-3.3.2-r4 (28 Dec 2013) |
32 |
+ |
33 |
+ 28 Dec 2013; Pacho Ramos <pacho@g.o> +files/spamassassin.service-r1, |
34 |
+ +files/spamassassin.service.conf, +spamassassin-3.3.2-r4.ebuild: |
35 |
+ Let people pass more options to spamd process (#496254 by Evert) |
36 |
|
37 |
21 Dec 2013; Mikle Kolyada <zlogene@g.o> spamassassin-3.3.2-r2.ebuild: |
38 |
ppc64 stable wrt bug #484916 |
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: spamassassin-3.3.2-r4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.2-r4.ebuild,v 1.1 2013/12/28 13:56:06 pacho Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit perl-module toolchain-funcs eutils systemd |
56 |
|
57 |
MY_P=Mail-SpamAssassin-${PV//_/-} |
58 |
S=${WORKDIR}/${MY_P} |
59 |
DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam" |
60 |
HOMEPAGE="http://spamassassin.apache.org/" |
61 |
SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
62 |
|
63 |
LICENSE="Apache-2.0 GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
66 |
# need keyword request for Mail-SPF ppc ppc64 |
67 |
IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6" |
68 |
|
69 |
DEPEND=">=dev-lang/perl-5.8.8-r8 |
70 |
virtual/perl-MIME-Base64 |
71 |
>=virtual/perl-PodParser-1.32 |
72 |
virtual/perl-Storable |
73 |
virtual/perl-Time-HiRes |
74 |
>=dev-perl/HTML-Parser-3.43 |
75 |
>=dev-perl/Mail-DKIM-0.37 |
76 |
>=dev-perl/Net-DNS-0.53 |
77 |
dev-perl/Digest-SHA1 |
78 |
dev-perl/libwww-perl |
79 |
>=virtual/perl-Archive-Tar-1.26 |
80 |
app-crypt/gnupg |
81 |
>=virtual/perl-IO-Zlib-1.04 |
82 |
>=dev-util/re2c-0.12.0 |
83 |
dev-perl/Mail-SPF |
84 |
dev-perl/NetAddr-IP |
85 |
ssl? ( |
86 |
dev-perl/IO-Socket-SSL |
87 |
dev-libs/openssl |
88 |
) |
89 |
berkdb? ( |
90 |
virtual/perl-DB_File |
91 |
) |
92 |
ldap? ( dev-perl/perl-ldap ) |
93 |
mysql? ( |
94 |
dev-perl/DBI |
95 |
dev-perl/DBD-mysql |
96 |
) |
97 |
postgres? ( |
98 |
dev-perl/DBI |
99 |
dev-perl/DBD-Pg |
100 |
) |
101 |
sqlite? ( |
102 |
dev-perl/DBI |
103 |
dev-perl/DBD-SQLite |
104 |
) |
105 |
ipv6? ( |
106 |
dev-perl/IO-Socket-INET6 |
107 |
)" |
108 |
RDEPEND="${DEPEND}" |
109 |
|
110 |
SRC_TEST="do" |
111 |
|
112 |
src_prepare() { |
113 |
# http://old.nabble.com/Migrating-bayes-to-mysql-fails-with-parsing-errors-td31889789i20.html |
114 |
|
115 |
# https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6624 |
116 |
epatch "${FILESDIR}/${P}-mysql_count_rows.patch" |
117 |
|
118 |
#https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6625 |
119 |
epatch "${FILESDIR}/${P}-binary_token.patch" |
120 |
|
121 |
# https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6626 |
122 |
epatch "${FILESDIR}/${P}-innodb.patch" |
123 |
} |
124 |
|
125 |
src_configure() { |
126 |
# - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
127 |
# (just to be sure, nobody knows how it could happen in the first place). |
128 |
myconf="SYSCONFDIR=${EPREFIX}/etc DATADIR=${EPREFIX}/usr/share/spamassassin" |
129 |
|
130 |
# If ssl is enabled, spamc can be built with ssl support |
131 |
if use ssl; then |
132 |
myconf+=" ENABLE_SSL=yes" |
133 |
else |
134 |
myconf+=" ENABLE_SSL=no" |
135 |
fi |
136 |
|
137 |
# Set the path to the Perl executable explictly. This will be used to |
138 |
# create the initial sharpbang line in the scripts and might cause |
139 |
# a versioned app name end in there, see |
140 |
# <http://bugs.gentoo.org/show_bug.cgi?id=62276> |
141 |
myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl" |
142 |
|
143 |
# Add Gentoo tag to make it easy for the upstream devs to spot |
144 |
# possible modifications or patches. |
145 |
#version_tag="g${PV:6}${PR}" |
146 |
#version_str="${PV//_/-}-${version_tag}" |
147 |
|
148 |
# Create the Gentoo config file before Makefile.PL is called so it |
149 |
# is copied later on. |
150 |
#echo "version_tag ${version_tag}" > rules/11_gentoo.cf |
151 |
|
152 |
# Setting the following env var ensures that no questions are asked. |
153 |
perl-module_src_configure |
154 |
# Configure spamc |
155 |
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
export PERL_MM_USE_DEFAULT=1 |
160 |
|
161 |
# Now compile all the stuff selected. |
162 |
perl-module_src_compile |
163 |
|
164 |
if use qmail; then |
165 |
emake spamc/qmail-spamc |
166 |
fi |
167 |
|
168 |
} |
169 |
|
170 |
src_install () { |
171 |
perl-module_src_install |
172 |
|
173 |
# Create the stub dir used by sa-update and friends |
174 |
keepdir /var/lib/spamassassin |
175 |
|
176 |
# Move spamd to sbin where it belongs. |
177 |
dodir /usr/sbin |
178 |
mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
179 |
|
180 |
if use qmail; then |
181 |
dobin spamc/qmail-spamc |
182 |
fi |
183 |
|
184 |
ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
185 |
|
186 |
# Disable plugin by default |
187 |
sed -i -e 's/^loadplugin/\#loadplugin/g' "${ED}"/etc/mail/spamassassin/init.pre || die |
188 |
|
189 |
# Add the init and config scripts. |
190 |
newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
191 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
192 |
|
193 |
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
194 |
systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
195 |
|
196 |
if use postgres; then |
197 |
sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" |
198 |
|
199 |
dodoc sql/*_pg.sql |
200 |
else |
201 |
sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" |
202 |
fi |
203 |
|
204 |
if use mysql; then |
205 |
sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" |
206 |
|
207 |
dodoc sql/*_mysql.sql |
208 |
else |
209 |
sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" |
210 |
fi |
211 |
|
212 |
dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
213 |
sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
214 |
sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
215 |
spamd-apache2/README.apache |
216 |
|
217 |
# Rename some docu files so they don't clash with others |
218 |
newdoc spamd/README README.spamd |
219 |
newdoc sql/README README.sql |
220 |
newdoc ldap/README README.ldap |
221 |
|
222 |
if use qmail; then |
223 |
dodoc spamc/README.qmail |
224 |
fi |
225 |
|
226 |
cp "${FILESDIR}"/secrets.cf "${ED}"/etc/mail/spamassassin/secrets.cf.example || die |
227 |
fperms 0400 /etc/mail/spamassassin/secrets.cf.example |
228 |
|
229 |
cat <<-EOF > "${T}/local.cf.example" |
230 |
# Sensitive data, such as database connection info, should be stored in |
231 |
# /etc/mail/spamassassin/secrets.cf with appropriate permissions |
232 |
EOF |
233 |
|
234 |
insinto /etc/mail/spamassassin/ |
235 |
doins "${T}/local.cf.example" |
236 |
} |
237 |
|
238 |
pkg_postinst() { |
239 |
perl-module_pkg_postinst |
240 |
elog "If you plan on using the -u flag to spamd, please read the notes" |
241 |
elog "in /etc/conf.d/spamd regarding the location of the pid file.\n" |
242 |
elog "If you build ${PN} with optional dependancy support," |
243 |
elog "you can enable them in /etc/mail/spamassassin/init.pre\n" |
244 |
elog "You need to configure your database to be able to use Bayes filter" |
245 |
elog "with database backend, otherwise it will still use (and need) the" |
246 |
elog "Berkeley DB support." |
247 |
elog "Look at the sql/README.bayes file in the documentation directory" |
248 |
elog "for how to configure it.\n" |
249 |
elog "If you plan to use Vipul's Razor, note that versions up to and" |
250 |
elog "including version 2.82 include a bug that will slow down the entire" |
251 |
elog "perl interpreter. Version 2.83 or later fixes this." |
252 |
elog "If you do not plan to use this plugin, be sure to comment out" |
253 |
elog "its loadplugin line in /etc/mail/spamassassin/v310.pre.\n" |
254 |
elog "The DKIM plugin is now enabled by default for new installs," |
255 |
elog "if the perl module Mail::DKIM is installed." |
256 |
elog "However, installation of SpamAssassin will not overwrite existing" |
257 |
elog ".pre configuration files, so to use DKIM when upgrading from a" |
258 |
elog "previous release that did not use DKIM, a directive:\n" |
259 |
elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
260 |
elog "will need to be uncommented in file 'v312.pre', or added" |
261 |
elog "to some other .pre file, such as local.pre.\n" |
262 |
ewarn "Rules are no longer included with SpamAssassin out of the box". |
263 |
ewarn "You will need to immediately run sa-update, or download" |
264 |
ewarn "the additional rules .tgz package and run sa-update --install" |
265 |
ewarn "with it, to get a ruleset.\n" |
266 |
elog "If when you run sa-update and receive a GPG validation error." |
267 |
elog "Then you need to import an updated sa-update key." |
268 |
elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt\n" |
269 |
} |