1 |
commit: 348e2feb5946aba2dc35856cc867fb18319d03c1 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 14:43:28 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 14:43:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=348e2feb |
7 |
|
8 |
mail-filter/spamassassin: remove old version spamassassin-3.4.0-r1. |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
mail-filter/spamassassin/Manifest | 1 - |
13 |
.../spamassassin/spamassassin-3.4.0-r1.ebuild | 212 --------------------- |
14 |
2 files changed, 213 deletions(-) |
15 |
|
16 |
diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest |
17 |
index d91b4e1..24589b7 100644 |
18 |
--- a/mail-filter/spamassassin/Manifest |
19 |
+++ b/mail-filter/spamassassin/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST Mail-SpamAssassin-3.4.0.tar.bz2 1065544 SHA256 553b39bae969b4ba20854c0a0fa1eba2a6aa0f4e103b530e0da4e152cdce4714 SHA512 4a04604a0331a9c23cd10d4fb58e5ca5d3e592bbeffacf0f89b379e5b46118f8b1500d671606a2407115f90fb633a713c8ed557f0db155f4645e263175b0946c WHIRLPOOL 401d61a0ab8bd906b14effb0125aeb3b1a87cdd115484b0787410a03208208e6dfb3c7a440c82ff2334c093555ac7e4eae8b9fc735de5e503f1396a172cec927 |
22 |
DIST Mail-SpamAssassin-3.4.1.tar.bz2 2710985 SHA256 a0c1c9808f0684b389594eb8b2ccbace6486546593493f9308c9554563d14651 SHA512 91d50e2ce6520e3e1c7bc66da133a0815be34ced15e26b6e6c17af5a03d5c62f41d8086f25f65084d6634497148cf5439977d7d4a44d7c3e307535beac6629af WHIRLPOOL 1465fcbc0456c9a671087d395c2a9998e3852a47153a0f6770158a2a311196490274c620aab89e2a6ff163defa72b8e785032f9450e7903df355544d957e8908 |
23 |
|
24 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild b/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild |
25 |
deleted file mode 100644 |
26 |
index 5c1db07..00000000 |
27 |
--- a/mail-filter/spamassassin/spamassassin-3.4.0-r1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,212 +0,0 @@ |
30 |
-# Copyright 1999-2016 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
-# $Id$ |
33 |
- |
34 |
-EAPI=5 |
35 |
- |
36 |
-inherit perl-module toolchain-funcs eutils systemd readme.gentoo |
37 |
- |
38 |
-MY_P=Mail-SpamAssassin-${PV//_/-} |
39 |
-S=${WORKDIR}/${MY_P} |
40 |
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam" |
41 |
-HOMEPAGE="http://spamassassin.apache.org/" |
42 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
43 |
- |
44 |
-LICENSE="Apache-2.0 GPL-2" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
47 |
-IUSE="+berkdb qmail ssl doc ldap mysql postgres sqlite ipv6" |
48 |
- |
49 |
-REQUIRED_USE="|| ( berkdb mysql postgres sqlite )" |
50 |
- |
51 |
-DEPEND=">=dev-lang/perl-5.8.8-r8 |
52 |
- virtual/perl-MIME-Base64 |
53 |
- >=virtual/perl-Pod-Parser-1.510.0-r2 |
54 |
- virtual/perl-Storable |
55 |
- virtual/perl-Time-HiRes |
56 |
- >=dev-perl/HTML-Parser-3.43 |
57 |
- >=dev-perl/Mail-DKIM-0.37 |
58 |
- >=dev-perl/Net-DNS-0.53 |
59 |
- dev-perl/Digest-SHA1 |
60 |
- dev-perl/libwww-perl |
61 |
- >=virtual/perl-Archive-Tar-1.23 |
62 |
- app-crypt/gnupg |
63 |
- >=virtual/perl-IO-Zlib-1.04 |
64 |
- >=dev-util/re2c-0.12.0 |
65 |
- dev-perl/Mail-SPF |
66 |
- >=dev-perl/NetAddr-IP-4.0.1 |
67 |
- dev-perl/Geo-IP |
68 |
- dev-perl/Encode-Detect |
69 |
- dev-perl/Net-Patricia |
70 |
- ssl? ( |
71 |
- dev-perl/IO-Socket-SSL |
72 |
- dev-libs/openssl |
73 |
- ) |
74 |
- berkdb? ( |
75 |
- virtual/perl-DB_File |
76 |
- ) |
77 |
- ldap? ( dev-perl/perl-ldap ) |
78 |
- mysql? ( |
79 |
- dev-perl/DBI |
80 |
- dev-perl/DBD-mysql |
81 |
- ) |
82 |
- postgres? ( |
83 |
- dev-perl/DBI |
84 |
- dev-perl/DBD-Pg |
85 |
- ) |
86 |
- sqlite? ( |
87 |
- dev-perl/DBI |
88 |
- dev-perl/DBD-SQLite |
89 |
- ) |
90 |
- ipv6? ( |
91 |
- || ( dev-perl/IO-Socket-INET6 |
92 |
- virtual/perl-IO-Socket-IP ) |
93 |
- )" |
94 |
-RDEPEND="${DEPEND}" |
95 |
- |
96 |
-SRC_TEST="do" |
97 |
- |
98 |
-src_configure() { |
99 |
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
100 |
- # (just to be sure, nobody knows how it could happen in the first place). |
101 |
- myconf="SYSCONFDIR=${EPREFIX}/etc DATADIR=${EPREFIX}/usr/share/spamassassin" |
102 |
- |
103 |
- # If ssl is enabled, spamc can be built with ssl support |
104 |
- if use ssl; then |
105 |
- myconf+=" ENABLE_SSL=yes" |
106 |
- else |
107 |
- myconf+=" ENABLE_SSL=no" |
108 |
- fi |
109 |
- |
110 |
- # Set the path to the Perl executable explictly. This will be used to |
111 |
- # create the initial sharpbang line in the scripts and might cause |
112 |
- # a versioned app name end in there, see |
113 |
- # <https://bugs.gentoo.org/show_bug.cgi?id=62276> |
114 |
- myconf+=" PERL_BIN=${EPREFIX}/usr/bin/perl" |
115 |
- |
116 |
- # Add Gentoo tag to make it easy for the upstream devs to spot |
117 |
- # possible modifications or patches. |
118 |
- #version_tag="g${PV:6}${PR}" |
119 |
- #version_str="${PV//_/-}-${version_tag}" |
120 |
- |
121 |
- # Create the Gentoo config file before Makefile.PL is called so it |
122 |
- # is copied later on. |
123 |
- #echo "version_tag ${version_tag}" > rules/11_gentoo.cf |
124 |
- |
125 |
- # Setting the following env var ensures that no questions are asked. |
126 |
- perl-module_src_configure |
127 |
- # Configure spamc |
128 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
129 |
-} |
130 |
- |
131 |
-src_compile() { |
132 |
- export PERL_MM_USE_DEFAULT=1 |
133 |
- |
134 |
- # Now compile all the stuff selected. |
135 |
- perl-module_src_compile |
136 |
- |
137 |
- if use qmail; then |
138 |
- emake spamc/qmail-spamc |
139 |
- fi |
140 |
- |
141 |
-} |
142 |
- |
143 |
-src_install () { |
144 |
- perl-module_src_install |
145 |
- |
146 |
- # Create the stub dir used by sa-update and friends |
147 |
- keepdir /var/lib/spamassassin |
148 |
- |
149 |
- # Move spamd to sbin where it belongs. |
150 |
- dodir /usr/sbin |
151 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
152 |
- |
153 |
- if use qmail; then |
154 |
- dobin spamc/qmail-spamc |
155 |
- fi |
156 |
- |
157 |
- ln -s mail/spamassassin "${ED}"/etc/spamassassin || die |
158 |
- |
159 |
- # Disable plugin by default |
160 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' "${ED}"/etc/mail/spamassassin/init.pre || die |
161 |
- |
162 |
- # Add the init and config scripts. |
163 |
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd |
164 |
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
165 |
- |
166 |
- systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
167 |
- systemd_install_serviced "${FILESDIR}"/${PN}.service.conf |
168 |
- |
169 |
- if use postgres; then |
170 |
- sed -i -e 's:@USEPOSTGRES@::' "${ED}/etc/init.d/spamd" || die |
171 |
- |
172 |
- dodoc sql/*_pg.sql |
173 |
- else |
174 |
- sed -i -e '/@USEPOSTGRES@/d' "${ED}/etc/init.d/spamd" || die |
175 |
- fi |
176 |
- |
177 |
- if use mysql; then |
178 |
- sed -i -e 's:@USEMYSQL@::' "${ED}/etc/init.d/spamd" || die |
179 |
- |
180 |
- dodoc sql/*_mysql.sql |
181 |
- else |
182 |
- sed -i -e '/@USEMYSQL@/d' "${ED}/etc/init.d/spamd" || die |
183 |
- fi |
184 |
- |
185 |
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
186 |
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
187 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
188 |
- spamd-apache2/README.apache |
189 |
- |
190 |
- # Rename some docu files so they don't clash with others |
191 |
- newdoc spamd/README README.spamd |
192 |
- newdoc sql/README README.sql |
193 |
- newdoc ldap/README README.ldap |
194 |
- |
195 |
- if use qmail; then |
196 |
- dodoc spamc/README.qmail |
197 |
- fi |
198 |
- |
199 |
- cp "${FILESDIR}"/secrets.cf "${ED}"/etc/mail/spamassassin/secrets.cf.example || die |
200 |
- fperms 0400 /etc/mail/spamassassin/secrets.cf.example |
201 |
- |
202 |
- cat <<-EOF > "${T}/local.cf.example" |
203 |
- # Sensitive data, such as database connection info, should be stored in |
204 |
- # /etc/mail/spamassassin/secrets.cf with appropriate permissions |
205 |
-EOF |
206 |
- |
207 |
- insinto /etc/mail/spamassassin/ |
208 |
- doins "${T}/local.cf.example" |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- elog "If you plan on using the -u flag to spamd, please read the notes" |
213 |
- elog "in /etc/conf.d/spamd regarding the location of the pid file.\n" |
214 |
- elog "If you build ${PN} with optional dependancy support," |
215 |
- elog "you can enable them in /etc/mail/spamassassin/init.pre\n" |
216 |
- elog "You need to configure your database to be able to use Bayes filter" |
217 |
- elog "with database backend, otherwise it will still use (and need) the" |
218 |
- elog "Berkeley DB support." |
219 |
- elog "Look at the sql/README.bayes file in the documentation directory" |
220 |
- elog "for how to configure it.\n" |
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.\n" |
226 |
- elog "The DKIM plugin is now enabled by default for new installs," |
227 |
- elog "if the perl module Mail::DKIM is installed." |
228 |
- elog "However, installation of SpamAssassin will not overwrite existing" |
229 |
- elog ".pre configuration files, so to use DKIM when upgrading from a" |
230 |
- elog "previous release that did not use DKIM, a directive:\n" |
231 |
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
232 |
- elog "will need to be uncommented in file 'v312.pre', or added" |
233 |
- elog "to some other .pre file, such as local.pre.\n" |
234 |
- ewarn "Rules are no longer included with SpamAssassin out of the box". |
235 |
- ewarn "You will need to immediately run sa-update, or download" |
236 |
- ewarn "the additional rules .tgz package and run sa-update --install" |
237 |
- ewarn "with it, to get a ruleset.\n" |
238 |
- elog "If you run sa-update and receive a GPG validation error." |
239 |
- elog "Then you need to import an updated sa-update key." |
240 |
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt\n" |
241 |
-} |