1 |
commit: 4c790b54e67a79b03a6e013770de43539cf9aceb |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 31 18:49:38 2019 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 31 18:49:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c790b54 |
7 |
|
8 |
mail-filter/spamassassin: remove "unused" spamassassin-3.4.2-r5.ebuild. |
9 |
|
10 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
.../spamassassin/spamassassin-3.4.2-r5.ebuild | 286 --------------------- |
14 |
1 file changed, 286 deletions(-) |
15 |
|
16 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.2-r5.ebuild b/mail-filter/spamassassin/spamassassin-3.4.2-r5.ebuild |
17 |
deleted file mode 100644 |
18 |
index 2162b9ce2b6..00000000000 |
19 |
--- a/mail-filter/spamassassin/spamassassin-3.4.2-r5.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,286 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit perl-functions systemd toolchain-funcs user eapi7-ver |
28 |
- |
29 |
-MY_P="Mail-SpamAssassin-${PV//_/-}" |
30 |
-S="${WORKDIR}/${MY_P}" |
31 |
-DESCRIPTION="An extensible mail filter which can identify and tag spam" |
32 |
-HOMEPAGE="https://spamassassin.apache.org/" |
33 |
-SRC_URI="mirror://apache/spamassassin/source/${MY_P}.tar.bz2" |
34 |
- |
35 |
-LICENSE="Apache-2.0 GPL-2" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
38 |
-IUSE="berkdb cron ipv6 ldap libressl mysql postgres qmail sqlite ssl test" |
39 |
- |
40 |
-# The Makefile.PL script checks for dependencies, but only fails if a |
41 |
-# required (i.e. not optional) dependency is missing. We therefore |
42 |
-# require most of the optional modules only at runtime. |
43 |
-REQDEPEND="dev-lang/perl:= |
44 |
- dev-perl/HTML-Parser |
45 |
- dev-perl/Net-DNS |
46 |
- dev-perl/NetAddr-IP |
47 |
- virtual/perl-Archive-Tar |
48 |
- virtual/perl-Digest-SHA |
49 |
- virtual/perl-IO-Zlib |
50 |
- virtual/perl-Time-HiRes |
51 |
- ssl? ( |
52 |
- !libressl? ( dev-libs/openssl:0= ) |
53 |
- libressl? ( dev-libs/libressl ) |
54 |
- )" |
55 |
- |
56 |
-# SpamAssassin doesn't use libwww-perl except as a fallback for when |
57 |
-# curl/wget are missing, so we depend on one of those instead. Some |
58 |
-# mirrors use https, so we need those utilities to support SSL. |
59 |
-# |
60 |
-# re2c is needed to compile the rules (sa-compile). |
61 |
-# |
62 |
-# We still need the old Digest-SHA1 because razor2 has not been ported |
63 |
-# to Digest-SHA. |
64 |
-OPTDEPEND="app-crypt/gnupg |
65 |
- dev-perl/BSD-Resource |
66 |
- dev-perl/Digest-SHA1 |
67 |
- dev-perl/Encode-Detect |
68 |
- dev-perl/Geo-IP |
69 |
- dev-perl/HTTP-Date |
70 |
- dev-perl/Mail-DKIM |
71 |
- dev-perl/Mail-SPF |
72 |
- dev-perl/Net-Patricia |
73 |
- dev-perl/Net-CIDR-Lite |
74 |
- dev-util/re2c |
75 |
- || ( net-misc/wget[ssl] net-misc/curl[ssl] ) |
76 |
- virtual/perl-MIME-Base64 |
77 |
- virtual/perl-Pod-Parser |
78 |
- berkdb? ( virtual/perl-DB_File ) |
79 |
- ipv6? ( dev-perl/IO-Socket-INET6 ) |
80 |
- ldap? ( dev-perl/perl-ldap ) |
81 |
- mysql? ( |
82 |
- dev-perl/DBI |
83 |
- dev-perl/DBD-mysql |
84 |
- ) |
85 |
- postgres? ( |
86 |
- dev-perl/DBI |
87 |
- dev-perl/DBD-Pg |
88 |
- ) |
89 |
- sqlite? ( |
90 |
- dev-perl/DBI |
91 |
- dev-perl/DBD-SQLite |
92 |
- ) |
93 |
- ssl? ( dev-perl/IO-Socket-SSL )" |
94 |
- |
95 |
-DEPEND="${REQDEPEND} |
96 |
- test? ( |
97 |
- ${OPTDEPEND} |
98 |
- virtual/perl-Test-Harness |
99 |
- )" |
100 |
-RDEPEND="${REQDEPEND} ${OPTDEPEND}" |
101 |
- |
102 |
-PATCHES=( |
103 |
- "${FILESDIR}/spamassassin-3.4.2-bug_7631.patch" |
104 |
- "${FILESDIR}/spamassassin-3.4.2-bug_7632.patch" |
105 |
- "${FILESDIR}/spamassassin-3.4.2-bug_7623_p1.patch" |
106 |
- "${FILESDIR}/spamassassin-3.4.2-bug_7623_p2.patch" |
107 |
-) |
108 |
- |
109 |
-src_prepare() { |
110 |
- default |
111 |
- |
112 |
- # The sa_compile test does some weird stuff like hopping around in |
113 |
- # the directory tree and calling "make" to create a dist tarball |
114 |
- # from ${S}. It fails, and is more trouble than it's worth... |
115 |
- perl_rm_files t/sa_compile.t || die 'failed to remove sa_compile test' |
116 |
- |
117 |
- # The spamc tests (which need the networked spamd daemon) fail for |
118 |
- # irrelevant reasons. It's too hard to disable them (unlike the |
119 |
- # spamd tests themselves -- see src_test), so use a crude |
120 |
- # workaround. |
121 |
- perl_rm_files t/spamc_*.t || die 'failed to remove spamc tests' |
122 |
- |
123 |
- # Upstream bug 7622: this thing needs network access but doesn't |
124 |
- # respect the 'run_net_tests' setting. |
125 |
- perl_rm_files t/urilocalbl_geoip.t \ |
126 |
- || die 'failed to remove urilocalbl_geoip tests' |
127 |
-} |
128 |
- |
129 |
-src_configure() { |
130 |
- # This is how and where the perl-module eclass disables the |
131 |
- # MakeMaker interactive prompt. |
132 |
- export PERL_MM_USE_DEFAULT=1 |
133 |
- |
134 |
- # Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
135 |
- # (just to be sure, nobody knows how it could happen in the first place). |
136 |
- # |
137 |
- # We also set the path to the perl executable explictly. This will be |
138 |
- # used to create the initial shebang line in the scripts (bug 62276). |
139 |
- perl Makefile.PL \ |
140 |
- PREFIX="${EPREFIX}/usr" \ |
141 |
- INSTALLDIRS=vendor \ |
142 |
- SYSCONFDIR="${EPREFIX}/etc" \ |
143 |
- DATADIR="${EPREFIX}/usr/share/spamassassin" \ |
144 |
- PERL_BIN="${EPREFIX}/usr/bin/perl" \ |
145 |
- ENABLE_SSL="$(usex ssl)" \ |
146 |
- DESTDIR="${D}" \ |
147 |
- || die 'failed to create a Makefile using Makefile.PL' |
148 |
- |
149 |
- # Now configure spamc. |
150 |
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile |
151 |
-} |
152 |
- |
153 |
-src_compile() { |
154 |
- emake |
155 |
- use qmail && emake spamc/qmail-spamc |
156 |
-} |
157 |
- |
158 |
-src_install () { |
159 |
- emake install |
160 |
- einstalldocs |
161 |
- |
162 |
- # Create the stub dir used by sa-update and friends |
163 |
- keepdir /var/lib/spamassassin |
164 |
- |
165 |
- # Move spamd to sbin where it belongs. |
166 |
- dodir /usr/sbin |
167 |
- mv "${ED}"/usr/bin/spamd "${ED}"/usr/sbin/spamd || die "move spamd failed" |
168 |
- |
169 |
- if use qmail; then |
170 |
- dobin spamc/qmail-spamc |
171 |
- fi |
172 |
- |
173 |
- dosym mail/spamassassin /etc/spamassassin |
174 |
- |
175 |
- # Disable plugin by default |
176 |
- sed -i -e 's/^loadplugin/\#loadplugin/g' \ |
177 |
- "${ED}/etc/mail/spamassassin/init.pre" \ |
178 |
- || die "failed to disable plugins by default" |
179 |
- |
180 |
- # Add the init and config scripts. |
181 |
- newinitd "${FILESDIR}/3.4.1-spamd.init-r3" spamd |
182 |
- newconfd "${FILESDIR}/3.4.1-spamd.conf-r1" spamd |
183 |
- |
184 |
- systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" |
185 |
- systemd_install_serviced "${FILESDIR}/${PN}.service.conf-r2" \ |
186 |
- "${PN}.service" |
187 |
- |
188 |
- use postgres && dodoc sql/*_pg.sql |
189 |
- use mysql && dodoc sql/*_mysql.sql |
190 |
- |
191 |
- dodoc NOTICE TRADEMARK CREDITS UPGRADE USAGE sql/README.bayes \ |
192 |
- sql/README.awl procmailrc.example sample-nonspam.txt \ |
193 |
- sample-spam.txt spamd/PROTOCOL spamd/README.vpopmail \ |
194 |
- spamd-apache2/README.apache |
195 |
- |
196 |
- # Rename some files so that they don't clash with others. |
197 |
- newdoc spamd/README README.spamd |
198 |
- newdoc sql/README README.sql |
199 |
- newdoc ldap/README README.ldap |
200 |
- |
201 |
- if use qmail; then |
202 |
- dodoc spamc/README.qmail |
203 |
- fi |
204 |
- |
205 |
- insinto /etc/mail/spamassassin/ |
206 |
- insopts -m0400 |
207 |
- newins "${FILESDIR}"/secrets.cf secrets.cf.example |
208 |
- |
209 |
- # Create the directory where sa-update stores its GPG key (if you |
210 |
- # choose to import one). If this directory does not exist, the |
211 |
- # import will fail. This is bug 396307. We expect that the import |
212 |
- # will be performed as root, and making the directory accessible |
213 |
- # only to root prevents a warning on the command-line. |
214 |
- diropts -m0700 |
215 |
- dodir /etc/mail/spamassassin/sa-update-keys |
216 |
- |
217 |
- if use cron; then |
218 |
- # Install the cron job if they want it. |
219 |
- exeinto /etc/cron.daily |
220 |
- newexe "${FILESDIR}/update-spamassassin-rules.cron" \ |
221 |
- update-spamassassin-rules |
222 |
- fi |
223 |
- |
224 |
- # Remove perllocal.pod to avoid file collisions (bug #603338). |
225 |
- perl_delete_localpod || die "failed to remove perllocal.pod" |
226 |
- |
227 |
- # The perl-module eclass calls three other functions to clean |
228 |
- # up in src_install. The first fixes references to ${D} in the |
229 |
- # packlist, and is useful to us, too. The other two functions, |
230 |
- # perl_delete_emptybsdir and perl_remove_temppath, don't seem |
231 |
- # to be needed: there are no empty directories, *.bs files, or |
232 |
- # ${D} paths remaining in our installed image. |
233 |
- perl_fix_packlist || die "failed to fix paths in packlist" |
234 |
-} |
235 |
- |
236 |
-src_test() { |
237 |
- # Trick the test suite into skipping the spamd tests. Setting |
238 |
- # SPAMD_HOST to a non-localhost value causes SKIP_SPAMD_TESTS to be |
239 |
- # set in SATest.pm. |
240 |
- export SPAMD_HOST=disabled |
241 |
- default |
242 |
-} |
243 |
- |
244 |
-pkg_preinst() { |
245 |
- # The spamd daemon runs as this user. Use a real home directory so |
246 |
- # that it can hold SA configuration. |
247 |
- enewuser spamd -1 -1 /home/spamd |
248 |
- |
249 |
- if use mysql || use postgres ; then |
250 |
- local _awlwarn=0 |
251 |
- local _v |
252 |
- for _v in ${REPLACING_VERSIONS}; do |
253 |
- if ! ver_test "${_v}" -gt "3.4.2-r3"; then |
254 |
- _awlwarn=1 |
255 |
- fi |
256 |
- done |
257 |
- if [[ ${_awlwarn} == 1 ]] ; then |
258 |
- ewarn 'If you used AWL before 3.4.2, the SQL schema has changed.' |
259 |
- ewarn 'You will need to manually ALTER your tables for them to' |
260 |
- ewarn 'continue working. See the UPGRADE documentation for' |
261 |
- ewarn 'details.' |
262 |
- ewarn |
263 |
- fi |
264 |
- fi |
265 |
-} |
266 |
- |
267 |
-pkg_postinst() { |
268 |
- elog |
269 |
- elog 'No rules are installed by default. You will need to run sa-update' |
270 |
- elog 'at least once, and most likely configure SpamAssassin before it' |
271 |
- elog 'will work.' |
272 |
- |
273 |
- if ! use cron; then |
274 |
- elog |
275 |
- elog 'You should consider a cron job for sa-update. One is provided' |
276 |
- elog 'for daily updates if you enable the "cron" USE flag.' |
277 |
- fi |
278 |
- elog |
279 |
- elog 'Configuration and update help can be found on the wiki:' |
280 |
- elog |
281 |
- elog ' https://wiki.gentoo.org/wiki/SpamAssassin' |
282 |
- elog |
283 |
- |
284 |
- if use mysql || use postgres ; then |
285 |
- local _v |
286 |
- for _v in ${REPLACING_VERSIONS}; do |
287 |
- if ver_test "${_v}" -lt "3.4.2-r3"; then |
288 |
- ewarn |
289 |
- ewarn 'If you used AWL before 3.4.2, the SQL schema has changed.' |
290 |
- ewarn 'You will need to manually ALTER your tables for them to' |
291 |
- ewarn 'continue working. See the UPGRADE documentation for' |
292 |
- ewarn 'details.' |
293 |
- ewarn |
294 |
- |
295 |
- # show this only once |
296 |
- break |
297 |
- fi |
298 |
- done |
299 |
- fi |
300 |
- |
301 |
- ewarn 'If this version of SpamAssassin causes permissions issues' |
302 |
- ewarn 'with your user configurations or bayes databases, then you' |
303 |
- ewarn 'may need to set SPAMD_RUN_AS_ROOT=true in your OpenRC service' |
304 |
- ewarn 'configuration file, or remove the --username and --groupname' |
305 |
- ewarn 'flags from the SPAMD_OPTS variable in your systemd service' |
306 |
- ewarn 'configuration file.' |
307 |
-} |