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