Gentoo Archives: gentoo-commits

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