1 |
darkside 10/04/06 01:46:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spamassassin-3.3.1.ebuild |
5 |
Log: |
6 |
Version bump. Thanks to David Abbott and others in bug 301119 |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.176 mail-filter/spamassassin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.176&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?rev=1.176&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/ChangeLog?r1=1.175&r2=1.176 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v |
19 |
retrieving revision 1.175 |
20 |
retrieving revision 1.176 |
21 |
diff -u -r1.175 -r1.176 |
22 |
--- ChangeLog 19 Mar 2010 17:03:12 -0000 1.175 |
23 |
+++ ChangeLog 6 Apr 2010 01:46:38 -0000 1.176 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-filter/spamassassin |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.175 2010/03/19 17:03:12 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.176 2010/04/06 01:46:38 darkside Exp $ |
29 |
+ |
30 |
+*spamassassin-3.3.1 (06 Apr 2010) |
31 |
+ |
32 |
+ 06 Apr 2010; Jeremy Olexa <darkside@g.o> +files/3.3.1-spamd.init, |
33 |
+ +spamassassin-3.3.1.ebuild: |
34 |
+ Version bump. Thanks to David Abbott and others in bug 301119 |
35 |
|
36 |
19 Mar 2010; Jeroen Roovers <jer@g.o> spamassassin-3.2.5-r2.ebuild: |
37 |
Stable for HPPA (bug #301125). |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-filter/spamassassin/spamassassin-3.3.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: spamassassin-3.3.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.3.1.ebuild,v 1.1 2010/04/06 01:46:38 darkside Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit perl-module eutils |
55 |
|
56 |
MY_P=Mail-SpamAssassin-${PV//_/-} |
57 |
S=${WORKDIR}/${MY_P} |
58 |
DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam." |
59 |
HOMEPAGE="http://spamassassin.apache.org/" |
60 |
SRC_URI="http://apache.osuosl.org/spamassassin/source/${MY_P}.tar.bz2" |
61 |
|
62 |
LICENSE="Apache-2.0" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~sparc ~x86" |
65 |
# need keyword request for Mail-SPF ppc ppc64 |
66 |
IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6" |
67 |
|
68 |
DEPEND=">=dev-lang/perl-5.8.8-r8 |
69 |
virtual/perl-MIME-Base64 |
70 |
>=virtual/perl-PodParser-1.32 |
71 |
virtual/perl-Storable |
72 |
virtual/perl-Time-HiRes |
73 |
>=dev-perl/HTML-Parser-3.43 |
74 |
>=dev-perl/Mail-DKIM-0.37 |
75 |
>=dev-perl/Net-DNS-0.53 |
76 |
dev-perl/Digest-SHA1 |
77 |
dev-perl/libwww-perl |
78 |
>=virtual/perl-Archive-Tar-1.26 |
79 |
app-crypt/gnupg |
80 |
>=virtual/perl-IO-Zlib-1.04 |
81 |
>=dev-util/re2c-0.12.0 |
82 |
dev-perl/Mail-SPF |
83 |
dev-perl/NetAddr-IP |
84 |
ssl? ( |
85 |
dev-perl/IO-Socket-SSL |
86 |
dev-libs/openssl |
87 |
) |
88 |
berkdb? ( |
89 |
virtual/perl-DB_File |
90 |
) |
91 |
ldap? ( dev-perl/perl-ldap ) |
92 |
mysql? ( |
93 |
dev-perl/DBI |
94 |
dev-perl/DBD-mysql |
95 |
) |
96 |
postgres? ( |
97 |
dev-perl/DBI |
98 |
dev-perl/DBD-Pg |
99 |
) |
100 |
sqlite? ( |
101 |
dev-perl/DBI |
102 |
dev-perl/DBD-SQLite |
103 |
) |
104 |
ipv6? ( |
105 |
dev-perl/IO-Socket-INET6 |
106 |
)" |
107 |
|
108 |
RDEPEND="${DEPEND}" |
109 |
|
110 |
SRC_TEST="do" |
111 |
|
112 |
src_configure() { |
113 |
# - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
114 |
# (just to be sure, nobody knows how it could happen in the first place). |
115 |
myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin" |
116 |
|
117 |
# If ssl is enabled, spamc can be built with ssl support |
118 |
if use ssl; then |
119 |
myconf+=" ENABLE_SSL=yes" |
120 |
else |
121 |
myconf+=" ENABLE_SSL=no" |
122 |
fi |
123 |
|
124 |
# Set the path to the Perl executable explictly. This will be used to |
125 |
# create the initial sharpbang line in the scripts and might cause |
126 |
# a versioned app name end in there, see |
127 |
# <http://bugs.gentoo.org/show_bug.cgi?id=62276> |
128 |
myconf+=" PERL_BIN=/usr/bin/perl" |
129 |
|
130 |
# Add Gentoo tag to make it easy for the upstream devs to spot |
131 |
# possible modifications or patches. |
132 |
#version_tag="g${PV:6}${PR}" |
133 |
#version_str="${PV//_/-}-${version_tag}" |
134 |
|
135 |
# Create the Gentoo config file before Makefile.PL is called so it |
136 |
# is copied later on. |
137 |
#echo "version_tag ${version_tag}" > rules/11_gentoo.cf |
138 |
|
139 |
# Setting the following env var ensures that no questions are asked. |
140 |
perl-module_src_configure |
141 |
} |
142 |
|
143 |
src_compile() { |
144 |
mymake="" |
145 |
myinst="" |
146 |
|
147 |
export PERL_MM_USE_DEFAULT=1 |
148 |
emake spamc/Makefile || die "emake failed" |
149 |
|
150 |
# Now compile all the stuff selected. |
151 |
perl-module_src_compile |
152 |
|
153 |
if use qmail; then |
154 |
emake spamc/qmail-spamc || die "building qmail-spamc emake failed" |
155 |
fi |
156 |
|
157 |
} |
158 |
|
159 |
src_install () { |
160 |
perl-module_src_install |
161 |
|
162 |
# Create the stub dir used by sa-update and friends |
163 |
dodir /var/lib/spamassassin || die |
164 |
|
165 |
# Move spamd to sbin where it belongs. |
166 |
dodir /usr/sbin |
167 |
mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die "move spamd failed" |
168 |
|
169 |
if use qmail; then |
170 |
dobin spamc/qmail-spamc || die |
171 |
fi |
172 |
|
173 |
dosym /etc/mail/spamassassin /etc/spamassassin || die |
174 |
|
175 |
# Disable plugin by default |
176 |
sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre || die |
177 |
|
178 |
# Add the init and config scripts. |
179 |
newinitd "${FILESDIR}"/3.3.1-spamd.init spamd || die |
180 |
newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd || die |
181 |
|
182 |
use postgres && \ |
183 |
sed -i -e 's:@USEPOSTGRES@::' "${D}/etc/init.d/spamd" || \ |
184 |
sed -i -e '/@USEPOSTGRES@/d' "${D}/etc/init.d/spamd" |
185 |
|
186 |
use mysql && \ |
187 |
sed -i -e 's:@USEMYSQL@::' "${D}/etc/init.d/spamd" || \ |
188 |
sed -i -e '/@USEMYSQL@/d' "${D}/etc/init.d/spamd" |
189 |
|
190 |
dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \ |
191 |
sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \ |
192 |
sample-spam.txt spamassassin.spec spamd/PROTOCOL spamd/README.vpopmail \ |
193 |
spamd-apache2/README.apache || die |
194 |
|
195 |
# Rename some docu files so they don't clash with others |
196 |
newdoc spamd/README README.spamd || die |
197 |
newdoc sql/README README.sql || die |
198 |
newdoc ldap/README README.ldap || die |
199 |
|
200 |
if use qmail; then |
201 |
dodoc spamc/README.qmail || die |
202 |
fi |
203 |
|
204 |
cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example || die |
205 |
fperms 0400 /etc/mail/spamassassin/secrets.cf.example |
206 |
|
207 |
cat <<EOF > "${T}/local.cf.example" |
208 |
# Sensitive data, such as database connection info, should be stored in |
209 |
# /etc/mail/spamassassin/secrets.cf with appropriate permissions |
210 |
EOF |
211 |
|
212 |
insinto /etc/mail/spamassassin/ |
213 |
doins "${T}/local.cf.example" || die |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
perl-module_pkg_postinst |
218 |
elog "If you plan on using the -u flag to spamd, please read the notes" |
219 |
elog "in /etc/conf.d/spamd regarding the location of the pid file.\n" |
220 |
elog "If you build ${PN} with optional dependancy support," |
221 |
elog "you can enable them in /etc/mail/spamassassin/init.pre\n" |
222 |
elog "You need to configure your database to be able to use Bayes filter" |
223 |
elog "with database backend, otherwise it will still use (and need) the" |
224 |
elog "Berkeley DB support." |
225 |
elog "Look at the sql/README.bayes file in the documentation directory" |
226 |
elog "for how to configure it.\n" |
227 |
elog "If you plan to use Vipul's Razor, note that versions up to and" |
228 |
elog "including version 2.82 include a bug that will slow down the entire" |
229 |
elog "perl interpreter. Version 2.83 or later fixes this." |
230 |
elog "If you do not plan to use this plugin, be sure to comment out" |
231 |
elog "its loadplugin line in /etc/mail/spamassassin/v310.pre.\n" |
232 |
elog "The DKIM plugin is now enabled by default for new installs," |
233 |
elog "if the perl module Mail::DKIM is installed." |
234 |
elog "However, installation of SpamAssassin will not overwrite existing" |
235 |
elog ".pre configuration files, so to use DKIM when upgrading from a" |
236 |
elog "previous release that did not use DKIM, a directive:\n" |
237 |
elog "loadplugin Mail::SpamAssassin::Plugin::DKIM" |
238 |
elog "will need to be uncommented in file 'v312.pre', or added" |
239 |
elog "to some other .pre file, such as local.pre.\n" |
240 |
ewarn "Rules are no longer included with SpamAssassin out of the box". |
241 |
ewarn "You will need to immediately run sa-update, or download" |
242 |
ewarn "the additional rules .tgz package and run sa-update --install" |
243 |
ewarn "with it, to get a ruleset." |
244 |
} |