Gentoo Archives: gentoo-commits

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