1 |
loki_val 09/10/27 07:22:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spamassassin-3.2.5-r1.ebuild |
5 |
Log: |
6 |
Fix bug 289113. Thanks to David Abbott for ebuild fixups. |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.162 mail-filter/spamassassin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.162&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.162&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?r1=1.161&r2=1.162 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v |
19 |
retrieving revision 1.161 |
20 |
retrieving revision 1.162 |
21 |
diff -u -r1.161 -r1.162 |
22 |
--- ChangeLog 16 May 2009 00:24:46 -0000 1.161 |
23 |
+++ ChangeLog 27 Oct 2009 07:22:18 -0000 1.162 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-filter/spamassassin |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.161 2009/05/16 00:24:46 halcy0n Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.162 2009/10/27 07:22:18 loki_val Exp $ |
29 |
+ |
30 |
+*spamassassin-3.2.5-r1 (27 Oct 2009) |
31 |
+ |
32 |
+ 27 Oct 2009; Peter Alfredsen <loki_val@g.o> |
33 |
+ +spamassassin-3.2.5-r1.ebuild, +files/spamassassin-3.2.5-DESTDIR.patch: |
34 |
+ Fix bug 289113. Thanks to David Abbott for ebuild fixups. |
35 |
|
36 |
16 May 2009; Mark Loeser <halcy0n@g.o> |
37 |
spamassassin-3.2.1-r1.ebuild, spamassassin-3.2.5.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-filter/spamassassin/spamassassin-3.2.5-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.5-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.5-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: spamassassin-3.2.5-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.5-r1.ebuild,v 1.1 2009/10/27 07:22:18 loki_val Exp $ |
51 |
|
52 |
inherit perl-module eutils |
53 |
|
54 |
MY_P=Mail-SpamAssassin-${PV//_/-} |
55 |
S=${WORKDIR}/${MY_P} |
56 |
DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam." |
57 |
HOMEPAGE="http://spamassassin.apache.org/" |
58 |
SRC_URI="http://archive.apache.org/dist/spamassassin/source/${MY_P}.tar.bz2 mirror://gentoo/${MY_P}.tar.bz2" |
59 |
|
60 |
SRC_TEST="do" |
61 |
LICENSE="Apache-2.0" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
64 |
IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite tools ipv6" |
65 |
|
66 |
DEPEND=">=dev-lang/perl-5.8.2-r1 |
67 |
virtual/perl-MIME-Base64 |
68 |
>=virtual/perl-PodParser-1.32 |
69 |
virtual/perl-Storable |
70 |
virtual/perl-Time-HiRes |
71 |
>=dev-perl/HTML-Parser-3.43 |
72 |
>=dev-perl/Net-DNS-0.53 |
73 |
dev-perl/Digest-SHA1 |
74 |
dev-perl/libwww-perl |
75 |
>=virtual/perl-Archive-Tar-1.26 |
76 |
app-crypt/gnupg |
77 |
>=virtual/perl-IO-Zlib-1.04 |
78 |
>=dev-util/re2c-0.12.0 |
79 |
ssl? ( |
80 |
dev-perl/IO-Socket-SSL |
81 |
dev-libs/openssl |
82 |
) |
83 |
berkdb? ( |
84 |
virtual/perl-DB_File |
85 |
) |
86 |
ldap? ( dev-perl/perl-ldap ) |
87 |
mysql? ( |
88 |
dev-perl/DBI |
89 |
dev-perl/DBD-mysql |
90 |
) |
91 |
postgres? ( |
92 |
dev-perl/DBI |
93 |
dev-perl/DBD-Pg |
94 |
) |
95 |
sqlite? ( |
96 |
dev-perl/DBI |
97 |
dev-perl/DBD-SQLite |
98 |
) |
99 |
|
100 |
ipv6? ( |
101 |
dev-perl/IO-Socket-INET6 |
102 |
)" |
103 |
|
104 |
PATCHES=( "${FILESDIR}/${PN}-3.2.5-DESTDIR.patch" ) |
105 |
|
106 |
src_compile() { |
107 |
# - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
108 |
# (just to be sure, nobody knows how it could happen in the first place). |
109 |
myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin" |
110 |
|
111 |
# If ssl is enabled, spamc can be built with ssl support |
112 |
if use ssl; then |
113 |
myconf="${myconf} ENABLE_SSL=yes" |
114 |
else |
115 |
myconf="${myconf} ENABLE_SSL=no" |
116 |
fi |
117 |
|
118 |
# Set the path to the Perl executable explictly. This will be used to |
119 |
# create the initial sharpbang line in the scripts and might cause |
120 |
# a versioned app name end in there, see |
121 |
# <http://bugs.gentoo.org/show_bug.cgi?id=62276> |
122 |
myconf="${myconf} PERL_BIN=/usr/bin/perl" |
123 |
|
124 |
# If you are going to enable taint mode, make sure that the bug where |
125 |
# spamd doesn't start when the PATH contains . is addressed, and make |
126 |
# sure you deal with versions of razor <2.36-r1 not being taint-safe. |
127 |
# <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and |
128 |
# <http://spamassassin.org/released/Razor2.patch>. |
129 |
myconf="${myconf} PERL_TAINT=no" |
130 |
|
131 |
# No settings needed for 'make all'. |
132 |
mymake="" |
133 |
|
134 |
# Neither for 'make install'. |
135 |
myinst="" |
136 |
|
137 |
# Add Gentoo tag to make it easier for the upstream devs to spot |
138 |
# possible modifications or patches. |
139 |
version_tag="g${PV:6}${PR}" |
140 |
version_str="${PV//_/-}-${version_tag}" |
141 |
|
142 |
# Create the Gentoo config file before Makefile.PL is called so it |
143 |
# is copied later on. |
144 |
echo "version_tag ${version_tag}" > rules/11_gentoo.cf |
145 |
|
146 |
# Setting the following env var ensures that no questions are asked. |
147 |
export PERL_MM_USE_DEFAULT=1 |
148 |
perl-module_src_prep |
149 |
# Run the autoconf stuff now, just to make the build sequence look more |
150 |
# familiar to the user :) Plus feeding the VERSION_STRING skips some |
151 |
# calls to Perl. |
152 |
make spamc/Makefile VERSION_STRING="${version_str}" |
153 |
|
154 |
# Now compile all the stuff selected. |
155 |
perl-module_src_compile |
156 |
if use qmail; then |
157 |
make spamc/qmail-spamc || die building qmail-spamc failed |
158 |
fi |
159 |
|
160 |
# Remove the MANIFEST files as they aren't docu files |
161 |
rm -f MANIFEST* |
162 |
|
163 |
use doc && make text_html_doc |
164 |
} |
165 |
|
166 |
src_test() { |
167 |
perl-module_src_test |
168 |
} |
169 |
|
170 |
src_install () { |
171 |
perl-module_src_install |
172 |
|
173 |
# Create the stub dir used by sa-update and friends |
174 |
dodir /var/lib/spamassassin |
175 |
|
176 |
# Move spamd to sbin where it belongs. |
177 |
dodir /usr/sbin |
178 |
mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die |
179 |
|
180 |
use qmail && dobin spamc/qmail-spamc |
181 |
|
182 |
dosym /etc/mail/spamassassin /etc/spamassassin |
183 |
|
184 |
# Disable plugin by default |
185 |
sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre |
186 |
|
187 |
# Add the init and config scripts. |
188 |
newinitd "${FILESDIR}"/3.0.0-spamd.init spamd |
189 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
190 |
|
191 |
if use doc; then |
192 |
dodoc NOTICE TRADEMARK CREDITS INSTALL INSTALL.VMS UPGRADE USAGE \ |
193 |
sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
194 |
sample-spam.txt spamassassin.spec spamd/PROTOCOL spamd/README.vpopmail \ |
195 |
spamd-apache2/README.apache |
196 |
|
197 |
# Rename some docu files so they don't clash with others |
198 |
newdoc spamd/README README.spamd |
199 |
newdoc sql/README README.sql |
200 |
newdoc ldap/README README.ldap |
201 |
use qmail && newdoc spamc/README.qmail README.qmail |
202 |
|
203 |
dohtml doc/*.html |
204 |
docinto sql |
205 |
dodoc sql/*.sql |
206 |
fi |
207 |
|
208 |
# Install provided tools. See bug 108168 |
209 |
if use tools; then |
210 |
docinto tools |
211 |
dodoc tools/* |
212 |
fi |
213 |
|
214 |
cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example |
215 |
fperms 0400 /etc/mail/spamassassin/secrets.cf.example |
216 |
echo "">>${D}/etc/mail/spamassassin/local.cf.example |
217 |
echo "# Sensitive data, such as database connection info, should">>${D}/etc/mail/spamassassin/local.cf.example |
218 |
echo "# be stored in /etc/mail/spamassassin/secrets.cf with">>${D}/etc/mail/spamassassin/local.cf.example |
219 |
echo "# appropriate permissions">>${D}/etc/mail/spamassassin/local.cf.example |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
perl-module_pkg_postinst |
224 |
|
225 |
if ! has_version "perl-core/DB_File"; then |
226 |
einfo "The Bayes backend requires the Berkeley DB to store its data. You" |
227 |
einfo "need to emerge perl-core/DB_File or USE=berkdb to make it available." |
228 |
fi |
229 |
|
230 |
if has_version "mail-filter/razor"; then |
231 |
if ! has_version ">=mail-filter/razor-2.61"; then |
232 |
ewarn "You have $(best_version mail-filter/razor) installed but SpamAssassin" |
233 |
if has_version "<mail-filter/razor-2.40"; then |
234 |
ewarn "requires at least version 2.40, version 2.61 or later is recommended." |
235 |
else |
236 |
ewarn "recommends at least version 2.61." |
237 |
fi |
238 |
fi |
239 |
fi |
240 |
|
241 |
if use doc; then |
242 |
einfo |
243 |
einfo "Please read the file INSTALL in" |
244 |
einfo " /usr/share/doc/${PF}/" |
245 |
einfo "to find out which optional modules you need to install to enable" |
246 |
einfo "additional features which depend on them." |
247 |
einfo |
248 |
einfo "If upgraded from 2.x, please read the file UPGRADE in" |
249 |
einfo " /usr/share/doc/${PF}/" |
250 |
einfo |
251 |
fi |
252 |
|
253 |
ewarn |
254 |
ewarn "spamd is not designed to listen to an untrusted network" |
255 |
ewarn "and is vulnerable to DoS attacks (and eternal doom) if" |
256 |
ewarn "configured to do so" |
257 |
ewarn |
258 |
elog "If you plan on using the -u flag to spamd, please read the notes" |
259 |
elog "in /etc/conf.d/spamd regarding the location of the pid file." |
260 |
|
261 |
einfo |
262 |
einfo "If you build ${PN} with optional dependancy support," |
263 |
einfo "you can enable them in /etc/mail/spamassassin/init.pre" |
264 |
einfo |
265 |
|
266 |
if has_version '>=dev-lang/perl-5.8.8'; then |
267 |
elog "A note from the SA developers:" |
268 |
elog "Perl 5.8 now uses Unicode internally by default, which causes trouble for" |
269 |
elog "SpamAssassin (and almost all other reasonably complex pieces of perl" |
270 |
elog "code!)." |
271 |
elog "" |
272 |
elog "We've worked around this in most places, as far as we know, but there may" |
273 |
elog "still be some issues. In addition, there is a speed hit, which it would" |
274 |
elog "be nice to avoid." |
275 |
elog "" |
276 |
elog "Setting the LANG environment variable before any invocation of" |
277 |
elog "SpamAssassin sometimes seems to help fix it, like so:" |
278 |
elog "" |
279 |
elog " export LANG=en_US" |
280 |
elog "" |
281 |
elog "Notably, the LANG setting must not include \"utf8\". However, some folks" |
282 |
elog "have reported that this makes no difference. ;)" |
283 |
fi |
284 |
einfo |
285 |
if ! has_version 'dev-perl/Mail-SPF-Query'; then |
286 |
elog "For spf support, please emerge dev-perl/Mail-SPF-Query" |
287 |
fi |
288 |
if ! has_version 'mail-filter/dcc'; then |
289 |
elog "For dcc support, please emerge mail-filter/dcc" |
290 |
fi |
291 |
if ! has_version 'dev-python/pyzor'; then |
292 |
elog "For pyzor support, please emerge dev-python/pyzor" |
293 |
fi |
294 |
if ! has_version 'mail-filter/razor'; then |
295 |
elog "For razor support, please emerge mail-filter/razor" |
296 |
fi |
297 |
einfo |
298 |
elog "For addtional functionality, you may wish to emerge:" |
299 |
elog "dev-perl/IP-Country dev-perl/Net-Ident " |
300 |
elog "dev-perl/Mail-DKIM" |
301 |
|
302 |
} |