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