Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/exim: metadata.xml exim-4.83_rc1.ebuild ChangeLog
Date: Thu, 29 May 2014 11:57:28
Message-Id: 20140529115724.950142004E@flycatcher.gentoo.org
1 grobian 14/05/29 11:57:24
2
3 Modified: metadata.xml ChangeLog
4 Added: exim-4.83_rc1.ebuild
5 Log:
6 Version bump to 4.83 RC1, cleaned up ebuild somewhat
7
8 (Portage version: HEAD/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89)
9
10 Revision Changes Path
11 1.19 mail-mta/exim/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/metadata.xml?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/metadata.xml?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/metadata.xml?r1=1.18&r2=1.19
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/exim/metadata.xml,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- metadata.xml 4 Mar 2014 20:47:50 -0000 1.18
24 +++ metadata.xml 29 May 2014 11:57:24 -0000 1.19
25 @@ -35,6 +35,7 @@
26 <flag name='mbx'>Adds support for UW's mbx format</flag>
27 <flag name='spf'>Adds support for Sender Policy Framework</flag>
28 <flag name='srs'>Adds support for Sender Rewriting Scheme</flag>
29 + <flag name='proxy'>Add support for being behind a proxy, such as HAProxy</flag>
30 <flag name='pkcs11'>Require pkcs11 support in <pkg>net-libs/gnutls</pkg> with USE=gnutls</flag>
31 <flag name='redis'>Adds support for querying <pkg>dev-db/redis</pkg></flag>
32 <flag name='prdr'>Adds support for Per-Recipient Data Response</flag>
33
34
35
36 1.276 mail-mta/exim/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.276&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.276&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?r1=1.275&r2=1.276
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v
45 retrieving revision 1.275
46 retrieving revision 1.276
47 diff -u -r1.275 -r1.276
48 --- ChangeLog 28 May 2014 12:56:48 -0000 1.275
49 +++ ChangeLog 29 May 2014 11:57:24 -0000 1.276
50 @@ -1,6 +1,12 @@
51 # ChangeLog for mail-mta/exim
52 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.275 2014/05/28 12:56:48 grobian Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.276 2014/05/29 11:57:24 grobian Exp $
55 +
56 +*exim-4.83_rc1 (29 May 2014)
57 +
58 + 29 May 2014; Fabian Groffen <grobian@g.o> +exim-4.83_rc1.ebuild,
59 + metadata.xml:
60 + Version bump to 4.83 RC1, cleaned up ebuild somewhat
61
62 *exim-4.82.1 (28 May 2014)
63
64
65
66
67 1.1 mail-mta/exim/exim-4.83_rc1.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.83_rc1.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.83_rc1.ebuild?rev=1.1&content-type=text/plain
71
72 Index: exim-4.83_rc1.ebuild
73 ===================================================================
74 # Copyright 1999-2014 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.83_rc1.ebuild,v 1.1 2014/05/29 11:57:24 grobian Exp $
77
78 EAPI="5"
79
80 inherit eutils toolchain-funcs multilib pam systemd
81
82 IUSE="dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn exiscan-acl gnutls ipv6 ldap lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux spf sqlite srs ssl syslog tcpd tpda X"
83 REQUIRED_USE="spf? ( exiscan-acl ) srs? ( exiscan-acl ) dmarc? ( spf dkim ) pkcs11? ( gnutls )"
84
85 COMM_URI="ftp://ftp.exim.org/pub/exim/exim4$([[ ${PV} == *_rc* ]] && echo /test)"
86
87 DESCRIPTION="A highly configurable, drop-in replacement for sendmail"
88 SRC_URI="${COMM_URI}/${P//rc/RC}.tar.bz2
89 mirror://gentoo/system_filter.exim.gz
90 doc? ( ${COMM_URI}/${PN}-html-${PV//rc/RC}.tar.bz2 )"
91 HOMEPAGE="http://www.exim.org/"
92
93 SLOT="0"
94 LICENSE="GPL-2"
95 KEYWORDS="~amd64 ~hppa ~x86-fbsd ~x86-solaris"
96
97 COMMON_DEPEND=">=sys-apps/sed-4.0.5
98 >=sys-libs/db-3.2
99 dev-libs/libpcre
100 perl? ( sys-devel/libperl )
101 pam? ( virtual/pam )
102 tcpd? ( sys-apps/tcp-wrappers )
103 ssl? ( dev-libs/openssl )
104 gnutls? ( net-libs/gnutls[pkcs11?]
105 dev-libs/libtasn1 )
106 ldap? ( >=net-nds/openldap-2.0.7 )
107 mysql? ( virtual/mysql )
108 postgres? ( dev-db/postgresql-base )
109 sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
110 redis? ( dev-libs/hiredis )
111 selinux? ( sec-policy/selinux-exim )
112 spf? ( >=mail-filter/libspf2-1.2.5-r1 )
113 dmarc? ( mail-filter/opendmarc )
114 srs? ( mail-filter/libsrs_alt )
115 X? ( x11-proto/xproto
116 x11-libs/libX11
117 x11-libs/libXmu
118 x11-libs/libXt
119 x11-libs/libXaw
120 )
121 sqlite? ( dev-db/sqlite )
122 radius? ( net-dialup/radiusclient )
123 virtual/libiconv
124 "
125 # added X check for #57206
126 DEPEND="${COMMON_DEPEND}
127 virtual/pkgconfig"
128 RDEPEND="${COMMON_DEPEND}
129 !mail-mta/courier
130 !mail-mta/esmtp
131 !mail-mta/mini-qmail
132 !<mail-mta/msmtp-1.4.19-r1
133 !>=mail-mta/msmtp-1.4.19-r1[mta]
134 !mail-mta/netqmail
135 !mail-mta/nullmailer
136 !mail-mta/postfix
137 !mail-mta/qmail-ldap
138 !mail-mta/sendmail
139 !mail-mta/opensmtpd
140 !<mail-mta/ssmtp-2.64-r2
141 !>=mail-mta/ssmtp-2.64-r2[mta]
142 !net-mail/mailwrapper
143 >=net-mail/mailbase-0.00-r5
144 virtual/logger
145 dcc? ( mail-filter/dcc )
146 "
147
148 S=${WORKDIR}/${P//rc/RC}
149
150 src_prepare() {
151 epatch "${FILESDIR}"/exim-4.14-tail.patch
152 epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch
153 epatch "${FILESDIR}"/exim-4.69-r1.27021.patch
154 epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426
155 epatch "${FILESDIR}"/exim-4.82-makefile-freebsd.patch # 235785
156 epatch "${FILESDIR}"/exim-4.77-as-needed-ldflags.patch # 352265, 391279
157 epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
158
159 if use maildir ; then
160 epatch "${FILESDIR}"/exim-4.20-maildir.patch
161 else
162 epatch "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606
163 fi
164
165 # user Exim believes it should be
166 MAILUSER=mail
167 MAILGROUP=mail
168 if use prefix && [[ ${EUID} != 0 ]] ; then
169 MAILUSER=$(id -un)
170 MAILGROUP=$(id -gn)
171 fi
172 }
173
174 src_configure() {
175 # general config and paths
176
177 sed -i.orig \
178 -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" \
179 "${S}"/src/configure.default || die
180
181 sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile || die
182
183 sed -e "48i\CFLAGS=${CFLAGS}" \
184 -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \
185 -e "s:EXIM_USER=:EXIM_USER=${MAILUSER}:" \
186 -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \
187 -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \
188 -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \
189 -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \
190 src/EDITME > Local/Makefile
191
192 cd Local
193
194 cat >> Makefile <<- EOC
195 INFO_DIRECTORY=${EPREFIX}/usr/share/info
196 PID_FILE_PATH=${EPREFIX}/run/exim.pid
197 SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim
198 HAVE_ICONV=yes
199 EOC
200
201 # if we use libiconv, now is the time to tell so
202 use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile
203
204 # support for IPv6
205 if use ipv6; then
206 cat >> Makefile <<- EOC
207 HAVE_IPV6=YES
208 EOC
209 fi
210
211
212 # mail storage formats
213
214 # mailstore is Exim's traditional storage format
215 cat >> Makefile <<- EOC
216 SUPPORT_MAILSTORE=yes
217 EOC
218
219 # mbox
220 if use mbx; then
221 cat >> Makefile <<- EOC
222 SUPPORT_MBX=yes
223 EOC
224 fi
225
226 # maildir
227 if use maildir; then
228 cat >> Makefile <<- EOC
229 SUPPORT_MAILDIR=yes
230 EOC
231 fi
232
233
234 # lookup methods
235
236 # use the "native" interface to the DBM library, support passwd
237 # lookups by default
238 cat >> Makefile <<- EOC
239 USE_DB=yes
240 DBMLIB=-ldb
241 LOOKUP_PASSWD=yes
242 EOC
243
244 if ! use dnsdb; then
245 # DNSDB lookup is enabled by default
246 sed -i "s:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:" Makefile
247 fi
248
249 if use ldap; then
250 cat >> Makefile <<- EOC
251 LOOKUP_LDAP=yes
252 LDAP_LIB_TYPE=OPENLDAP2
253 LOOKUP_INCLUDE += -I${EROOT}usr/include/ldap
254 LOOKUP_LIBS += -lldap -llber
255 EOC
256 fi
257
258 if use mysql; then
259 cat >> Makefile <<- EOC
260 LOOKUP_MYSQL=yes
261 LOOKUP_INCLUDE += $(mysql_config --include)
262 LOOKUP_LIBS += $(mysql_config --libs)
263 EOC
264 fi
265
266 if use nis; then
267 cat >> Makefile <<- EOC
268 LOOKUP_NIS=yes
269 LOOKUP_NISPLUS=yes
270 EOC
271 fi
272
273 if use postgres; then
274 cat >> Makefile <<- EOC
275 LOOKUP_PGSQL=yes
276 LOOKUP_INCLUDE += -I$(pg_config --includedir)
277 LOOKUP_LIBS += -L$(pg_config --libdir) -lpq
278 EOC
279 fi
280
281 if use sqlite; then
282 cat >> Makefile <<- EOC
283 LOOKUP_SQLITE=yes
284 LOOKUP_SQLITE_PC=sqlite3
285 EOC
286 fi
287
288 if use redis; then
289 cat >> Makefile <<- EOC
290 EXPERIMENTAL_REDIS=yes
291 LOOKUP_LIBS += -lhiredis
292 EOC
293 fi
294
295
296 # Exim monitor, enabled by default, controlled via X USE-flag,
297 # disable if not requested, bug #46778
298 if use X; then
299 cp ../exim_monitor/EDITME eximon.conf || die
300 else
301 sed -i -e '/^EXIM_MONITOR=/s/^/# /' Makefile
302 fi
303
304
305 # features
306
307 # content scanning support
308 if use exiscan-acl; then
309 cat >> Makefile <<- EOC
310 WITH_CONTENT_SCAN=yes
311 WITH_OLD_DEMIME=yes
312 EOC
313 fi
314
315 # DomainKeys Identified Mail, RFC4871
316 if ! use dkim; then
317 # DKIM is enabled by default
318 cat >> Makefile <<- EOC
319 DISABLE_DKIM=yes
320 EOC
321 fi
322
323 # Per-Recipient-Data-Response
324 if ! use prdr; then
325 # PRDR is enabled by default
326 cat >> Makefile <<- EOC
327 DISABLE_PRDR=yes
328 EOC
329 fi
330
331 # log to syslog
332 if use syslog; then
333 sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Makefile
334 cat >> Makefile <<- EOC
335 LOG_FILE_PATH=syslog
336 EOC
337 else
338 cat >> Makefile <<- EOC
339 LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log
340 EOC
341 fi
342
343 # starttls support (ssl)
344 if use ssl; then
345 echo "SUPPORT_TLS=yes" >> Makefile
346 if use gnutls; then
347 echo "USE_GNUTLS=yes" >> Makefile
348 echo "USE_GNUTLS_PC=gnutls" >> Makefile
349 use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile
350 else
351 echo "USE_OPENSSL_PC=openssl" >> Makefile
352 fi
353 fi
354
355 # TCP wrappers
356 if use tcpd; then
357 cat >> Makefile <<- EOC
358 USE_TCP_WRAPPERS=yes
359 EXTRALIBS_EXIM += -lwrap
360 EOC
361 fi
362
363 # Light Mail Transport Protocol
364 if use lmtp; then
365 cat >> Makefile <<- EOC
366 TRANSPORT_LMTP=yes
367 EOC
368 fi
369
370 # embedded Perl
371 if use perl; then
372 cat >> Makefile <<- EOC
373 EXIM_PERL=perl.o
374 EOC
375 fi
376
377 # dlfunc
378 if use dlfunc; then
379 cat >> Makefile <<- EOC
380 EXPAND_DLFUNC=yes
381 EOC
382 fi
383
384
385 # experimental features
386
387 # Distributed Checksum Clearinghouse
388 if use dcc; then
389 echo "EXPERIMENTAL_DCC=yes">> Makefile
390 fi
391
392 # Sender Policy Framework
393 if use spf; then
394 cat >> Makefile <<- EOC
395 EXPERIMENTAL_SPF=yes
396 EXTRALIBS_EXIM += -lspf2
397 EOC
398 fi
399
400 # Sender Rewriting Scheme
401 if use srs; then
402 cat >> Makefile <<- EOC
403 EXPERIMENTAL_SRS=yes
404 EXTRALIBS_EXIM += -lsrs_alt
405 EOC
406 fi
407
408 # DMARC
409 if use dmarc; then
410 cat >> Makefile <<- EOC
411 EXPERIMENTAL_DMARC=yes
412 EXTRALIBS_EXIM += -lopendmarc
413 EOC
414 fi
415
416 # Transport post-delivery actions
417 if use tpda; then
418 cat >> Makefile <<- EOC
419 EXPERIMENTAL_TPDA=yes
420 EOC
421 fi
422
423 # Proxy Protocol
424 if use proxy; then
425 cat >> Makefile <<- EOC
426 EXPERIMENTAL_PROXY=yes
427 EOC
428 fi
429
430 # Delivery Sender Notifications
431 if use dsn; then
432 cat >> Makefile <<- EOC
433 EXPERIMENTAL_DSN=yes
434 EOC
435 fi
436
437
438 # authentication (SMTP AUTH)
439
440 # standard bits
441 cat >> Makefile <<- EOC
442 AUTH_SPA=yes
443 AUTH_CRAM_MD5=yes
444 AUTH_PLAINTEXT=yes
445 EOC
446
447 # Cyrus SASL
448 if use sasl; then
449 cat >> Makefile <<- EOC
450 CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux
451 AUTH_CYRUS_SASL=yes
452 AUTH_LIBS += -lsasl2
453 EOC
454 fi
455
456 # Dovecot
457 if use dovecot-sasl; then
458 cat >> Makefile <<- EOC
459 AUTH_DOVECOT=yes
460 EOC
461 fi
462
463 # Pluggable Authentication Modules
464 if use pam; then
465 cat >> Makefile <<- EOC
466 SUPPORT_PAM=yes
467 AUTH_LIBS += -lpam
468 EOC
469 fi
470
471 # Radius
472 if use radius; then
473 cat >> Makefile <<- EOC
474 RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf
475 RADIUS_LIB_TYPE=RADIUSCLIENT
476 AUTH_LIBS += -lradiusclient
477 EOC
478 fi
479 }
480
481 src_compile() {
482 emake -j1 CC="$(tc-getCC)" HOSTCC="$(tc-getCC $CBUILD)" \
483 AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' \
484 || die "make failed"
485 }
486
487 src_install () {
488 cd "${S}"/build-exim-gentoo
489 exeinto /usr/sbin
490 doexe exim
491 if use X; then
492 doexe eximon.bin
493 doexe eximon
494 fi
495 fperms 4755 /usr/sbin/exim
496
497 dodir /usr/bin /usr/sbin /usr/lib
498
499 dosym exim /usr/sbin/sendmail
500 dosym exim /usr/sbin/rsmtp
501 dosym exim /usr/sbin/rmail
502 dosym /usr/sbin/exim /usr/bin/mailq
503 dosym /usr/sbin/exim /usr/bin/newaliases
504 dosym /usr/sbin/sendmail /usr/lib/sendmail
505
506 exeinto /usr/sbin
507 for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \
508 exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \
509 convert4r3 convert4r4 exipick
510 do
511 doexe $i
512 done
513
514 dodoc "${S}"/doc/*
515 doman "${S}"/doc/exim.8
516 use dsn && dodoc "${S}"/README.DSN
517 use doc && dohtml -r "${WORKDIR}"/${PN}-html-${PV//rc/RC}/doc/html/spec_html/*
518
519 # conf files
520 insinto /etc/exim
521 newins "${S}"/src/configure.default.orig exim.conf.dist
522 if use exiscan-acl; then
523 newins "${S}"/src/configure.default exim.conf.exiscan-acl
524 fi
525 doins "${WORKDIR}"/system_filter.exim
526 doins "${FILESDIR}"/auth_conf.sub
527
528 pamd_mimic system-auth exim auth account
529
530 # headers, #436406
531 if use dlfunc ; then
532 # fixup includes so they actually can be found when including
533 sed -i \
534 -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \
535 local_scan.h || die
536 insinto /usr/include/exim
537 doins {config,local_scan}.h ../src/{mytypes,store}.h
538 fi
539
540 insinto /etc/logrotate.d
541 newins "${FILESDIR}/exim.logrotate" exim
542
543 newinitd "${FILESDIR}"/exim.rc8 exim
544 newconfd "${FILESDIR}"/exim.confd exim
545
546 systemd_dounit "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket}
547 systemd_newunit "${FILESDIR}"/exim_at.service 'exim@.service'
548 systemd_newunit "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service'
549
550 DIROPTIONS="-m 0750 -o ${MAILUSER} -g ${MAILGROUP}"
551 dodir /var/log/${PN}
552 }
553
554 pkg_postinst() {
555 if [[ ! -f ${EROOT}etc/exim/exim.conf ]] ; then
556 einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter."
557 einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth."
558 einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist."
559 fi
560 if use dcc ; then
561 einfo "DCC support is experimental, you can find some limited"
562 einfo "documentation at the bottom of this prerelease message:"
563 einfo "http://article.gmane.org/gmane.mail.exim.devel/3579"
564 fi
565 use spf && einfo "SPF support is experimental"
566 use srs && einfo "SRS support is experimental"
567 if use dmarc ; then
568 einfo "DMARC support is experimental. See global settings to"
569 einfo "configure DMARC, for usage see the documentation at "
570 einfo "experimental-spec.txt."
571 fi
572 use tpda && einfo "TPDA support is experimental"
573 use proxy && einfo "proxy support is experimental"
574 use dsn && einfo "DSN support is experimental"
575 einfo "Exim maintains some db files under its spool directory that need"
576 einfo "cleaning from time to time. (${EROOT}var/spool/exim/db)"
577 einfo "Please use the exim_tidydb tool as documented in the Exim manual:"
578 einfo "http://www.exim.org/exim-html-current/doc/html/spec_html/ch-exim_utilities.html#SECThindatmai"
579 }