1 |
commit: c20664a796947bcdda160e2517b5cf5c6499b953 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 5 22:21:51 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 5 22:33:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20664a7 |
7 |
|
8 |
mail-filter/spamassassin: remove old unstable revisions. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
.../spamassassin/spamassassin-3.4.1-r2.ebuild | 222 -------------------- |
13 |
.../spamassassin/spamassassin-3.4.1-r3.ebuild | 231 --------------------- |
14 |
.../spamassassin/spamassassin-3.4.1-r4.ebuild | 195 ----------------- |
15 |
.../spamassassin/spamassassin-3.4.1-r5.ebuild | 196 ----------------- |
16 |
mail-filter/spamassassin/spamassassin-3.4.1.ebuild | 221 -------------------- |
17 |
5 files changed, 1065 deletions(-) |
18 |
|
19 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1-r2.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1-r2.ebuild |
20 |
deleted file mode 100644 |
21 |
index c12577e..0000000 |
22 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1-r2.ebuild |
23 |
+++ /dev/null |
24 |
@@ -1,222 +0,0 @@ |
25 |
-# Copyright 1999-2016 Gentoo Foundation |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Id$ |
28 |
- |
29 |
-EAPI=5 |
30 |
- |
31 |
-inherit perl-module toolchain-funcs eutils systemd readme.gentoo |
32 |
- |
33 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
34 |
-S=${WORKDIR}/${MY_P} |
35 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
36 |
-HOMEPAGE="http://spamassassin.apache.org/" |
37 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
38 |
- |
39 |
-LICENSE="Apache-2.0 GPL-2" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
42 |
-IUSE="+bayes berkdb libressl qmail ssl doc ldap mysql postgres sqlite ipv6" |
43 |
- |
44 |
-# You can do without a database unless you need the Bayes features. |
45 |
-REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )" |
46 |
- |
47 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
48 |
- virtual/perl-MIME-Base64 |
49 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
50 |
- virtual/perl-Storable |
51 |
- virtual/perl-Time-HiRes |
52 |
- >=dev-perl/HTML-Parser-3.43 |
53 |
- >=dev-perl/Mail-DKIM-0.37 |
54 |
- >=dev-perl/Net-DNS-0.53 |
55 |
- dev-perl/Digest-SHA1 |
56 |
- dev-perl/libwww-perl |
57 |
- >=virtual/perl-Archive-Tar-1.23 |
58 |
- app-crypt/gnupg |
59 |
- >=virtual/perl-IO-Zlib-1.04 |
60 |
- >=dev-util/re2c-0.12.0 |
61 |
- dev-perl/Mail-SPF |
62 |
- >=dev-perl/NetAddr-IP-4.0.1 |
63 |
- dev-perl/Geo-IP |
64 |
- dev-perl/Encode-Detect |
65 |
- dev-perl/Net-Patricia |
66 |
- ssl? ( |
67 |
- dev-perl/IO-Socket-SSL |
68 |
- !libressl? ( dev-libs/openssl:0 ) |
69 |
- libressl? ( dev-libs/libressl ) |
70 |
- ) |
71 |
- berkdb? ( |
72 |
- virtual/perl-DB_File |
73 |
- ) |
74 |
- ldap? ( dev-perl/perl-ldap ) |
75 |
- mysql? ( |
76 |
- dev-perl/DBI |
77 |
- dev-perl/DBD-mysql |
78 |
- ) |
79 |
- postgres? ( |
80 |
- dev-perl/DBI |
81 |
- dev-perl/DBD-Pg |
82 |
- ) |
83 |
- sqlite? ( |
84 |
- dev-perl/DBI |
85 |
- dev-perl/DBD-SQLite |
86 |
- ) |
87 |
- ipv6? ( |
88 |
- || ( dev-perl/IO-Socket-INET6 |
89 |
- virtual/perl-IO-Socket-IP ) |
90 |
- )" |
91 |
-RDEPEND="${DEPEND}" |
92 |
- |
93 |
-SRC_TEST="do" |
94 |
- |
95 |
-src_prepare() { |
96 |
- # Merged upstream |
97 |
- #epatch "${FILESDIR}/net-dns-0.76_compatibility.patch" |
98 |
- perl-module_src_prepare |
99 |
-} |
100 |
- |
101 |
-src_configure() { |
102 |
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
103 |
- # (just to be sure, nobody knows how it could happen in the first place). |
104 |
- myconf="SYSCONFDIR=${EPREFIX}/etc" |
105 |
- myconf+=" DATADIR=${EPREFIX}/usr/share/spamassassin" |
106 |
- |
107 |
- # If ssl is enabled, spamc can be built with ssl support. |
108 |
- if use ssl; then |
109 |
- myconf+=" ENABLE_SSL=yes" |
110 |
- else |
111 |
- myconf+=" ENABLE_SSL=no" |
112 |
- fi |
113 |
- |
114 |
- # Set the path to the Perl executable explictly. This will be used to |
115 |
- # create the initial sharpbang line in the scripts and might cause |
116 |
- # a versioned app name end in there, see |
117 |
- # <https://bugs.gentoo.org/show_bug.cgi?id=62276> |
118 |
- myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl" |
119 |
- |
120 |
- # Setting the following env var ensures that no questions are asked. |
121 |
- perl-module_src_configure |
122 |
- # Configure spamc |
123 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
124 |
-} |
125 |
- |
126 |
-src_compile() { |
127 |
- export PERL_MM_USE_DEFAULT=1 |
128 |
- |
129 |
- # Now compile all the stuff selected. |
130 |
- perl-module_src_compile |
131 |
- |
132 |
- if use qmail; then |
133 |
- emake spamc/qmail-spamc |
134 |
- fi |
135 |
-} |
136 |
- |
137 |
-src_install () { |
138 |
- perl-module_src_install |
139 |
- |
140 |
- # Create the stub dir used by sa-update and friends |
141 |
- keepdir /var/lib/spamassassin |
142 |
- |
143 |
- # Move spamd to sbin where it belongs. |
144 |
- dodir /usr/sbin |
145 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
146 |
- |
147 |
- if use qmail; then |
148 |
- dobin spamc/qmail-spamc |
149 |
- fi |
150 |
- |
151 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
152 |
- |
153 |
- # Disable plugin by default |
154 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
155 |
- "${ED}"/etc/mail/spamassassin/init.pre \ |
156 |
- || die "failed to disable plugins by default" |
157 |
- |
158 |
- # Add the init and config scripts. |
159 |
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
160 |
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
161 |
- |
162 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
163 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
164 |
- |
165 |
- if use postgres; then |
166 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
167 |
- |
168 |
- dodoc sql/*_pg.sql |
169 |
- else |
170 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
171 |
- fi |
172 |
- |
173 |
- if use mysql; then |
174 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
175 |
- |
176 |
- dodoc sql/*_mysql.sql |
177 |
- else |
178 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
179 |
- fi |
180 |
- |
181 |
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
182 |
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
183 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
184 |
- spamd-apache2/README.apache |
185 |
- |
186 |
- # Rename some docu files so they don't clash with others |
187 |
- newdoc spamd/README README.spamd |
188 |
- newdoc sql/README README.sql |
189 |
- newdoc ldap/README README.ldap |
190 |
- |
191 |
- if use qmail; then |
192 |
- dodoc spamc/README.qmail |
193 |
- fi |
194 |
- |
195 |
- insinto /etc/mail/spamassassin/ |
196 |
- insopts -m0400 |
197 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
198 |
- |
199 |
- cat <<-EOF > "${T}/local.cf.example" |
200 |
- # Sensitive data, such as database connection info, should be stored in |
201 |
- # /etc/mail/spamassassin/secrets.cf with appropriate permissions |
202 |
-EOF |
203 |
- |
204 |
- insopts -m0644 |
205 |
- doins "${T}/local.cf.example" |
206 |
-} |
207 |
- |
208 |
-pkg_postinst() { |
209 |
- elog "If you plan on using the -u flag to spamd, please read the notes" |
210 |
- elog "in /etc/conf.d/spamd regarding the location of the pid file." |
211 |
- elog |
212 |
- elog "If you build ${PN} with optional dependancy support," |
213 |
- elog "you can enable them in /etc/mail/spamassassin/init.pre" |
214 |
- elog |
215 |
- elog "You need to configure your database to be able to use Bayes filter" |
216 |
- elog "with database backend, otherwise it will still use (and need) the" |
217 |
- elog "Berkeley DB support." |
218 |
- elog "Look at the sql/README.bayes file in the documentation directory" |
219 |
- elog "for how to configure it." |
220 |
- elog |
221 |
- elog "If you plan to use Vipul's Razor, note that versions up to and" |
222 |
- elog "including version 2.82 include a bug that will slow down the entire" |
223 |
- elog "perl interpreter. Version 2.83 or later fixes this." |
224 |
- elog "If you do not plan to use this plugin, be sure to comment out" |
225 |
- elog "its loadplugin line in /etc/mail/spamassassin/v310.pre." |
226 |
- elog |
227 |
- elog "The DKIM plugin is now enabled by default for new installs," |
228 |
- elog "if the perl module Mail::DKIM is installed." |
229 |
- elog "However, installation of SpamAssassin will not overwrite existing" |
230 |
- elog ".pre configuration files, so to use DKIM when upgrading from a" |
231 |
- elog "previous release that did not use DKIM, a directive:" |
232 |
- elog |
233 |
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
234 |
- elog "will need to be uncommented in file 'v312.pre', or added" |
235 |
- elog "to some other .pre file, such as local.pre." |
236 |
- elog |
237 |
- ewarn "Rules are no longer included with SpamAssassin out of the box". |
238 |
- ewarn "You will need to immediately run sa-update, or download" |
239 |
- ewarn "the additional rules .tgz package and run sa-update --install" |
240 |
- ewarn "with it, to get a ruleset." |
241 |
- elog |
242 |
- elog "If you run sa-update and receive a GPG validation error." |
243 |
- elog "Then you need to import an updated sa-update key." |
244 |
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt" |
245 |
- elog |
246 |
-} |
247 |
|
248 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1-r3.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1-r3.ebuild |
249 |
deleted file mode 100644 |
250 |
index fda05ae..0000000 |
251 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1-r3.ebuild |
252 |
+++ /dev/null |
253 |
@@ -1,231 +0,0 @@ |
254 |
-# Copyright 1999-2016 Gentoo Foundation |
255 |
-# Distributed under the terms of the GNU General Public License v2 |
256 |
-# $Id$ |
257 |
- |
258 |
-EAPI=5 |
259 |
- |
260 |
-inherit perl-module toolchain-funcs eutils systemd readme.gentoo |
261 |
- |
262 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
263 |
-S=${WORKDIR}/${MY_P} |
264 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
265 |
-HOMEPAGE="http://spamassassin.apache.org/" |
266 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
267 |
- |
268 |
-LICENSE="Apache-2.0 GPL-2" |
269 |
-SLOT="0" |
270 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
271 |
-IUSE="+bayes berkdb libressl qmail ssl doc ldap mysql postgres sqlite ipv6" |
272 |
- |
273 |
-# You can do without a database unless you need the Bayes features. |
274 |
-REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )" |
275 |
- |
276 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
277 |
- virtual/perl-MIME-Base64 |
278 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
279 |
- virtual/perl-Storable |
280 |
- virtual/perl-Time-HiRes |
281 |
- >=dev-perl/HTML-Parser-3.43 |
282 |
- >=dev-perl/Mail-DKIM-0.37 |
283 |
- >=dev-perl/Net-DNS-0.53 |
284 |
- dev-perl/Digest-SHA1 |
285 |
- dev-perl/libwww-perl |
286 |
- >=virtual/perl-Archive-Tar-1.23 |
287 |
- app-crypt/gnupg |
288 |
- >=virtual/perl-IO-Zlib-1.04 |
289 |
- >=dev-util/re2c-0.12.0 |
290 |
- dev-perl/Mail-SPF |
291 |
- >=dev-perl/NetAddr-IP-4.0.1 |
292 |
- dev-perl/Geo-IP |
293 |
- dev-perl/Encode-Detect |
294 |
- dev-perl/Net-Patricia |
295 |
- ssl? ( |
296 |
- dev-perl/IO-Socket-SSL |
297 |
- !libressl? ( dev-libs/openssl:0 ) |
298 |
- libressl? ( dev-libs/libressl ) |
299 |
- ) |
300 |
- berkdb? ( |
301 |
- virtual/perl-DB_File |
302 |
- ) |
303 |
- ldap? ( dev-perl/perl-ldap ) |
304 |
- mysql? ( |
305 |
- dev-perl/DBI |
306 |
- dev-perl/DBD-mysql |
307 |
- ) |
308 |
- postgres? ( |
309 |
- dev-perl/DBI |
310 |
- dev-perl/DBD-Pg |
311 |
- ) |
312 |
- sqlite? ( |
313 |
- dev-perl/DBI |
314 |
- dev-perl/DBD-SQLite |
315 |
- ) |
316 |
- ipv6? ( |
317 |
- || ( dev-perl/IO-Socket-INET6 |
318 |
- virtual/perl-IO-Socket-IP ) |
319 |
- )" |
320 |
-RDEPEND="${DEPEND}" |
321 |
- |
322 |
-SRC_TEST="do" |
323 |
- |
324 |
-src_prepare() { |
325 |
- epatch "${FILESDIR}/spamassassin-3.4.1-bug_7223.patch" |
326 |
- epatch "${FILESDIR}/spamassassin-3.4.1-bug_7231.patch" |
327 |
- epatch "${FILESDIR}/spamassassin-3.4.1-bug_7265.patch" |
328 |
- perl-module_src_prepare |
329 |
-} |
330 |
- |
331 |
-src_configure() { |
332 |
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
333 |
- # (just to be sure, nobody knows how it could happen in the first place). |
334 |
- myconf="SYSCONFDIR=${EPREFIX}/etc" |
335 |
- myconf+=" DATADIR=${EPREFIX}/usr/share/spamassassin" |
336 |
- |
337 |
- # If ssl is enabled, spamc can be built with ssl support. |
338 |
- if use ssl; then |
339 |
- myconf+=" ENABLE_SSL=yes" |
340 |
- else |
341 |
- myconf+=" ENABLE_SSL=no" |
342 |
- fi |
343 |
- |
344 |
- # Set the path to the Perl executable explictly. This will be used to |
345 |
- # create the initial sharpbang line in the scripts and might cause |
346 |
- # a versioned app name end in there, see |
347 |
- # <https://bugs.gentoo.org/show_bug.cgi?id=62276> |
348 |
- myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl" |
349 |
- |
350 |
- # Setting the following env var ensures that no questions are asked. |
351 |
- perl-module_src_configure |
352 |
- # Configure spamc |
353 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
354 |
-} |
355 |
- |
356 |
-src_compile() { |
357 |
- export PERL_MM_USE_DEFAULT=1 |
358 |
- |
359 |
- # Now compile all the stuff selected. |
360 |
- perl-module_src_compile |
361 |
- |
362 |
- if use qmail; then |
363 |
- emake spamc/qmail-spamc |
364 |
- fi |
365 |
-} |
366 |
- |
367 |
-src_install () { |
368 |
- perl-module_src_install |
369 |
- |
370 |
- # Create the stub dir used by sa-update and friends |
371 |
- keepdir /var/lib/spamassassin |
372 |
- |
373 |
- # Move spamd to sbin where it belongs. |
374 |
- dodir /usr/sbin |
375 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
376 |
- |
377 |
- if use qmail; then |
378 |
- dobin spamc/qmail-spamc |
379 |
- fi |
380 |
- |
381 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
382 |
- |
383 |
- # Disable plugin by default |
384 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
385 |
- "${ED}"/etc/mail/spamassassin/init.pre \ |
386 |
- || die "failed to disable plugins by default" |
387 |
- |
388 |
- # Add the init and config scripts. |
389 |
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
390 |
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
391 |
- |
392 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
393 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
394 |
- |
395 |
- if use postgres; then |
396 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
397 |
- |
398 |
- dodoc sql/*_pg.sql |
399 |
- else |
400 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
401 |
- fi |
402 |
- |
403 |
- if use mysql; then |
404 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
405 |
- |
406 |
- dodoc sql/*_mysql.sql |
407 |
- else |
408 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
409 |
- fi |
410 |
- |
411 |
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
412 |
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
413 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
414 |
- spamd-apache2/README.apache |
415 |
- |
416 |
- # Rename some docu files so they don't clash with others |
417 |
- newdoc spamd/README README.spamd |
418 |
- newdoc sql/README README.sql |
419 |
- newdoc ldap/README README.ldap |
420 |
- |
421 |
- if use qmail; then |
422 |
- dodoc spamc/README.qmail |
423 |
- fi |
424 |
- |
425 |
- insinto /etc/mail/spamassassin/ |
426 |
- insopts -m0400 |
427 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
428 |
- |
429 |
- # Create the directory where sa-update stores its GPG key (if you |
430 |
- # choose to import one). If this directory does not exist, the |
431 |
- # import will fail. This is bug 396307. We expect that the import |
432 |
- # will be performed as root, and making the directory accessible |
433 |
- # only to root prevents a warning on the command-line. |
434 |
- diropts -m0700 |
435 |
- dodir /etc/mail/spamassassin/sa-update-keys |
436 |
- |
437 |
- cat <<-EOF > "${T}/local.cf.example" |
438 |
- # Sensitive data, such as database connection info, should be stored in |
439 |
- # /etc/mail/spamassassin/secrets.cf with appropriate permissions |
440 |
-EOF |
441 |
- |
442 |
- insopts -m0644 |
443 |
- doins "${T}/local.cf.example" |
444 |
-} |
445 |
- |
446 |
-pkg_postinst() { |
447 |
- elog "If you plan on using the -u flag to spamd, please read the notes" |
448 |
- elog "in /etc/conf.d/spamd regarding the location of the pid file." |
449 |
- elog |
450 |
- elog "If you build ${PN} with optional dependancy support," |
451 |
- elog "you can enable them in /etc/mail/spamassassin/init.pre" |
452 |
- elog |
453 |
- elog "You need to configure your database to be able to use Bayes filter" |
454 |
- elog "with database backend, otherwise it will still use (and need) the" |
455 |
- elog "Berkeley DB support." |
456 |
- elog "Look at the sql/README.bayes file in the documentation directory" |
457 |
- elog "for how to configure it." |
458 |
- elog |
459 |
- elog "If you plan to use Vipul's Razor, note that versions up to and" |
460 |
- elog "including version 2.82 include a bug that will slow down the entire" |
461 |
- elog "perl interpreter. Version 2.83 or later fixes this." |
462 |
- elog "If you do not plan to use this plugin, be sure to comment out" |
463 |
- elog "its loadplugin line in /etc/mail/spamassassin/v310.pre." |
464 |
- elog |
465 |
- elog "The DKIM plugin is now enabled by default for new installs," |
466 |
- elog "if the perl module Mail::DKIM is installed." |
467 |
- elog "However, installation of SpamAssassin will not overwrite existing" |
468 |
- elog ".pre configuration files, so to use DKIM when upgrading from a" |
469 |
- elog "previous release that did not use DKIM, a directive:" |
470 |
- elog |
471 |
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
472 |
- elog "will need to be uncommented in file 'v312.pre', or added" |
473 |
- elog "to some other .pre file, such as local.pre." |
474 |
- elog |
475 |
- ewarn "Rules are no longer included with SpamAssassin out of the box". |
476 |
- ewarn "You will need to immediately run sa-update, or download" |
477 |
- ewarn "the additional rules .tgz package and run sa-update --install" |
478 |
- ewarn "with it, to get a ruleset." |
479 |
- elog |
480 |
- elog "If you run sa-update and receive a GPG validation error." |
481 |
- elog "Then you need to import an updated sa-update key." |
482 |
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt" |
483 |
- elog |
484 |
-} |
485 |
|
486 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1-r4.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1-r4.ebuild |
487 |
deleted file mode 100644 |
488 |
index c694645..0000000 |
489 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1-r4.ebuild |
490 |
+++ /dev/null |
491 |
@@ -1,195 +0,0 @@ |
492 |
-# Copyright 1999-2016 Gentoo Foundation |
493 |
-# Distributed under the terms of the GNU General Public License v2 |
494 |
-# $Id$ |
495 |
- |
496 |
-EAPI=6 |
497 |
- |
498 |
-inherit toolchain-funcs systemd |
499 |
- |
500 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
501 |
-S=${WORKDIR}/${MY_P} |
502 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
503 |
-HOMEPAGE="http://spamassassin.apache.org/" |
504 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
505 |
- |
506 |
-LICENSE="Apache-2.0 GPL-2" |
507 |
-SLOT="0" |
508 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
509 |
-IUSE="+bayes berkdb ipv6 ldap libressl mysql postgres qmail sqlite ssl test" |
510 |
- |
511 |
-# You can do without a database unless you need the Bayes features. |
512 |
-REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )" |
513 |
- |
514 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
515 |
- virtual/perl-MIME-Base64 |
516 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
517 |
- virtual/perl-Storable |
518 |
- virtual/perl-Time-HiRes |
519 |
- >=dev-perl/HTML-Parser-3.43 |
520 |
- >=dev-perl/Mail-DKIM-0.37 |
521 |
- >=dev-perl/Net-DNS-0.53 |
522 |
- dev-perl/Digest-SHA1 |
523 |
- dev-perl/libwww-perl |
524 |
- >=virtual/perl-Archive-Tar-1.23 |
525 |
- app-crypt/gnupg |
526 |
- >=virtual/perl-IO-Zlib-1.04 |
527 |
- >=dev-util/re2c-0.12.0 |
528 |
- dev-perl/Mail-SPF |
529 |
- >=dev-perl/NetAddr-IP-4.0.1 |
530 |
- dev-perl/Geo-IP |
531 |
- dev-perl/Encode-Detect |
532 |
- dev-perl/Net-Patricia |
533 |
- ssl? ( |
534 |
- dev-perl/IO-Socket-SSL |
535 |
- !libressl? ( dev-libs/openssl:0 ) |
536 |
- libressl? ( dev-libs/libressl ) |
537 |
- ) |
538 |
- berkdb? ( |
539 |
- virtual/perl-DB_File |
540 |
- ) |
541 |
- ldap? ( dev-perl/perl-ldap ) |
542 |
- mysql? ( |
543 |
- dev-perl/DBI |
544 |
- dev-perl/DBD-mysql |
545 |
- ) |
546 |
- postgres? ( |
547 |
- dev-perl/DBI |
548 |
- dev-perl/DBD-Pg |
549 |
- ) |
550 |
- sqlite? ( |
551 |
- dev-perl/DBI |
552 |
- dev-perl/DBD-SQLite |
553 |
- ) |
554 |
- ipv6? ( |
555 |
- || ( dev-perl/IO-Socket-INET6 |
556 |
- virtual/perl-IO-Socket-IP ) |
557 |
- )" |
558 |
-RDEPEND="${DEPEND}" |
559 |
- |
560 |
-# Some spamd tests fail, and it looks like the whole suite eventually |
561 |
-# hangs. |
562 |
-RESTRICT=test |
563 |
- |
564 |
-PATCHES=( |
565 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7223.patch" |
566 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7231.patch" |
567 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7265.patch" |
568 |
-) |
569 |
- |
570 |
-src_configure() { |
571 |
- # spamc can be built with ssl support. |
572 |
- local use_ssl="no" |
573 |
- if use ssl; then |
574 |
- use_ssl="yes" |
575 |
- fi |
576 |
- |
577 |
- # Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
578 |
- # (just to be sure, nobody knows how it could happen in the first place). |
579 |
- # |
580 |
- # We also set the path to the perl executable explictly. This will be |
581 |
- # used to create the initial shebang line in the scripts (bug 62276). |
582 |
- perl Makefile.PL \ |
583 |
- PREFIX="${EPREFIX}/usr" \ |
584 |
- INSTALLDIRS=vendor \ |
585 |
- SYSCONFDIR="${EPREFIX}/etc" \ |
586 |
- DATADIR="${EPREFIX}/usr/share/spamassassin" \ |
587 |
- PERL_BIN="${EPREFIX}/usr/bin/perl" \ |
588 |
- ENABLE_SSL="${use_ssl}" \ |
589 |
- DESTDIR="${D}" \ |
590 |
- || die "Unable to build!" |
591 |
- |
592 |
- # Now configure spamc. |
593 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
594 |
-} |
595 |
- |
596 |
-src_compile() { |
597 |
- PERL_MM_USE_DEFAULT=1 emake |
598 |
- |
599 |
- if use qmail; then |
600 |
- emake spamc/qmail-spamc |
601 |
- fi |
602 |
-} |
603 |
- |
604 |
-src_install () { |
605 |
- emake install |
606 |
- einstalldocs |
607 |
- |
608 |
- # Create the stub dir used by sa-update and friends |
609 |
- keepdir /var/lib/spamassassin |
610 |
- |
611 |
- # Move spamd to sbin where it belongs. |
612 |
- dodir /usr/sbin |
613 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
614 |
- |
615 |
- if use qmail; then |
616 |
- dobin spamc/qmail-spamc |
617 |
- fi |
618 |
- |
619 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
620 |
- |
621 |
- # Disable plugin by default |
622 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
623 |
- "${ED}"/etc/mail/spamassassin/init.pre \ |
624 |
- || die "failed to disable plugins by default" |
625 |
- |
626 |
- # Add the init and config scripts. |
627 |
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
628 |
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
629 |
- |
630 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
631 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
632 |
- |
633 |
- if use postgres; then |
634 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
635 |
- |
636 |
- dodoc sql/*_pg.sql |
637 |
- else |
638 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
639 |
- fi |
640 |
- |
641 |
- if use mysql; then |
642 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
643 |
- |
644 |
- dodoc sql/*_mysql.sql |
645 |
- else |
646 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
647 |
- fi |
648 |
- |
649 |
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
650 |
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
651 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
652 |
- spamd-apache2/README.apache |
653 |
- |
654 |
- # Rename some docu files so they don't clash with others |
655 |
- newdoc spamd/README README.spamd |
656 |
- newdoc sql/README README.sql |
657 |
- newdoc ldap/README README.ldap |
658 |
- |
659 |
- if use qmail; then |
660 |
- dodoc spamc/README.qmail |
661 |
- fi |
662 |
- |
663 |
- insinto /etc/mail/spamassassin/ |
664 |
- insopts -m0400 |
665 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
666 |
- |
667 |
- # Create the directory where sa-update stores its GPG key (if you |
668 |
- # choose to import one). If this directory does not exist, the |
669 |
- # import will fail. This is bug 396307. We expect that the import |
670 |
- # will be performed as root, and making the directory accessible |
671 |
- # only to root prevents a warning on the command-line. |
672 |
- diropts -m0700 |
673 |
- dodir /etc/mail/spamassassin/sa-update-keys |
674 |
-} |
675 |
- |
676 |
-pkg_postinst() { |
677 |
- elog |
678 |
- elog "No rules are install by default. You will need to run sa-update" |
679 |
- elog "at least once, and most likely configure SpamAssassin before it" |
680 |
- elog "will work. You should also consider a cron job for sa-update." |
681 |
- elog |
682 |
- elog "Configuration and update help can be found on the wiki:" |
683 |
- elog |
684 |
- elog " https://wiki.gentoo.org/wiki/SpamAssassin" |
685 |
- elog |
686 |
-} |
687 |
|
688 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1-r5.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1-r5.ebuild |
689 |
deleted file mode 100644 |
690 |
index f127be2..0000000 |
691 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1-r5.ebuild |
692 |
+++ /dev/null |
693 |
@@ -1,196 +0,0 @@ |
694 |
-# Copyright 1999-2016 Gentoo Foundation |
695 |
-# Distributed under the terms of the GNU General Public License v2 |
696 |
-# $Id$ |
697 |
- |
698 |
-EAPI=6 |
699 |
- |
700 |
-inherit toolchain-funcs systemd |
701 |
- |
702 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
703 |
-S=${WORKDIR}/${MY_P} |
704 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
705 |
-HOMEPAGE="http://spamassassin.apache.org/" |
706 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
707 |
- |
708 |
-LICENSE="Apache-2.0 GPL-2" |
709 |
-SLOT="0" |
710 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
711 |
-IUSE="+bayes berkdb ipv6 ldap libressl mysql postgres qmail sqlite ssl test" |
712 |
- |
713 |
-# You can do without a database unless you need the Bayes features. |
714 |
-REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )" |
715 |
- |
716 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
717 |
- virtual/perl-MIME-Base64 |
718 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
719 |
- virtual/perl-Storable |
720 |
- virtual/perl-Time-HiRes |
721 |
- >=dev-perl/HTML-Parser-3.43 |
722 |
- >=dev-perl/Mail-DKIM-0.37 |
723 |
- >=dev-perl/Net-DNS-0.53 |
724 |
- dev-perl/Digest-SHA1 |
725 |
- dev-perl/libwww-perl |
726 |
- >=virtual/perl-Archive-Tar-1.23 |
727 |
- app-crypt/gnupg |
728 |
- >=virtual/perl-IO-Zlib-1.04 |
729 |
- >=dev-util/re2c-0.12.0 |
730 |
- dev-perl/Mail-SPF |
731 |
- >=dev-perl/NetAddr-IP-4.0.1 |
732 |
- dev-perl/Geo-IP |
733 |
- dev-perl/Encode-Detect |
734 |
- dev-perl/Net-Patricia |
735 |
- ssl? ( |
736 |
- dev-perl/IO-Socket-SSL |
737 |
- !libressl? ( dev-libs/openssl:0 ) |
738 |
- libressl? ( dev-libs/libressl ) |
739 |
- ) |
740 |
- berkdb? ( |
741 |
- virtual/perl-DB_File |
742 |
- ) |
743 |
- ldap? ( dev-perl/perl-ldap ) |
744 |
- mysql? ( |
745 |
- dev-perl/DBI |
746 |
- dev-perl/DBD-mysql |
747 |
- ) |
748 |
- postgres? ( |
749 |
- dev-perl/DBI |
750 |
- dev-perl/DBD-Pg |
751 |
- ) |
752 |
- sqlite? ( |
753 |
- dev-perl/DBI |
754 |
- dev-perl/DBD-SQLite |
755 |
- ) |
756 |
- ipv6? ( |
757 |
- || ( dev-perl/IO-Socket-INET6 |
758 |
- virtual/perl-IO-Socket-IP ) |
759 |
- )" |
760 |
-RDEPEND="${DEPEND}" |
761 |
- |
762 |
-# Some spamd tests fail, and it looks like the whole suite eventually |
763 |
-# hangs. |
764 |
-RESTRICT=test |
765 |
- |
766 |
-PATCHES=( |
767 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7199.patch" |
768 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7223.patch" |
769 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7231.patch" |
770 |
- "${FILESDIR}/spamassassin-3.4.1-bug_7265.patch" |
771 |
-) |
772 |
- |
773 |
-src_configure() { |
774 |
- # spamc can be built with ssl support. |
775 |
- local use_ssl="no" |
776 |
- if use ssl; then |
777 |
- use_ssl="yes" |
778 |
- fi |
779 |
- |
780 |
- # Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
781 |
- # (just to be sure, nobody knows how it could happen in the first place). |
782 |
- # |
783 |
- # We also set the path to the perl executable explictly. This will be |
784 |
- # used to create the initial shebang line in the scripts (bug 62276). |
785 |
- perl Makefile.PL \ |
786 |
- PREFIX="${EPREFIX}/usr" \ |
787 |
- INSTALLDIRS=vendor \ |
788 |
- SYSCONFDIR="${EPREFIX}/etc" \ |
789 |
- DATADIR="${EPREFIX}/usr/share/spamassassin" \ |
790 |
- PERL_BIN="${EPREFIX}/usr/bin/perl" \ |
791 |
- ENABLE_SSL="${use_ssl}" \ |
792 |
- DESTDIR="${D}" \ |
793 |
- || die "Unable to build!" |
794 |
- |
795 |
- # Now configure spamc. |
796 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
797 |
-} |
798 |
- |
799 |
-src_compile() { |
800 |
- PERL_MM_USE_DEFAULT=1 emake |
801 |
- |
802 |
- if use qmail; then |
803 |
- emake spamc/qmail-spamc |
804 |
- fi |
805 |
-} |
806 |
- |
807 |
-src_install () { |
808 |
- emake install |
809 |
- einstalldocs |
810 |
- |
811 |
- # Create the stub dir used by sa-update and friends |
812 |
- keepdir /var/lib/spamassassin |
813 |
- |
814 |
- # Move spamd to sbin where it belongs. |
815 |
- dodir /usr/sbin |
816 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
817 |
- |
818 |
- if use qmail; then |
819 |
- dobin spamc/qmail-spamc |
820 |
- fi |
821 |
- |
822 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
823 |
- |
824 |
- # Disable plugin by default |
825 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
826 |
- "${ED}"/etc/mail/spamassassin/init.pre \ |
827 |
- || die "failed to disable plugins by default" |
828 |
- |
829 |
- # Add the init and config scripts. |
830 |
- newinitd "${FILESDIR}"/3.4.1-spamd.init spamd |
831 |
- newconfd "${FILESDIR}"/3.4.1-spamd.conf spamd |
832 |
- |
833 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
834 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
835 |
- |
836 |
- if use postgres; then |
837 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
838 |
- |
839 |
- dodoc sql/*_pg.sql |
840 |
- else |
841 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
842 |
- fi |
843 |
- |
844 |
- if use mysql; then |
845 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
846 |
- |
847 |
- dodoc sql/*_mysql.sql |
848 |
- else |
849 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
850 |
- fi |
851 |
- |
852 |
- dodoc NOTICE TRADEMARK CREDITS UPGRADE USAGE sql/README.bayes \ |
853 |
- sql/README.awl procmailrc.example sample-nonspam.txt \ |
854 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
855 |
- spamd-apache2/README.apache |
856 |
- |
857 |
- # Rename some docu files so they don't clash with others |
858 |
- newdoc spamd/README README.spamd |
859 |
- newdoc sql/README README.sql |
860 |
- newdoc ldap/README README.ldap |
861 |
- |
862 |
- if use qmail; then |
863 |
- dodoc spamc/README.qmail |
864 |
- fi |
865 |
- |
866 |
- insinto /etc/mail/spamassassin/ |
867 |
- insopts -m0400 |
868 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
869 |
- |
870 |
- # Create the directory where sa-update stores its GPG key (if you |
871 |
- # choose to import one). If this directory does not exist, the |
872 |
- # import will fail. This is bug 396307. We expect that the import |
873 |
- # will be performed as root, and making the directory accessible |
874 |
- # only to root prevents a warning on the command-line. |
875 |
- diropts -m0700 |
876 |
- dodir /etc/mail/spamassassin/sa-update-keys |
877 |
-} |
878 |
- |
879 |
-pkg_postinst() { |
880 |
- elog |
881 |
- elog "No rules are install by default. You will need to run sa-update" |
882 |
- elog "at least once, and most likely configure SpamAssassin before it" |
883 |
- elog "will work. You should also consider a cron job for sa-update." |
884 |
- elog |
885 |
- elog "Configuration and update help can be found on the wiki:" |
886 |
- elog |
887 |
- elog " https://wiki.gentoo.org/wiki/SpamAssassin" |
888 |
- elog |
889 |
-} |
890 |
|
891 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1.ebuild |
892 |
deleted file mode 100644 |
893 |
index 4af09fd..0000000 |
894 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1.ebuild |
895 |
+++ /dev/null |
896 |
@@ -1,221 +0,0 @@ |
897 |
-# Copyright 1999-2015 Gentoo Foundation |
898 |
-# Distributed under the terms of the GNU General Public License v2 |
899 |
-# $Id$ |
900 |
- |
901 |
-EAPI=5 |
902 |
- |
903 |
-inherit perl-module toolchain-funcs eutils systemd readme.gentoo |
904 |
- |
905 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
906 |
-S=${WORKDIR}/${MY_P} |
907 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
908 |
-HOMEPAGE="http://spamassassin.apache.org/" |
909 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
910 |
- |
911 |
-LICENSE="Apache-2.0 GPL-2" |
912 |
-SLOT="0" |
913 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
914 |
-IUSE="+bayes berkdb qmail ssl doc ldap mysql postgres sqlite ipv6" |
915 |
- |
916 |
-# You can do without a database unless you need the Bayes features. |
917 |
-REQUIRED_USE="bayes? ( || ( berkdb mysql postgres sqlite ) )" |
918 |
- |
919 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
920 |
- virtual/perl-MIME-Base64 |
921 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
922 |
- virtual/perl-Storable |
923 |
- virtual/perl-Time-HiRes |
924 |
- >=dev-perl/HTML-Parser-3.43 |
925 |
- >=dev-perl/Mail-DKIM-0.37 |
926 |
- >=dev-perl/Net-DNS-0.53 |
927 |
- dev-perl/Digest-SHA1 |
928 |
- dev-perl/libwww-perl |
929 |
- >=virtual/perl-Archive-Tar-1.23 |
930 |
- app-crypt/gnupg |
931 |
- >=virtual/perl-IO-Zlib-1.04 |
932 |
- >=dev-util/re2c-0.12.0 |
933 |
- dev-perl/Mail-SPF |
934 |
- >=dev-perl/NetAddr-IP-4.0.1 |
935 |
- dev-perl/Geo-IP |
936 |
- dev-perl/Encode-Detect |
937 |
- dev-perl/Net-Patricia |
938 |
- ssl? ( |
939 |
- dev-perl/IO-Socket-SSL |
940 |
- dev-libs/openssl |
941 |
- ) |
942 |
- berkdb? ( |
943 |
- virtual/perl-DB_File |
944 |
- ) |
945 |
- ldap? ( dev-perl/perl-ldap ) |
946 |
- mysql? ( |
947 |
- dev-perl/DBI |
948 |
- dev-perl/DBD-mysql |
949 |
- ) |
950 |
- postgres? ( |
951 |
- dev-perl/DBI |
952 |
- dev-perl/DBD-Pg |
953 |
- ) |
954 |
- sqlite? ( |
955 |
- dev-perl/DBI |
956 |
- dev-perl/DBD-SQLite |
957 |
- ) |
958 |
- ipv6? ( |
959 |
- || ( dev-perl/IO-Socket-INET6 |
960 |
- virtual/perl-IO-Socket-IP ) |
961 |
- )" |
962 |
-RDEPEND="${DEPEND}" |
963 |
- |
964 |
-SRC_TEST="do" |
965 |
- |
966 |
-src_prepare() { |
967 |
- # Merged upstream |
968 |
- #epatch "${FILESDIR}/net-dns-0.76_compatibility.patch" |
969 |
- perl-module_src_prepare |
970 |
-} |
971 |
- |
972 |
-src_configure() { |
973 |
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
974 |
- # (just to be sure, nobody knows how it could happen in the first place). |
975 |
- myconf="SYSCONFDIR=${EPREFIX}/etc" |
976 |
- myconf+=" DATADIR=${EPREFIX}/usr/share/spamassassin" |
977 |
- |
978 |
- # If ssl is enabled, spamc can be built with ssl support. |
979 |
- if use ssl; then |
980 |
- myconf+=" ENABLE_SSL=yes" |
981 |
- else |
982 |
- myconf+=" ENABLE_SSL=no" |
983 |
- fi |
984 |
- |
985 |
- # Set the path to the Perl executable explictly. This will be used to |
986 |
- # create the initial sharpbang line in the scripts and might cause |
987 |
- # a versioned app name end in there, see |
988 |
- # <https://bugs.gentoo.org/show_bug.cgi?id=62276> |
989 |
- myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl" |
990 |
- |
991 |
- # Setting the following env var ensures that no questions are asked. |
992 |
- perl-module_src_configure |
993 |
- # Configure spamc |
994 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
995 |
-} |
996 |
- |
997 |
-src_compile() { |
998 |
- export PERL_MM_USE_DEFAULT=1 |
999 |
- |
1000 |
- # Now compile all the stuff selected. |
1001 |
- perl-module_src_compile |
1002 |
- |
1003 |
- if use qmail; then |
1004 |
- emake spamc/qmail-spamc |
1005 |
- fi |
1006 |
-} |
1007 |
- |
1008 |
-src_install () { |
1009 |
- perl-module_src_install |
1010 |
- |
1011 |
- # Create the stub dir used by sa-update and friends |
1012 |
- keepdir /var/lib/spamassassin |
1013 |
- |
1014 |
- # Move spamd to sbin where it belongs. |
1015 |
- dodir /usr/sbin |
1016 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
1017 |
- |
1018 |
- if use qmail; then |
1019 |
- dobin spamc/qmail-spamc |
1020 |
- fi |
1021 |
- |
1022 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
1023 |
- |
1024 |
- # Disable plugin by default |
1025 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
1026 |
- "${ED}"/etc/mail/spamassassin/init.pre \ |
1027 |
- || die "failed to disable plugins by default" |
1028 |
- |
1029 |
- # Add the init and config scripts. |
1030 |
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
1031 |
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
1032 |
- |
1033 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
1034 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
1035 |
- |
1036 |
- if use postgres; then |
1037 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
1038 |
- |
1039 |
- dodoc sql/*_pg.sql |
1040 |
- else |
1041 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
1042 |
- fi |
1043 |
- |
1044 |
- if use mysql; then |
1045 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
1046 |
- |
1047 |
- dodoc sql/*_mysql.sql |
1048 |
- else |
1049 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
1050 |
- fi |
1051 |
- |
1052 |
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
1053 |
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
1054 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
1055 |
- spamd-apache2/README.apache |
1056 |
- |
1057 |
- # Rename some docu files so they don't clash with others |
1058 |
- newdoc spamd/README README.spamd |
1059 |
- newdoc sql/README README.sql |
1060 |
- newdoc ldap/README README.ldap |
1061 |
- |
1062 |
- if use qmail; then |
1063 |
- dodoc spamc/README.qmail |
1064 |
- fi |
1065 |
- |
1066 |
- insinto /etc/mail/spamassassin/ |
1067 |
- insopts -m0400 |
1068 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
1069 |
- |
1070 |
- cat <<-EOF > "${T}/local.cf.example" |
1071 |
- # Sensitive data, such as database connection info, should be stored in |
1072 |
- # /etc/mail/spamassassin/secrets.cf with appropriate permissions |
1073 |
-EOF |
1074 |
- |
1075 |
- insopts -m0644 |
1076 |
- doins "${T}/local.cf.example" |
1077 |
-} |
1078 |
- |
1079 |
-pkg_postinst() { |
1080 |
- elog "If you plan on using the -u flag to spamd, please read the notes" |
1081 |
- elog "in /etc/conf.d/spamd regarding the location of the pid file." |
1082 |
- elog |
1083 |
- elog "If you build ${PN} with optional dependancy support," |
1084 |
- elog "you can enable them in /etc/mail/spamassassin/init.pre" |
1085 |
- elog |
1086 |
- elog "You need to configure your database to be able to use Bayes filter" |
1087 |
- elog "with database backend, otherwise it will still use (and need) the" |
1088 |
- elog "Berkeley DB support." |
1089 |
- elog "Look at the sql/README.bayes file in the documentation directory" |
1090 |
- elog "for how to configure it." |
1091 |
- elog |
1092 |
- elog "If you plan to use Vipul's Razor, note that versions up to and" |
1093 |
- elog "including version 2.82 include a bug that will slow down the entire" |
1094 |
- elog "perl interpreter. Version 2.83 or later fixes this." |
1095 |
- elog "If you do not plan to use this plugin, be sure to comment out" |
1096 |
- elog "its loadplugin line in /etc/mail/spamassassin/v310.pre." |
1097 |
- elog |
1098 |
- elog "The DKIM plugin is now enabled by default for new installs," |
1099 |
- elog "if the perl module Mail::DKIM is installed." |
1100 |
- elog "However, installation of SpamAssassin will not overwrite existing" |
1101 |
- elog ".pre configuration files, so to use DKIM when upgrading from a" |
1102 |
- elog "previous release that did not use DKIM, a directive:" |
1103 |
- elog |
1104 |
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
1105 |
- elog "will need to be uncommented in file 'v312.pre', or added" |
1106 |
- elog "to some other .pre file, such as local.pre." |
1107 |
- elog |
1108 |
- ewarn "Rules are no longer included with SpamAssassin out of the box". |
1109 |
- ewarn "You will need to immediately run sa-update, or download" |
1110 |
- ewarn "the additional rules .tgz package and run sa-update --install" |
1111 |
- ewarn "with it, to get a ruleset." |
1112 |
- elog |
1113 |
- elog "If you run sa-update and receive a GPG validation error." |
1114 |
- elog "Then you need to import an updated sa-update key." |
1115 |
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt" |
1116 |
- elog |
1117 |
-} |