1 |
eras 10/12/30 07:02:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: amavisd-new-2.7.0_pre12.ebuild |
5 |
Removed: amavisd-new-2.7.0_pre11.ebuild |
6 |
Log: |
7 |
Version bump - beta version. |
8 |
|
9 |
(Portage version: 2.1.9.26/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.159 mail-filter/amavisd-new/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.159&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.159&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?r1=1.158&r2=1.159 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v |
21 |
retrieving revision 1.158 |
22 |
retrieving revision 1.159 |
23 |
diff -u -r1.158 -r1.159 |
24 |
--- ChangeLog 20 Dec 2010 21:20:00 -0000 1.158 |
25 |
+++ ChangeLog 30 Dec 2010 07:02:47 -0000 1.159 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for mail-filter/amavisd-new |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.158 2010/12/20 21:20:00 eras Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.159 2010/12/30 07:02:47 eras Exp $ |
31 |
+ |
32 |
+*amavisd-new-2.7.0_pre12 (30 Dec 2010) |
33 |
+ |
34 |
+ 30 Dec 2010; Eray Aslan <eras@g.o> -amavisd-new-2.7.0_pre11.ebuild, |
35 |
+ +amavisd-new-2.7.0_pre12.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
*amavisd-new-2.7.0_pre11 (20 Dec 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 mail-filter/amavisd-new/amavisd-new-2.7.0_pre12.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.7.0_pre12.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.7.0_pre12.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: amavisd-new-2.7.0_pre12.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.7.0_pre12.ebuild,v 1.1 2010/12/30 07:02:47 eras Exp $ |
53 |
|
54 |
EAPI=3 |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
MY_P="${P/_/-}" |
59 |
DESCRIPTION="High-performance interface between the MTA and content checkers." |
60 |
HOMEPAGE="http://www.ijs.si/software/amavisd/" |
61 |
SRC_URI="http://www.ijs.si/software/amavisd/${MY_P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
66 |
IUSE="courier dkim ldap mysql postgres qmail razor snmp spamassassin" |
67 |
|
68 |
DEPEND=">=sys-apps/sed-4 |
69 |
>=dev-lang/perl-5.8.2" |
70 |
|
71 |
RDEPEND="${DEPEND} |
72 |
>=sys-apps/coreutils-5.0-r3 |
73 |
app-arch/cpio |
74 |
app-arch/gzip |
75 |
app-arch/bzip2 |
76 |
app-arch/arc |
77 |
app-arch/cabextract |
78 |
app-arch/freeze |
79 |
app-arch/lha |
80 |
app-arch/ncompress |
81 |
app-arch/pax |
82 |
app-arch/unarj |
83 |
|| ( app-arch/unrar app-arch/rar ) |
84 |
app-arch/zoo |
85 |
>=dev-perl/Archive-Zip-1.14 |
86 |
>=virtual/perl-IO-Compress-1.35 |
87 |
>=virtual/perl-Compress-Raw-Zlib-2.017 |
88 |
dev-perl/Convert-TNEF |
89 |
>=dev-perl/Convert-UUlib-1.08 |
90 |
virtual/perl-MIME-Base64 |
91 |
>=dev-perl/MIME-tools-5.415 |
92 |
>=dev-perl/MailTools-1.58 |
93 |
>=dev-perl/net-server-0.91 |
94 |
virtual/perl-Digest-MD5 |
95 |
dev-perl/IO-stringy |
96 |
>=virtual/perl-Time-HiRes-1.49 |
97 |
dev-perl/Unix-Syslog |
98 |
sys-apps/file |
99 |
>=sys-libs/db-4.4.20 |
100 |
dev-perl/BerkeleyDB |
101 |
>=dev-perl/Mail-DKIM-0.31 |
102 |
virtual/mta |
103 |
ldap? ( >=dev-perl/perl-ldap-0.33 ) |
104 |
mysql? ( dev-perl/DBD-mysql ) |
105 |
postgres? ( dev-perl/DBD-Pg ) |
106 |
razor? ( mail-filter/razor ) |
107 |
snmp? ( net-analyzer/net-snmp ) |
108 |
spamassassin? ( mail-filter/spamassassin )" |
109 |
|
110 |
AMAVIS_ROOT="/var/amavis" |
111 |
S="${WORKDIR}/${MY_P}" |
112 |
|
113 |
src_prepare() { |
114 |
if use courier ; then |
115 |
epatch amavisd-new-courier.patch |
116 |
fi |
117 |
|
118 |
if use qmail ; then |
119 |
epatch amavisd-new-qmqpqq.patch |
120 |
fi |
121 |
|
122 |
sed -i \ |
123 |
-e '/daemon/s/vscan/amavis/' \ |
124 |
-e "s:'/var/virusmails':\"\$MYHOME/quarantine\":" \ |
125 |
"${S}/amavisd.conf" || die "missing conf file" |
126 |
|
127 |
if ! use dkim ; then |
128 |
sed -i -e '/enable_dkim/s/1/0/' "${S}/amavisd.conf" \ |
129 |
|| die "missing conf file" |
130 |
fi |
131 |
} |
132 |
|
133 |
pkg_setup() { |
134 |
enewgroup amavis |
135 |
enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis |
136 |
} |
137 |
|
138 |
src_install() { |
139 |
dosbin amavisd amavisd-agent amavisd-nanny amavisd-release \ |
140 |
amavisd-signer || die |
141 |
dobin p0f-analyzer.pl amavisd-submit || die |
142 |
|
143 |
if use snmp ; then |
144 |
dosbin amavisd-snmp-subagent || die |
145 |
dodoc AMAVIS-MIB.txt || die |
146 |
fi |
147 |
|
148 |
insinto /etc |
149 |
insopts -m0640 |
150 |
doins amavisd.conf || die "doins failed" |
151 |
|
152 |
newinitd "${FILESDIR}/amavisd.initd" amavisd || die "initd failed" |
153 |
|
154 |
keepdir "${AMAVIS_ROOT}" |
155 |
keepdir "${AMAVIS_ROOT}/db" |
156 |
keepdir "${AMAVIS_ROOT}/quarantine" |
157 |
keepdir "${AMAVIS_ROOT}/tmp" |
158 |
keepdir "${AMAVIS_ROOT}/var" |
159 |
|
160 |
dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \ |
161 |
amavisd.conf-default amavisd-custom.conf |
162 |
|
163 |
docinto README_FILES |
164 |
dodoc README_FILES/README* |
165 |
dohtml README_FILES/*.{html,css} |
166 |
docinto README_FILES/images |
167 |
dodoc README_FILES/images/*.png |
168 |
docinto README_FILES/images/callouts |
169 |
dodoc README_FILES/images/callouts/*.png |
170 |
|
171 |
docinto test-messages |
172 |
dodoc test-messages/README |
173 |
dodoc test-messages/sample.tar.gz.compl |
174 |
|
175 |
#for i in whitelist blacklist spam_lovers; do |
176 |
# if [ -f ${AMAVIS_ROOT}/${i} ]; then |
177 |
# cp "${AMAVIS_ROOT}/${i}" "${D}/${AMAVIS_ROOT}" |
178 |
# else |
179 |
# touch "${D}"/${AMAVIS_ROOT}/${i} |
180 |
# fi |
181 |
#done |
182 |
|
183 |
if use ldap ; then |
184 |
dodir /etc/openldap/schema |
185 |
insinto /etc/openldap/schema |
186 |
insopts -o root -g root -m 644 |
187 |
newins LDAP.schema ${PN}.schema || die |
188 |
fi |
189 |
} |
190 |
|
191 |
pkg_preinst() { |
192 |
if use razor ; then |
193 |
if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then |
194 |
elog "Setting up initial razor config files..." |
195 |
|
196 |
razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor" |
197 |
sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \ |
198 |
"${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf" |
199 |
fi |
200 |
fi |
201 |
|
202 |
if ! use spamassassin ; then |
203 |
elog "Disabling anti-spam code in amavisd.conf..." |
204 |
sed -i -e \ |
205 |
"/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \ |
206 |
"${D}/etc/amavisd.conf" |
207 |
fi |
208 |
|
209 |
if has_version "<${CATEGORY}/${PN}-2.7.0" ; then |
210 |
elog "Amavisd-new ships with a short and condensed config file now." |
211 |
elog "Transferring your current settings to the new format is" |
212 |
elog "recommended for ease of future upgrades." |
213 |
fi |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
chown root:amavis "${ROOT}/etc/amavisd.conf" |
218 |
chown -R amavis:amavis "${ROOT}/${AMAVIS_ROOT}" |
219 |
} |