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