1 |
ian 08/01/09 18:21:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spamassassin-3.2.4.ebuild |
5 |
Log: |
6 |
Version bump; bug #204943 |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.156 mail-filter/spamassassin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.156&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.156&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?r1=1.155&r2=1.156 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v |
19 |
retrieving revision 1.155 |
20 |
retrieving revision 1.156 |
21 |
diff -u -r1.155 -r1.156 |
22 |
--- ChangeLog 19 Aug 2007 12:19:06 -0000 1.155 |
23 |
+++ ChangeLog 9 Jan 2008 18:21:54 -0000 1.156 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-filter/spamassassin |
26 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.155 2007/08/19 12:19:06 ian Exp $ |
28 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.156 2008/01/09 18:21:54 ian Exp $ |
30 |
+ |
31 |
+*spamassassin-3.2.4 (09 Jan 2008) |
32 |
+ |
33 |
+ 09 Jan 2008; Christian Hartmann <ian@g.o> |
34 |
+ +spamassassin-3.2.4.ebuild: |
35 |
+ Version bump; bug #204943 |
36 |
|
37 |
19 Aug 2007; Christian Hartmann <ian@g.o> |
38 |
spamassassin-3.2.1.ebuild, spamassassin-3.2.1-r1.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-filter/spamassassin/spamassassin-3.2.4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: spamassassin-3.2.4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.4.ebuild,v 1.1 2008/01/09 18:21:54 ian Exp $ |
52 |
|
53 |
inherit perl-module eutils |
54 |
|
55 |
MY_P=Mail-SpamAssassin-${PV//_/-} |
56 |
S=${WORKDIR}/${MY_P} |
57 |
DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam." |
58 |
HOMEPAGE="http://spamassassin.apache.org/" |
59 |
SRC_URI="http://archive.apache.org/dist/spamassassin/source/${MY_P}.tar.bz2 mirror://gentoo/${MY_P}.tar.bz2" |
60 |
|
61 |
SRC_TEST="do" |
62 |
LICENSE="Apache-2.0" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
65 |
IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite tools ipv6" |
66 |
|
67 |
DEPEND=">=dev-lang/perl-5.8.2-r1 |
68 |
virtual/perl-MIME-Base64 |
69 |
>=virtual/perl-PodParser-1.32 |
70 |
virtual/perl-Storable |
71 |
virtual/perl-Time-HiRes |
72 |
>=dev-perl/HTML-Parser-3.43 |
73 |
>=dev-perl/Net-DNS-0.53 |
74 |
dev-perl/Digest-SHA1 |
75 |
dev-perl/libwww-perl |
76 |
>=dev-perl/Archive-Tar-1.26 |
77 |
app-crypt/gnupg |
78 |
>=dev-perl/IO-Zlib-1.04 |
79 |
>=dev-util/re2c-0.12.0 |
80 |
ssl? ( |
81 |
dev-perl/IO-Socket-SSL |
82 |
dev-libs/openssl |
83 |
) |
84 |
berkdb? ( |
85 |
virtual/perl-DB_File |
86 |
) |
87 |
ldap? ( dev-perl/perl-ldap ) |
88 |
mysql? ( |
89 |
dev-perl/DBI |
90 |
dev-perl/DBD-mysql |
91 |
) |
92 |
postgres? ( |
93 |
dev-perl/DBI |
94 |
dev-perl/DBD-Pg |
95 |
) |
96 |
sqlite? ( |
97 |
dev-perl/DBI |
98 |
dev-perl/DBD-SQLite |
99 |
) |
100 |
|
101 |
ipv6? ( |
102 |
dev-perl/IO-Socket-INET6 |
103 |
)" |
104 |
|
105 |
src_compile() { |
106 |
# - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
107 |
# (just to be sure, nobody knows how it could happen in the first place). |
108 |
myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin" |
109 |
|
110 |
# If ssl is enabled, spamc can be built with ssl support |
111 |
if use ssl; then |
112 |
myconf="${myconf} ENABLE_SSL=yes" |
113 |
else |
114 |
myconf="${myconf} ENABLE_SSL=no" |
115 |
fi |
116 |
|
117 |
# Set the path to the Perl executable explictly. This will be used to |
118 |
# create the initial sharpbang line in the scripts and might cause |
119 |
# a versioned app name end in there, see |
120 |
# <http://bugs.gentoo.org/show_bug.cgi?id=62276> |
121 |
myconf="${myconf} PERL_BIN=/usr/bin/perl" |
122 |
|
123 |
# If you are going to enable taint mode, make sure that the bug where |
124 |
# spamd doesn't start when the PATH contains . is addressed, and make |
125 |
# sure you deal with versions of razor <2.36-r1 not being taint-safe. |
126 |
# <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and |
127 |
# <http://spamassassin.org/released/Razor2.patch>. |
128 |
myconf="${myconf} PERL_TAINT=no" |
129 |
|
130 |
# No settings needed for 'make all'. |
131 |
mymake="" |
132 |
|
133 |
# Neither for 'make install'. |
134 |
myinst="" |
135 |
|
136 |
# Add Gentoo tag to make it easier for the upstream devs to spot |
137 |
# possible modifications or patches. |
138 |
version_tag="g${PV:6}${PR}" |
139 |
version_str="${PV//_/-}-${version_tag}" |
140 |
|
141 |
# Create the Gentoo config file before Makefile.PL is called so it |
142 |
# is copied later on. |
143 |
echo "version_tag ${version_tag}" > rules/11_gentoo.cf |
144 |
|
145 |
# Setting the following env var ensures that no questions are asked. |
146 |
export PERL_MM_USE_DEFAULT=1 |
147 |
perl-module_src_prep |
148 |
# Run the autoconf stuff now, just to make the build sequence look more |
149 |
# familiar to the user :) Plus feeding the VERSION_STRING skips some |
150 |
# calls to Perl. |
151 |
make spamc/Makefile VERSION_STRING="${version_str}" |
152 |
|
153 |
# Now compile all the stuff selected. |
154 |
perl-module_src_compile |
155 |
if use qmail; then |
156 |
make spamc/qmail-spamc || die building qmail-spamc failed |
157 |
fi |
158 |
|
159 |
# Remove the MANIFEST files as they aren't docu files |
160 |
rm -f MANIFEST* |
161 |
|
162 |
use doc && make text_html_doc |
163 |
} |
164 |
|
165 |
src_install () { |
166 |
perl-module_src_test |
167 |
} |
168 |
|
169 |
src_install () { |
170 |
perl-module_src_install |
171 |
|
172 |
# Create the stub dir used by sa-update and friends |
173 |
dodir /var/lib/spamassassin |
174 |
|
175 |
# Move spamd to sbin where it belongs. |
176 |
dodir /usr/sbin |
177 |
mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die |
178 |
|
179 |
use qmail && dobin spamc/qmail-spamc |
180 |
|
181 |
dosym /etc/mail/spamassassin /etc/spamassassin |
182 |
|
183 |
# Disable plugin by default |
184 |
sed -i -e 's/^loadplugin/\#loadplugin/g' ${D}/etc/mail/spamassassin/init.pre |
185 |
|
186 |
# Add the init and config scripts. |
187 |
newinitd "${FILESDIR}"/3.0.0-spamd.init spamd |
188 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd |
189 |
|
190 |
if use doc; then |
191 |
dodoc NOTICE TRADEMARK CREDITS INSTALL UPGRADE BUGS USAGE \ |
192 |
sql/README.bayes sql/README.awl README.ldap procmailrc.example \ |
193 |
sample-nonspam.txt sample-spam.txt rules/STATISTICS-set0.txt \ |
194 |
STATISTICS-set1.txt STATISTICS-set2.txt STATISTICS-set3.txt \ |
195 |
spamd/PROTOCOL |
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" |
244 |
einfo " /usr/share/doc/${PF}/INSTALL.gz" |
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" |
249 |
einfo " /usr/share/doc/${PF}/UPGRADE.gz" |
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 |
} |
303 |
|
304 |
|
305 |
|
306 |
-- |
307 |
gentoo-commits@l.g.o mailing list |