1 |
dertobi123 08/12/01 20:54:32 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: amavisd-new-2.6.1-r1.ebuild |
5 |
Log: |
6 |
Revbump, move has_version logic into USE flags and disable spam-checking if spamassassin isn't available (bug #235912 - somewhat) |
7 |
(Portage version: 2.2_rc16/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 mail-filter/amavisd-new/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/metadata.xml?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/metadata.xml?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/metadata.xml?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/metadata.xml,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- metadata.xml 23 Aug 2008 05:41:48 -0000 1.2 |
23 |
+++ metadata.xml 1 Dec 2008 20:54:32 -0000 1.3 |
24 |
@@ -7,5 +7,9 @@ |
25 |
<flag name='courier'>Add support for usage with courierfilter</flag> |
26 |
<flag name='dkim'>Add optional Yahoo! DomainKey support</flag> |
27 |
<flag name='qmail'>Add support for qmail</flag> |
28 |
+ <flag name='razor'>Configure mail-filter/razor, a distributed, collaborative |
29 |
+ spam detection and filtering network for use with amavisd-new</flag> |
30 |
+ <flag name='spamassassin'>Enable usage of mail-filter/spamassassin for spam |
31 |
+ protection</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.129 mail-filter/amavisd-new/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.129&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.129&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/ChangeLog?r1=1.128&r2=1.129 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v |
46 |
retrieving revision 1.128 |
47 |
retrieving revision 1.129 |
48 |
diff -u -r1.128 -r1.129 |
49 |
--- ChangeLog 20 Nov 2008 16:15:43 -0000 1.128 |
50 |
+++ ChangeLog 1 Dec 2008 20:54:32 -0000 1.129 |
51 |
@@ -1,6 +1,13 @@ |
52 |
# ChangeLog for mail-filter/amavisd-new |
53 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.128 2008/11/20 16:15:43 jer Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.129 2008/12/01 20:54:32 dertobi123 Exp $ |
56 |
+ |
57 |
+*amavisd-new-2.6.1-r1 (01 Dec 2008) |
58 |
+ |
59 |
+ 01 Dec 2008; Tobias Scherbaum <dertobi123@g.o> metadata.xml, |
60 |
+ +amavisd-new-2.6.1-r1.ebuild: |
61 |
+ Revbump, move has_version logic into USE flags and disable spam-checking if |
62 |
+ spamassassin isn't available (bug #235912 - somewhat) |
63 |
|
64 |
20 Nov 2008; Jeroen Roovers <jer@g.o> amavisd-new-2.6.1.ebuild: |
65 |
Marked ~hppa too (thanks to LuckyLuke). |
66 |
|
67 |
|
68 |
|
69 |
1.1 mail-filter/amavisd-new/amavisd-new-2.6.1-r1.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.6.1-r1.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.6.1-r1.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: amavisd-new-2.6.1-r1.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2008 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.6.1-r1.ebuild,v 1.1 2008/12/01 20:54:32 dertobi123 Exp $ |
79 |
|
80 |
inherit eutils |
81 |
|
82 |
DESCRIPTION="High-performance interface between the MTA and content checkers." |
83 |
HOMEPAGE="http://www.ijs.si/software/amavisd/" |
84 |
SRC_URI="http://www.ijs.si/software/amavisd/${P}.tar.gz" |
85 |
|
86 |
LICENSE="GPL-2" |
87 |
SLOT="0" |
88 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
89 |
IUSE="courier dkim ldap milter mysql postgres qmail razor spamassassin" |
90 |
|
91 |
DEPEND=">=sys-apps/sed-4 |
92 |
>=dev-lang/perl-5.8.2 |
93 |
milter? ( || ( mail-filter/libmilter >=mail-mta/sendmail-8.12 ) )" |
94 |
|
95 |
RDEPEND="${DEPEND} |
96 |
>=sys-apps/coreutils-5.0-r3 |
97 |
app-arch/gzip |
98 |
app-arch/bzip2 |
99 |
app-arch/arc |
100 |
app-arch/cabextract |
101 |
app-arch/freeze |
102 |
app-arch/lha |
103 |
app-arch/unarj |
104 |
|| ( app-arch/unrar app-arch/rar ) |
105 |
app-arch/zoo |
106 |
>=dev-perl/Archive-Zip-1.14 |
107 |
>=virtual/perl-Compress-Zlib-1.35 |
108 |
dev-perl/Convert-TNEF |
109 |
>=dev-perl/Convert-UUlib-1.08 |
110 |
virtual/perl-MIME-Base64 |
111 |
>=dev-perl/MIME-tools-5.415 |
112 |
>=dev-perl/MailTools-1.58 |
113 |
>=dev-perl/net-server-0.91 |
114 |
virtual/perl-Digest-MD5 |
115 |
dev-perl/IO-stringy |
116 |
>=virtual/perl-Time-HiRes-1.49 |
117 |
dev-perl/Unix-Syslog |
118 |
>=sys-libs/db-3.2 |
119 |
dev-perl/BerkeleyDB |
120 |
virtual/mta |
121 |
ldap? ( >=dev-perl/perl-ldap-0.33 ) |
122 |
mysql? ( dev-perl/DBD-mysql ) |
123 |
postgres? ( dev-perl/DBD-Pg ) |
124 |
dkim? ( >=dev-perl/Mail-DKIM-0.31 ) |
125 |
razor? ( mail-filter/razor ) |
126 |
spamassassin? ( mail-filter/spamassassin )" |
127 |
|
128 |
AMAVIS_ROOT="/var/amavis" |
129 |
|
130 |
src_unpack() { |
131 |
unpack ${A} |
132 |
cd "${S}" |
133 |
|
134 |
if use courier ; then |
135 |
epatch amavisd-new-courier.patch |
136 |
fi |
137 |
|
138 |
if use qmail ; then |
139 |
epatch amavisd-new-qmqpqq.patch |
140 |
fi |
141 |
|
142 |
epatch "${FILESDIR}/${PN}-2.4.4-amavisd.conf-gentoo.patch" |
143 |
|
144 |
if ! use dkim ; then |
145 |
epatch "${FILESDIR}/${PN}-dkimconf.patch" |
146 |
fi |
147 |
} |
148 |
|
149 |
src_compile() { |
150 |
if use milter ; then |
151 |
cd "${S}/helper-progs" |
152 |
|
153 |
econf --with-runtime-dir=${AMAVIS_ROOT} \ |
154 |
--with-sockname=${AMAVIS_ROOT}/amavisd.sock \ |
155 |
--with-user=amavis || die "helper-progs econf failed" |
156 |
emake || die "helper-progs compile problem" |
157 |
|
158 |
cd "${S}" |
159 |
fi |
160 |
} |
161 |
|
162 |
src_install() { |
163 |
dosbin amavisd amavisd-agent amavisd-nanny amavisd-release |
164 |
dobin p0f-analyzer.pl |
165 |
|
166 |
insinto /etc |
167 |
insopts -m0640 |
168 |
newins amavisd.conf-sample amavisd.conf |
169 |
|
170 |
dosed "s:^#\\?\\\$MYHOME[^;]*;:\$MYHOME = '$AMAVIS_ROOT';:" \ |
171 |
/etc/amavisd.conf |
172 |
|
173 |
newinitd "${FILESDIR}/amavisd.rc6" amavisd |
174 |
dosed "s:/var/run/amavis/:$AMAVIS_ROOT/:g" /etc/init.d/amavisd |
175 |
|
176 |
keepdir ${AMAVIS_ROOT} |
177 |
keepdir ${AMAVIS_ROOT}/db |
178 |
keepdir ${AMAVIS_ROOT}/quarantine |
179 |
keepdir ${AMAVIS_ROOT}/tmp |
180 |
|
181 |
newdoc test-messages/README README.samples |
182 |
dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES README_FILES/README.* \ |
183 |
test-messages/sample* amavisd.conf-default amavisd-agent \ |
184 |
amavisd-custom.conf |
185 |
|
186 |
dodir /usr/share/doc/${PF}/html |
187 |
insinto /usr/share/doc/${PF}/html |
188 |
doins README_FILES/*.{html,css} |
189 |
dodir /usr/share/doc/${PF}/html/images |
190 |
insinto /usr/share/doc/${PF}/html/images |
191 |
doins README_FILES/images/* |
192 |
|
193 |
if use milter ; then |
194 |
cd "${S}/helper-progs" |
195 |
einstall |
196 |
cd "${S}" |
197 |
fi |
198 |
|
199 |
for i in whitelist blacklist spam_lovers; do |
200 |
if [ -f ${AMAVIS_ROOT}/${i} ]; then |
201 |
cp "${AMAVIS_ROOT}/${i}" "${D}/${AMAVIS_ROOT}" |
202 |
else |
203 |
touch "${D}"/${AMAVIS_ROOT}/${i} |
204 |
fi |
205 |
done |
206 |
|
207 |
if use ldap ; then |
208 |
elog "Adding ${P} schema to openldap schema dir." |
209 |
dodir /etc/openldap/schema |
210 |
insinto /etc/openldap/schema |
211 |
insopts -o root -g root -m 644 |
212 |
newins LDAP.schema ${PN}.schema || die |
213 |
newins LDAP.schema ${PN}.schema.default || die |
214 |
fi |
215 |
|
216 |
find "${D}"/${AMAVIS_ROOT} -name "*" -type d -exec chmod 0750 \{\} \; |
217 |
find "${D}"/${AMAVIS_ROOT} -name "*" -type f -exec chmod 0640 \{\} \; |
218 |
} |
219 |
|
220 |
pkg_preinst() { |
221 |
enewgroup amavis |
222 |
enewuser amavis -1 -1 ${AMAVIS_ROOT} amavis |
223 |
|
224 |
if [ -z "$(dnsdomainname)" ] ; then |
225 |
dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(hostname)';:" \ |
226 |
/etc/amavisd.conf |
227 |
else |
228 |
dosed "s:^#\\?\\\$mydomain[^;]*;:\$mydomain = '$(dnsdomainname)';:" \ |
229 |
/etc/amavisd.conf |
230 |
fi |
231 |
|
232 |
if use razor ; then |
233 |
if [ ! -d ${AMAVIS_ROOT}/.razor ] ; then |
234 |
elog "Setting up initial razor config files..." |
235 |
|
236 |
razor-admin -create -home="${D}"/${AMAVIS_ROOT}/.razor |
237 |
sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \ |
238 |
"${D}"/${AMAVIS_ROOT}/.razor/razor-agent.conf |
239 |
fi |
240 |
fi |
241 |
|
242 |
if ! use spamassassin ; then |
243 |
einfo "Disabling anti-spam code in amavisd.conf..." |
244 |
|
245 |
dosed "s:^#[\t ]*@bypass_spam_checks_maps[\t ]*=[\t ]*(1);:\@bypass_spam_checks_maps = (1);:" \ |
246 |
/etc/amavisd.conf |
247 |
fi |
248 |
} |
249 |
|
250 |
pkg_postinst() { |
251 |
if ! use spamassassin ; then |
252 |
echo |
253 |
elog "Amavisd-new no longer requires SpamAssassin, but no anti-spam checking" |
254 |
elog "will be performed without it. Since you do not have SpamAssassin installed," |
255 |
elog "all spam checks have been disabled. To enable them, install SpamAssassin" |
256 |
elog "and comment out the line containing: " |
257 |
elog "@bypass_spam_checks_maps = (1); in /etc/amavisd.conf." |
258 |
fi |
259 |
echo |
260 |
ewarn "As of amavisd-new-2.4.5 p0f-analyzer.pl only binds to the loopback interface" |
261 |
ewarn "by default instead of to all interfaces. You will need to change $bind_addr" |
262 |
ewarn "in p0f-analyzer.pl to '0.0.0.0' if p0f-analyzer.pl is running on a different" |
263 |
ewarn "host from amavisd or from other querying clients." |
264 |
echo |
265 |
ewarn "Adjusting permissions for /etc/amavisd.conf (0 for world, owner root:amavis)" |
266 |
echo |
267 |
chmod o-rwx /etc/amavisd.conf |
268 |
chown root:amavis /etc/amavisd.conf |
269 |
chown -R amavis:amavis ${AMAVIS_ROOT} |
270 |
} |