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