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.0.ebuild amavisd-new-2.7.0_rc1.ebuild
Date: Sat, 02 Jul 2011 05:35:11
Message-Id: 20110702053459.BDAB82004B@flycatcher.gentoo.org
1 eras 11/07/02 05:34:59
2
3 Modified: ChangeLog
4 Added: amavisd-new-2.7.0.ebuild
5 Removed: amavisd-new-2.7.0_rc1.ebuild
6 Log:
7 version bump
8
9 (Portage version: 2.1.10.3/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.170 mail-filter/amavisd-new/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.170&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?rev=1.170&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/ChangeLog?r1=1.169&r2=1.170
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v
21 retrieving revision 1.169
22 retrieving revision 1.170
23 diff -u -r1.169 -r1.170
24 --- ChangeLog 22 May 2011 20:26:45 -0000 1.169
25 +++ ChangeLog 2 Jul 2011 05:34:59 -0000 1.170
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.169 2011/05/22 20:26:45 eras Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavisd-new/ChangeLog,v 1.170 2011/07/02 05:34:59 eras Exp $
31 +
32 +*amavisd-new-2.7.0 (02 Jul 2011)
33 +
34 + 02 Jul 2011; Eray Aslan <eras@g.o> -amavisd-new-2.7.0_rc1.ebuild,
35 + +amavisd-new-2.7.0.ebuild:
36 + version bump
37
38 *amavisd-new-2.7.0_rc1 (22 May 2011)
39
40
41
42
43 1.1 mail-filter/amavisd-new/amavisd-new-2.7.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/amavisd-new/amavisd-new-2.7.0.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.ebuild?rev=1.1&content-type=text/plain
47
48 Index: amavisd-new-2.7.0.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.ebuild,v 1.1 2011/07/02 05:34:59 eras Exp $
53
54 EAPI=4
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 src_install() {
136 dosbin amavisd amavisd-agent amavisd-nanny amavisd-release \
137 amavisd-signer
138 dobin p0f-analyzer.pl amavisd-submit
139
140 if use snmp ; then
141 dosbin amavisd-snmp-subagent
142 dodoc AMAVIS-MIB.txt
143 fi
144
145 insinto /etc
146 insopts -m0640
147 doins amavisd.conf
148
149 newinitd "${FILESDIR}/amavisd.initd" amavisd
150
151 keepdir "${AMAVIS_ROOT}"
152 keepdir "${AMAVIS_ROOT}/db"
153 keepdir "${AMAVIS_ROOT}/quarantine"
154 keepdir "${AMAVIS_ROOT}/tmp"
155 keepdir "${AMAVIS_ROOT}/var"
156
157 dodoc AAAREADME.first INSTALL MANIFEST RELEASE_NOTES TODO \
158 amavisd.conf-default amavisd-custom.conf
159
160 docinto README_FILES
161 dodoc README_FILES/README*
162 dohtml README_FILES/*.{html,css}
163 docinto README_FILES/images
164 dodoc README_FILES/images/*.png
165 docinto README_FILES/images/callouts
166 dodoc README_FILES/images/callouts/*.png
167
168 docinto test-messages
169 dodoc test-messages/README
170 dodoc test-messages/sample.tar.gz.compl
171
172 #for i in whitelist blacklist spam_lovers; do
173 # if [ -f ${AMAVIS_ROOT}/${i} ]; then
174 # cp "${AMAVIS_ROOT}/${i}" "${D}/${AMAVIS_ROOT}"
175 # else
176 # touch "${D}"/${AMAVIS_ROOT}/${i}
177 # fi
178 #done
179
180 if use ldap ; then
181 dodir /etc/openldap/schema
182 insinto /etc/openldap/schema
183 insopts -o root -g root -m 644
184 newins LDAP.schema ${PN}.schema || die
185 fi
186 }
187
188 pkg_preinst() {
189 enewgroup amavis
190 enewuser amavis -1 -1 "${AMAVIS_ROOT}" amavis
191 if use razor ; then
192 if [ ! -d "${ROOT}${AMAVIS_ROOT}/.razor" ] ; then
193 elog "Setting up initial razor config files..."
194
195 razor-admin -create -home="${D}/${AMAVIS_ROOT}/.razor"
196 sed -i -e "s:debuglevel\([ ]*\)= .:debuglevel\1= 0:g" \
197 "${D}/${AMAVIS_ROOT}/.razor/razor-agent.conf"
198 fi
199 fi
200
201 if ! use spamassassin ; then
202 elog "Disabling anti-spam code in amavisd.conf..."
203 sed -i -e \
204 "/^#[[:space:]]*@bypass_spam_checks_maps[[:space:]]*=[[:space:]]*(1)/s/^#//" \
205 "${D}/etc/amavisd.conf"
206 fi
207
208 if has_version "<${CATEGORY}/${PN}-2.7.0" ; then
209 elog "Amavisd-new ships with a short and condensed config file now."
210 elog "Transferring your current settings to the new format is"
211 elog "recommended for ease of future upgrades."
212 fi
213 }
214
215 pkg_postinst() {
216 chown root:amavis "${ROOT}/etc/amavisd.conf"
217 chown -R amavis:amavis "${ROOT}/${AMAVIS_ROOT}"
218 }