1 |
grobian 11/05/07 19:12:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: exim-4.75-r1.ebuild |
5 |
Log: |
6 |
Revbump for backport of fix for CVE-2011-1764, bug #366369 |
7 |
|
8 |
(Portage version: 2.2.01.18252-prefix/cvs/Darwin powerpc) |
9 |
|
10 |
Revision Changes Path |
11 |
1.188 mail-mta/exim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.188&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.188&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?r1=1.187&r2=1.188 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v |
20 |
retrieving revision 1.187 |
21 |
retrieving revision 1.188 |
22 |
diff -u -r1.187 -r1.188 |
23 |
--- ChangeLog 22 Apr 2011 16:07:44 -0000 1.187 |
24 |
+++ ChangeLog 7 May 2011 19:12:59 -0000 1.188 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for mail-mta/exim |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.187 2011/04/22 16:07:44 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.188 2011/05/07 19:12:59 grobian Exp $ |
30 |
+ |
31 |
+*exim-4.75-r1 (07 May 2011) |
32 |
+ |
33 |
+ 07 May 2011; Fabian Groffen <grobian@g.o> +exim-4.75-r1.ebuild, |
34 |
+ +files/exim-4.75-CVE-2011-1764.patch: |
35 |
+ Revbump for backport of fix for CVE-2011-1764, bug #366369 |
36 |
|
37 |
22 Apr 2011; Diego E. Pettenò <flameeyes@g.o> exim-4.72.ebuild, |
38 |
exim-4.72-r1.ebuild, exim-4.74-r1.ebuild, exim-4.74-r2.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-mta/exim/exim-4.75-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.75-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.75-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: exim-4.75-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.75-r1.ebuild,v 1.1 2011/05/07 19:12:59 grobian Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit eutils toolchain-funcs multilib pam |
56 |
|
57 |
IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis syslog spf srs gnutls sqlite dovecot-sasl radius maildir +dkim dcc dsn" |
58 |
|
59 |
DSN_EXIM_V=469 |
60 |
DSN_V=1_3 |
61 |
|
62 |
DESCRIPTION="A highly configurable, drop-in replacement for sendmail" |
63 |
SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2 |
64 |
mirror://gentoo/system_filter.exim.gz |
65 |
dsn? ( mirror://sourceforge/eximdsn/eximdsn-patch-1.3/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch )" |
66 |
HOMEPAGE="http://www.exim.org/" |
67 |
|
68 |
SLOT="0" |
69 |
LICENSE="GPL-2" |
70 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
71 |
|
72 |
DEPEND=">=sys-apps/sed-4.0.5 |
73 |
>=sys-libs/db-3.2 |
74 |
dev-libs/libpcre |
75 |
perl? ( sys-devel/libperl ) |
76 |
pam? ( virtual/pam ) |
77 |
tcpd? ( sys-apps/tcp-wrappers ) |
78 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
79 |
gnutls? ( net-libs/gnutls |
80 |
dev-libs/libtasn1 ) |
81 |
ldap? ( >=net-nds/openldap-2.0.7 ) |
82 |
mysql? ( virtual/mysql ) |
83 |
postgres? ( dev-db/postgresql-base ) |
84 |
sasl? ( >=dev-libs/cyrus-sasl-2.1.14 ) |
85 |
spf? ( >=mail-filter/libspf2-1.2.5-r1 ) |
86 |
srs? ( mail-filter/libsrs_alt ) |
87 |
X? ( x11-proto/xproto |
88 |
x11-libs/libX11 |
89 |
x11-libs/libXmu |
90 |
x11-libs/libXt |
91 |
x11-libs/libXaw |
92 |
) |
93 |
sqlite? ( dev-db/sqlite ) |
94 |
radius? ( net-dialup/radiusclient ) |
95 |
virtual/libiconv |
96 |
" |
97 |
# added X check for #57206 |
98 |
RDEPEND="${DEPEND} |
99 |
!mail-mta/courier |
100 |
!mail-mta/esmtp |
101 |
!mail-mta/mini-qmail |
102 |
!mail-mta/msmtp |
103 |
!mail-mta/nbsmtp |
104 |
!mail-mta/netqmail |
105 |
!mail-mta/nullmailer |
106 |
!mail-mta/postfix |
107 |
!mail-mta/qmail-ldap |
108 |
!mail-mta/sendmail |
109 |
!<mail-mta/ssmtp-2.64-r2 |
110 |
!>=mail-mta/ssmtp-2.64-r2[mta] |
111 |
!net-mail/mailwrapper |
112 |
>=net-mail/mailbase-0.00-r5 |
113 |
virtual/logger |
114 |
dcc? ( mail-filter/dcc ) |
115 |
" |
116 |
|
117 |
src_prepare() { |
118 |
epatch "${FILESDIR}"/exim-4.14-tail.patch |
119 |
epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch |
120 |
epatch "${FILESDIR}"/exim-4.69-r1.27021.patch |
121 |
epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 |
122 |
epatch "${FILESDIR}"/exim-4.75-CVE-2011-1764.patch |
123 |
|
124 |
use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch |
125 |
use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
local myconf |
130 |
|
131 |
sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default |
132 |
cp "${S}"/src/configure.default "${S}"/src/configure.default.orig |
133 |
|
134 |
sed -e "48i\CFLAGS=${CFLAGS}" \ |
135 |
-e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ |
136 |
-e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ |
137 |
-e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ |
138 |
-e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ |
139 |
-e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ |
140 |
-e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ |
141 |
-e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ |
142 |
-e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ |
143 |
-e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ |
144 |
-e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ |
145 |
-e "s:# SPOOL_DIRECTORY=/var/spool/exim:SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim:" \ |
146 |
-e "s:# SUPPORT_MAILDIR=yes:SUPPORT_MAILDIR=yes:" \ |
147 |
-e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ |
148 |
-e "s:EXIM_USER=:EXIM_USER=mail:" \ |
149 |
-e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ |
150 |
-e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ |
151 |
-e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ |
152 |
src/EDITME > Local/Makefile |
153 |
|
154 |
# exiscan-acl is now integrated - enable it when use-flag set |
155 |
if use exiscan-acl; then |
156 |
sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile |
157 |
sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile |
158 |
elif (use spf || use srs ) then |
159 |
eerror SPF and SRS support require exiscan-acl to be enabled, please add |
160 |
eerror to your USE settings. |
161 |
exit 1 |
162 |
fi |
163 |
|
164 |
if use spf; then |
165 |
myconf="${myconf} -lspf2" |
166 |
sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile |
167 |
mycflags="${mycflags} -DEXPERIMENTAL_SPF" |
168 |
fi |
169 |
if use srs; then |
170 |
myconf="${myconf} -lsrs_alt" |
171 |
sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile |
172 |
fi |
173 |
|
174 |
cd Local |
175 |
# enable optional exim_monitor support via X use flag bug #46778 |
176 |
if use X; then |
177 |
einfo "Configuring eximon" |
178 |
cp ../exim_monitor/EDITME eximon.conf |
179 |
sed -i "s:# EXIM_MONITOR=eximon.bin:EXIM_MONITOR=eximon.bin:" Makefile |
180 |
fi |
181 |
if use perl; then |
182 |
sed -i "s:# EXIM_PERL=perl.o:EXIM_PERL=perl.o:" Makefile |
183 |
fi |
184 |
# mbox useflag renamed, see bug #110741 |
185 |
if use mbx; then |
186 |
sed -i "s:# SUPPORT_MBX=yes:SUPPORT_MBX=yes:" Makefile |
187 |
fi |
188 |
if use pam; then |
189 |
sed -i "s:# \(SUPPORT_PAM=yes\):\1:" Makefile |
190 |
myconf="${myconf} -lpam" |
191 |
fi |
192 |
if use sasl; then |
193 |
sed -i "s:# CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/state/saslauthd/mux:CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/lib/sasl2/mux:" Makefile |
194 |
sed -i "s:# AUTH_CYRUS_SASL=yes:AUTH_CYRUS_SASL=yes:" Makefile |
195 |
myconf="${myconf} -lsasl2" |
196 |
fi |
197 |
if use tcpd; then |
198 |
sed -i "s:# \(USE_TCP_WRAPPERS=yes\):\1:" Makefile |
199 |
myconf="${myconf} -lwrap" |
200 |
fi |
201 |
if use lmtp; then |
202 |
sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile |
203 |
fi |
204 |
if use ipv6; then |
205 |
echo "HAVE_IPV6=YES" >> Makefile |
206 |
# to fix bug #41196 |
207 |
echo "IPV6_USE_INET_PTON=yes" >> Makefile |
208 |
fi |
209 |
if use dovecot-sasl; then |
210 |
sed -i "s:# AUTH_DOVECOT=yes:AUTH_DOVECOT=yes:" Makefile |
211 |
fi |
212 |
if use radius; then |
213 |
myconf="${myconf} -lradiusclient" |
214 |
sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile |
215 |
sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile |
216 |
fi |
217 |
echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile |
218 |
|
219 |
# make iconv usage explicit |
220 |
echo "HAVE_ICONV=yes" >> Makefile |
221 |
# if we use libiconv, now is the time to tell so |
222 |
use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile |
223 |
|
224 |
cd "${S}" |
225 |
if use ssl; then |
226 |
sed -i \ |
227 |
-e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile |
228 |
if use gnutls; then |
229 |
sed -i \ |
230 |
-e "s:# \(USE_GNUTLS=yes\):\1:" \ |
231 |
-e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile |
232 |
else |
233 |
sed -i \ |
234 |
-e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile |
235 |
fi |
236 |
fi |
237 |
|
238 |
LOOKUP_INCLUDE= |
239 |
LOOKUP_LIBS= |
240 |
|
241 |
if use ldap; then |
242 |
sed -i \ |
243 |
-e "s:# \(LOOKUP_LDAP=yes\):\1:" \ |
244 |
-e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile |
245 |
LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" |
246 |
LOOKUP_LIBS="-lldap -llber" |
247 |
fi |
248 |
|
249 |
if use mysql; then |
250 |
sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile |
251 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" |
252 |
LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" |
253 |
fi |
254 |
|
255 |
if use postgres; then |
256 |
sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile |
257 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" |
258 |
LOOKUP_LIBS="$LOOKUP_LIBS -lpq" |
259 |
fi |
260 |
|
261 |
if use sqlite; then |
262 |
sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile |
263 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" |
264 |
LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" |
265 |
fi |
266 |
|
267 |
if [[ -n ${LOOKUP_INCLUDE} ]]; then |
268 |
sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ |
269 |
Local/Makefile |
270 |
fi |
271 |
|
272 |
if [[ -n ${LOOKUP_LIBS} ]]; then |
273 |
sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ |
274 |
Local/Makefile |
275 |
fi |
276 |
|
277 |
sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile |
278 |
|
279 |
sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile |
280 |
|
281 |
if use dnsdb; then |
282 |
sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile |
283 |
fi |
284 |
sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile |
285 |
|
286 |
if use nis; then |
287 |
sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ |
288 |
-e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile |
289 |
fi |
290 |
if use syslog; then |
291 |
sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile |
292 |
fi |
293 |
if ! use dkim; then |
294 |
# DKIM is enabled by default. We have to explicitly disable it. |
295 |
echo "DISABLE_DKIM=yes">> Local/Makefile |
296 |
fi |
297 |
if use dcc; then |
298 |
echo "EXPERIMENTAL_DCC=yes">> Local/Makefile |
299 |
fi |
300 |
if use dsn; then |
301 |
sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile |
302 |
fi |
303 |
|
304 |
# use the "native" interface to the DBM library |
305 |
echo "USE_DB=yes" >> Local/Makefile |
306 |
} |
307 |
|
308 |
src_compile() { |
309 |
emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" |
310 |
} |
311 |
|
312 |
src_install () { |
313 |
cd "${S}"/build-exim-gentoo |
314 |
exeinto /usr/sbin |
315 |
doexe exim |
316 |
if use X; then |
317 |
doexe eximon.bin |
318 |
doexe eximon |
319 |
fi |
320 |
fperms 4755 /usr/sbin/exim |
321 |
|
322 |
dodir /usr/bin /usr/sbin /usr/lib |
323 |
|
324 |
dosym exim /usr/sbin/sendmail |
325 |
dosym exim /usr/sbin/rsmtp |
326 |
dosym exim /usr/sbin/rmail |
327 |
dosym /usr/sbin/exim /usr/bin/mailq |
328 |
dosym /usr/sbin/exim /usr/bin/newaliases |
329 |
dosym /usr/sbin/sendmail /usr/lib/sendmail |
330 |
|
331 |
exeinto /usr/sbin |
332 |
for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ |
333 |
exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ |
334 |
convert4r3 convert4r4 exipick |
335 |
do |
336 |
doexe $i |
337 |
done |
338 |
|
339 |
dodoc "${S}"/doc/* |
340 |
doman "${S}"/doc/exim.8 |
341 |
use dsn && dodoc "${S}"/README.DSN |
342 |
|
343 |
# conf files |
344 |
insinto /etc/exim |
345 |
newins "${S}"/src/configure.default.orig exim.conf.dist |
346 |
if use exiscan-acl; then |
347 |
newins "${S}"/src/configure.default exim.conf.exiscan-acl |
348 |
fi |
349 |
doins "${WORKDIR}"/system_filter.exim |
350 |
doins "${FILESDIR}"/auth_conf.sub |
351 |
|
352 |
pamd_mimic system-auth exim auth account |
353 |
|
354 |
insinto /etc/logrotate.d |
355 |
newins "${FILESDIR}/exim.logrotate" exim |
356 |
|
357 |
newinitd "${FILESDIR}"/exim.rc6 exim |
358 |
|
359 |
newconfd "${FILESDIR}"/exim.confd exim |
360 |
|
361 |
DIROPTIONS="--mode=0750 --owner=mail --group=mail" |
362 |
dodir /var/log/${PN} |
363 |
} |
364 |
|
365 |
pkg_postinst() { |
366 |
einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter." |
367 |
einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." |
368 |
einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist." |
369 |
if use dcc ; then |
370 |
einfo "DCC support is experimental, you can find some limited" |
371 |
einfo "documentation at the bottom of this prerelease message:" |
372 |
einfo "http://article.gmane.org/gmane.mail.exim.devel/3579" |
373 |
fi |
374 |
} |