Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/exim/
Date: Tue, 11 Sep 2018 20:51:52
Message-Id: 1536698964.061ff65b498e0076335679bfb54aa59980e080f1.dilfridge@gentoo
1 commit: 061ff65b498e0076335679bfb54aa59980e080f1
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 11 20:49:24 2018 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 11 20:49:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=061ff65b
7
8 mail-mta/exim: Drop old, drop hppa to ~hppa
9
10 Closes: https://bugs.gentoo.org/637546
11 Package-Manager: Portage-2.3.49, Repoman-2.3.10
12
13 mail-mta/exim/Manifest | 2 -
14 mail-mta/exim/exim-4.90.1-r1.ebuild | 528 ----------------------------------
15 mail-mta/exim/exim-4.91-r1.ebuild | 547 ------------------------------------
16 3 files changed, 1077 deletions(-)
17
18 diff --git a/mail-mta/exim/Manifest b/mail-mta/exim/Manifest
19 index 8c73a77828d..a9d8a746f01 100644
20 --- a/mail-mta/exim/Manifest
21 +++ b/mail-mta/exim/Manifest
22 @@ -1,5 +1,3 @@
23 -DIST exim-4.90.1.tar.bz2 1854894 BLAKE2B d7fd8963fb8e98e562a87d248b4e0a54c382d922ea9ea0df10d06fd0992dc19b53e85b73e16dc4b8ae294268fa4f66fe1ae98c7bd3a1d62798425fc2a8a4aa01 SHA512 ba612cf056d97dfaac2b49255ad1e952c5f6b2623118a65f4ddae35ceb51a45f63e77956373f5550121bc1d7eb0c2ebeece1144cf1b15d57332a4782e3fb6db1
24 DIST exim-4.91.tar.xz 1744660 BLAKE2B 8d50a709def02a52f8e76a16fcf51a4fc7e553217d5513a361aa780f58bff336a9ab90d8683e3841a074f54f3c75f2f77bf1a353a849be1207bffdd5fb6e4c51 SHA512 35b34dda8dd0f27c0429e6eb8409756ecd3cf9e535bac421d696b1560db0ff3bf4cd0e4a00bc0b7e32137d31bb5de20776c7c1830ec125aa36b5c4376b0c71a2
25 -DIST exim-pdf-4.90.1.tar.bz2 1958791 BLAKE2B 2dcb523dbdaa989ca0a228db31967230b1bbb68cb998c90231108a822ca4dcc7db9e4c4a91034129ba7d9f08bb632379f021c65ea43159e21f9c6bae9060f146 SHA512 9529b9b459cc766a7171cbd37c2fab710acf130131326b8eb50d9c65714297b0139364fe6129e80d2f29ccee88e35497604a80d6d92207e16518c1d96c267127
26 DIST exim-pdf-4.91.tar.xz 1973672 BLAKE2B 0b9e3f65c8e8a5f727dd4359d1c5c6c867c0ecfce3b44763d5a24f2d98353bc58c42456e9884994f404d17685909ea287a478189407ba8e7835352274c788980 SHA512 82add9b42749b6d938ff3b44a4dea3dfe84bcb2a1efea8a32b64d81a9ea312033d33023b5c224a44a2c053b18f9042bd1f2834847cf48873d1725a5594704a12
27 DIST system_filter.exim.gz 3075 BLAKE2B d05e872b5cef377d29126cda03fc0a74c8777b2119b76ff43da6e8de808035eb9bfcb034a85d81824f135d484e864bfc0629fc1af2c228a7277d5ee7cf9cde79 SHA512 cb358d3ce2499a0bb5920d962a06f2af8486e55ec90c8c928bd8e3aefb279aa57f5f960d5adfcef68bd94110b405eaa144e9629cfe6014a529c79c544600bbf3
28
29 diff --git a/mail-mta/exim/exim-4.90.1-r1.ebuild b/mail-mta/exim/exim-4.90.1-r1.ebuild
30 deleted file mode 100644
31 index 299ab812b7a..00000000000
32 --- a/mail-mta/exim/exim-4.90.1-r1.ebuild
33 +++ /dev/null
34 @@ -1,528 +0,0 @@
35 -# Copyright 1999-2018 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI="6"
39 -
40 -inherit eutils toolchain-funcs multilib pam systemd
41 -
42 -IUSE="dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn exiscan-acl gnutls ipv6 ldap libressl lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux spf sqlite srs ssl syslog tcpd +tpda X elibc_glibc"
43 -REQUIRED_USE="
44 - dane? ( ssl !gnutls )
45 - dmarc? ( spf dkim )
46 - pkcs11? ( ssl gnutls )
47 - spf? ( exiscan-acl )
48 - srs? ( exiscan-acl )
49 -"
50 -
51 -COMM_URI="ftp://ftp.exim.org/pub/exim/exim4$([[ ${PV} == *_rc* ]] && echo /test)"
52 -
53 -DESCRIPTION="A highly configurable, drop-in replacement for sendmail"
54 -SRC_URI="${COMM_URI}/${P//rc/RC}.tar.bz2
55 - mirror://gentoo/system_filter.exim.gz
56 - doc? ( ${COMM_URI}/${PN}-pdf-${PV//rc/RC}.tar.bz2 )"
57 -HOMEPAGE="http://www.exim.org/"
58 -
59 -SLOT="0"
60 -LICENSE="GPL-2"
61 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-solaris"
62 -
63 -COMMON_DEPEND=">=sys-apps/sed-4.0.5
64 - >=sys-libs/db-3.2:=
65 - dev-libs/libpcre
66 - perl? ( dev-lang/perl:= )
67 - pam? ( virtual/pam )
68 - tcpd? ( sys-apps/tcp-wrappers )
69 - ssl? (
70 - !libressl? ( dev-libs/openssl:0= )
71 - libressl? ( dev-libs/libressl:= )
72 - )
73 - gnutls? ( net-libs/gnutls[pkcs11?]
74 - dev-libs/libtasn1 )
75 - ldap? ( >=net-nds/openldap-2.0.7 )
76 - nis? ( elibc_glibc? ( || (
77 - <sys-libs/glibc-2.23
78 - >=sys-libs/glibc-2.23[rpc]
79 - ) ) )
80 - mysql? ( virtual/libmysqlclient )
81 - postgres? ( dev-db/postgresql:= )
82 - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
83 - redis? ( dev-libs/hiredis )
84 - spf? ( >=mail-filter/libspf2-1.2.5-r1 )
85 - dmarc? ( mail-filter/opendmarc )
86 - srs? ( mail-filter/libsrs_alt )
87 - X? (
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/freeradius-client )
95 - virtual/libiconv
96 - elibc_glibc? ( net-libs/libnsl )
97 - "
98 - # added X check for #57206
99 -DEPEND="${COMMON_DEPEND}
100 - virtual/pkgconfig"
101 -RDEPEND="${COMMON_DEPEND}
102 - !mail-mta/courier
103 - !mail-mta/esmtp
104 - !mail-mta/mini-qmail
105 - !<mail-mta/msmtp-1.4.19-r1
106 - !>=mail-mta/msmtp-1.4.19-r1[mta]
107 - !mail-mta/netqmail
108 - !mail-mta/nullmailer
109 - !mail-mta/postfix
110 - !mail-mta/qmail-ldap
111 - !mail-mta/sendmail
112 - !mail-mta/opensmtpd
113 - !<mail-mta/ssmtp-2.64-r2
114 - !>=mail-mta/ssmtp-2.64-r2[mta]
115 - !net-mail/mailwrapper
116 - >=net-mail/mailbase-0.00-r5
117 - virtual/logger
118 - dcc? ( mail-filter/dcc )
119 - selinux? ( sec-policy/selinux-exim )
120 - "
121 -
122 -S=${WORKDIR}/${P//rc/RC}
123 -
124 -src_prepare() {
125 - epatch "${FILESDIR}"/exim-4.14-tail.patch
126 - epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch
127 - epatch "${FILESDIR}"/exim-4.69-r1.27021.patch
128 - epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426
129 - epatch "${FILESDIR}"/exim-4.82-makefile-freebsd.patch # 235785
130 - epatch "${FILESDIR}"/exim-4.89-as-needed-ldflags.patch # 352265, 391279
131 - epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
132 -
133 - if use maildir ; then
134 - epatch "${FILESDIR}"/exim-4.20-maildir.patch
135 - else
136 - epatch "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606
137 - fi
138 -
139 - eapply_user
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 - if use elibc_musl; then
168 - sed -e 's/^LIBS = -lnsl/LIBS =/g' \
169 - -i OS/Makefile-Linux
170 - fi
171 -
172 - cd Local
173 -
174 - cat >> Makefile <<- EOC
175 - INFO_DIRECTORY=${EPREFIX}/usr/share/info
176 - PID_FILE_PATH=${EPREFIX}/run/exim.pid
177 - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim
178 - HAVE_ICONV=yes
179 - EOC
180 -
181 - # if we use libiconv, now is the time to tell so
182 - use !elibc_glibc && use !elibc_musl && \
183 - echo "EXTRALIBS_EXIM=-liconv" >> Makefile
184 -
185 - # support for IPv6
186 - if use ipv6; then
187 - cat >> Makefile <<- EOC
188 - HAVE_IPV6=YES
189 - EOC
190 - fi
191 -
192 - #
193 - # mail storage formats
194 -
195 - # mailstore is Exim's traditional storage format
196 - cat >> Makefile <<- EOC
197 - SUPPORT_MAILSTORE=yes
198 - EOC
199 -
200 - # mbox
201 - if use mbx; then
202 - cat >> Makefile <<- EOC
203 - SUPPORT_MBX=yes
204 - EOC
205 - fi
206 -
207 - # maildir
208 - if use maildir; then
209 - cat >> Makefile <<- EOC
210 - SUPPORT_MAILDIR=yes
211 - EOC
212 - fi
213 -
214 - #
215 - # lookup methods
216 -
217 - # use the "native" interfaces to the DBM and CDB libraries, support
218 - # passwd and directory lookups by default
219 - cat >> Makefile <<- EOC
220 - USE_DB=yes
221 - DBMLIB=-ldb
222 - LOOKUP_CDB=yes
223 - LOOKUP_PASSWD=yes
224 - LOOKUP_DSEARCH=yes
225 - EOC
226 -
227 - if ! use dnsdb; then
228 - # DNSDB lookup is enabled by default
229 - sed -i "s:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:" Makefile
230 - fi
231 -
232 - if use ldap; then
233 - cat >> Makefile <<- EOC
234 - LOOKUP_LDAP=yes
235 - LDAP_LIB_TYPE=OPENLDAP2
236 - LOOKUP_INCLUDE += -I"${EROOT}"usr/include/ldap
237 - LOOKUP_LIBS += -lldap -llber
238 - EOC
239 - fi
240 -
241 - if use mysql; then
242 - cat >> Makefile <<- EOC
243 - LOOKUP_MYSQL=yes
244 - LOOKUP_INCLUDE += $(mysql_config --include)
245 - LOOKUP_LIBS += $(mysql_config --libs)
246 - EOC
247 - fi
248 -
249 - if use nis; then
250 - cat >> Makefile <<- EOC
251 - LOOKUP_NIS=yes
252 - LOOKUP_NISPLUS=yes
253 - EOC
254 - fi
255 -
256 - if use postgres; then
257 - cat >> Makefile <<- EOC
258 - LOOKUP_PGSQL=yes
259 - LOOKUP_INCLUDE += -I$(pg_config --includedir)
260 - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq
261 - EOC
262 - fi
263 -
264 - if use sqlite; then
265 - cat >> Makefile <<- EOC
266 - LOOKUP_SQLITE=yes
267 - LOOKUP_SQLITE_PC=sqlite3
268 - EOC
269 - fi
270 -
271 - if use redis; then
272 - cat >> Makefile <<- EOC
273 - LOOKUP_REDIS=yes
274 - LOOKUP_LIBS += -lhiredis
275 - EOC
276 - fi
277 -
278 - #
279 - # Exim monitor, enabled by default, controlled via X USE-flag,
280 - # disable if not requested, bug #46778
281 - if use X; then
282 - cp ../exim_monitor/EDITME eximon.conf || die
283 - else
284 - sed -i -e '/^EXIM_MONITOR=/s/^/# /' Makefile
285 - fi
286 -
287 - #
288 - # features
289 -
290 - # content scanning support
291 - if use exiscan-acl; then
292 - cat >> Makefile <<- EOC
293 - WITH_CONTENT_SCAN=yes
294 - EOC
295 - fi
296 -
297 - # DomainKeys Identified Mail, RFC4871
298 - if ! use dkim; then
299 - # DKIM is enabled by default
300 - cat >> Makefile <<- EOC
301 - DISABLE_DKIM=yes
302 - EOC
303 - fi
304 -
305 - # Per-Recipient-Data-Response
306 - if ! use prdr; then
307 - # PRDR is enabled by default
308 - cat >> Makefile <<- EOC
309 - DISABLE_PRDR=yes
310 - EOC
311 - fi
312 -
313 - # Transport post-delivery actions
314 - if ! use tpda; then
315 - # EVENT is enabled by default
316 - cat >> Makefile <<- EOC
317 - DISABLE_EVENT=yes
318 - EOC
319 - fi
320 -
321 - # log to syslog
322 - if use syslog; then
323 - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Makefile
324 - cat >> Makefile <<- EOC
325 - LOG_FILE_PATH=syslog
326 - EOC
327 - else
328 - cat >> Makefile <<- EOC
329 - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log
330 - EOC
331 - fi
332 -
333 - # starttls support (ssl)
334 - if use ssl; then
335 - echo "SUPPORT_TLS=yes" >> Makefile
336 - if use gnutls; then
337 - echo "USE_GNUTLS=yes" >> Makefile
338 - echo "USE_GNUTLS_PC=gnutls" >> Makefile
339 - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile
340 - else
341 - echo "USE_OPENSSL_PC=openssl" >> Makefile
342 - fi
343 - fi
344 -
345 - # TCP wrappers
346 - if use tcpd; then
347 - cat >> Makefile <<- EOC
348 - USE_TCP_WRAPPERS=yes
349 - EXTRALIBS_EXIM += -lwrap
350 - EOC
351 - fi
352 -
353 - # Light Mail Transport Protocol
354 - if use lmtp; then
355 - cat >> Makefile <<- EOC
356 - TRANSPORT_LMTP=yes
357 - EOC
358 - fi
359 -
360 - # embedded Perl
361 - if use perl; then
362 - cat >> Makefile <<- EOC
363 - EXIM_PERL=perl.o
364 - EOC
365 - fi
366 -
367 - # dlfunc
368 - if use dlfunc; then
369 - cat >> Makefile <<- EOC
370 - EXPAND_DLFUNC=yes
371 - EOC
372 - fi
373 -
374 - # Proxy Protocol
375 - if use proxy; then
376 - cat >> Makefile <<- EOC
377 - SUPPORT_PROXY=yes
378 - EOC
379 - fi
380 -
381 - #
382 - # experimental features
383 -
384 - # DANE
385 - if use dane; then
386 - cat >> Makefile <<- EOC
387 - EXPERIMENTAL_DANE=yes
388 - EOC
389 - fi
390 -
391 - # Distributed Checksum Clearinghouse
392 - if use dcc; then
393 - echo "EXPERIMENTAL_DCC=yes">> Makefile
394 - fi
395 -
396 - # Sender Policy Framework
397 - if use spf; then
398 - cat >> Makefile <<- EOC
399 - EXPERIMENTAL_SPF=yes
400 - EXTRALIBS_EXIM += -lspf2
401 - EOC
402 - fi
403 -
404 - # Sender Rewriting Scheme
405 - if use srs; then
406 - cat >> Makefile <<- EOC
407 - EXPERIMENTAL_SRS=yes
408 - EXTRALIBS_EXIM += -lsrs_alt
409 - EOC
410 - fi
411 -
412 - # DMARC
413 - if use dmarc; then
414 - cat >> Makefile <<- EOC
415 - EXPERIMENTAL_DMARC=yes
416 - EXTRALIBS_EXIM += -lopendmarc
417 - EOC
418 - fi
419 -
420 - # Delivery Sender Notifications extra information in fail message
421 - if use dsn; then
422 - cat >> Makefile <<- EOC
423 - EXPERIMENTAL_DSN_INFO=yes
424 - EOC
425 - fi
426 -
427 - #
428 - # authentication (SMTP AUTH)
429 -
430 - # standard bits
431 - cat >> Makefile <<- EOC
432 - AUTH_SPA=yes
433 - AUTH_CRAM_MD5=yes
434 - AUTH_PLAINTEXT=yes
435 - EOC
436 -
437 - # Cyrus SASL
438 - if use sasl; then
439 - cat >> Makefile <<- EOC
440 - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux
441 - AUTH_CYRUS_SASL=yes
442 - AUTH_LIBS += -lsasl2
443 - EOC
444 - fi
445 -
446 - # Dovecot
447 - if use dovecot-sasl; then
448 - cat >> Makefile <<- EOC
449 - AUTH_DOVECOT=yes
450 - EOC
451 - fi
452 -
453 - # Pluggable Authentication Modules
454 - if use pam; then
455 - cat >> Makefile <<- EOC
456 - SUPPORT_PAM=yes
457 - AUTH_LIBS += -lpam
458 - EOC
459 - fi
460 -
461 - # Radius
462 - if use radius; then
463 - cat >> Makefile <<- EOC
464 - RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf
465 - RADIUS_LIB_TYPE=RADIUSCLIENTNEW
466 - AUTH_LIBS += -lfreeradius-client
467 - EOC
468 - fi
469 -}
470 -
471 -src_compile() {
472 - emake CC="$(tc-getCC)" HOSTCC="$(tc-getCC $CBUILD)" \
473 - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' \
474 - || die "make failed"
475 -}
476 -
477 -src_install () {
478 - cd "${S}"/build-exim-gentoo || die
479 - dosbin exim
480 - if use X; then
481 - dosbin eximon.bin
482 - dosbin eximon
483 - fi
484 - fperms 4755 /usr/sbin/exim
485 -
486 - dosym exim /usr/sbin/sendmail
487 - dosym exim /usr/sbin/rsmtp
488 - dosym exim /usr/sbin/rmail
489 - dosym ../sbin/exim /usr/bin/mailq
490 - dosym ../sbin/exim /usr/bin/newaliases
491 - dosym ../sbin/sendmail /usr/lib/sendmail
492 -
493 - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \
494 - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \
495 - convert4r3 convert4r4 exipick
496 - do
497 - dosbin $i
498 - done
499 -
500 - dodoc "${S}"/doc/*
501 - doman "${S}"/doc/exim.8
502 - use dsn && dodoc "${S}"/README.DSN
503 - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf
504 -
505 - # conf files
506 - insinto /etc/exim
507 - newins "${S}"/src/configure.default exim.conf.dist
508 - if use exiscan-acl; then
509 - newins "${S}"/src/configure.default exim.conf.exiscan-acl
510 - fi
511 - doins "${WORKDIR}"/system_filter.exim
512 - doins "${FILESDIR}"/auth_conf.sub
513 -
514 - pamd_mimic system-auth exim auth account
515 -
516 - # headers, #436406
517 - if use dlfunc ; then
518 - # fixup includes so they actually can be found when including
519 - sed -i \
520 - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \
521 - local_scan.h || die
522 - insinto /usr/include/exim
523 - doins {config,local_scan}.h ../src/{mytypes,store}.h
524 - fi
525 -
526 - insinto /etc/logrotate.d
527 - newins "${FILESDIR}/exim.logrotate" exim
528 -
529 - newinitd "${FILESDIR}"/exim.rc10 exim
530 - newconfd "${FILESDIR}"/exim.confd exim
531 -
532 - systemd_dounit "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket}
533 - systemd_newunit "${FILESDIR}"/exim_at.service 'exim@.service'
534 - systemd_newunit "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service'
535 -
536 - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP}
537 - dodir /var/log/${PN}
538 -}
539 -
540 -pkg_postinst() {
541 - if [[ ! -f ${EROOT}etc/exim/exim.conf ]] ; then
542 - einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter."
543 - einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth."
544 - einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist."
545 - fi
546 - use dane && einfo "DANE support is experimental"
547 - if use dcc ; then
548 - einfo "DCC support is experimental, you can find some limited"
549 - einfo "documentation at the bottom of this prerelease message:"
550 - einfo "http://article.gmane.org/gmane.mail.exim.devel/3579"
551 - fi
552 - use spf && einfo "SPF support is experimental"
553 - use srs && einfo "SRS support is experimental"
554 - if use dmarc ; then
555 - einfo "DMARC support is experimental. See global settings to"
556 - einfo "configure DMARC, for usage see the documentation at "
557 - einfo "experimental-spec.txt."
558 - fi
559 - use dsn && einfo "extra information in fail DSN message is experimental"
560 - elog "The obsolete acl condition 'demime' is removed, the replacements"
561 - elog "are the ACLs acl_smtp_mime and acl_not_smtp_mime"
562 -}
563
564 diff --git a/mail-mta/exim/exim-4.91-r1.ebuild b/mail-mta/exim/exim-4.91-r1.ebuild
565 deleted file mode 100644
566 index eae8fce2154..00000000000
567 --- a/mail-mta/exim/exim-4.91-r1.ebuild
568 +++ /dev/null
569 @@ -1,547 +0,0 @@
570 -# Copyright 1999-2018 Gentoo Foundation
571 -# Distributed under the terms of the GNU General Public License v2
572 -
573 -EAPI="6"
574 -
575 -inherit db-use eutils toolchain-funcs multilib pam systemd
576 -
577 -IUSE="arc dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn elibc_glibc exiscan-acl gnutls idn ipv6 ldap libressl lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux spf sqlite srs ssl syslog tcpd +tpda X"
578 -REQUIRED_USE="
579 - arc? ( dkim spf )
580 - dane? ( ssl )
581 - dmarc? ( dkim spf )
582 - gnutls? ( ssl )
583 - pkcs11? ( ssl )
584 - spf? ( exiscan-acl )
585 - srs? ( exiscan-acl )
586 -"
587 -
588 -COMM_URI="https://downloads.exim.org/exim4$([[ ${PV} == *_rc* ]] && echo /test)"
589 -
590 -DESCRIPTION="A highly configurable, drop-in replacement for sendmail"
591 -SRC_URI="${COMM_URI}/${P//rc/RC}.tar.xz
592 - mirror://gentoo/system_filter.exim.gz
593 - doc? ( ${COMM_URI}/${PN}-pdf-${PV//rc/RC}.tar.xz )"
594 -HOMEPAGE="http://www.exim.org/"
595 -
596 -SLOT="0"
597 -LICENSE="GPL-2"
598 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris"
599 -
600 -COMMON_DEPEND=">=sys-apps/sed-4.0.5
601 - ( >=sys-libs/db-3.2:= <sys-libs/db-6:= )
602 - dev-libs/libpcre
603 - idn? ( net-dns/libidn net-dns/libidn2 )
604 - perl? ( dev-lang/perl:= )
605 - pam? ( virtual/pam )
606 - tcpd? ( sys-apps/tcp-wrappers )
607 - ssl? (
608 - !libressl? ( dev-libs/openssl:0= )
609 - libressl? ( dev-libs/libressl:= )
610 - )
611 - gnutls? (
612 - net-libs/gnutls[pkcs11?]
613 - dev-libs/libtasn1
614 - )
615 - ldap? ( >=net-nds/openldap-2.0.7 )
616 - nis? ( elibc_glibc? ( || (
617 - <sys-libs/glibc-2.23
618 - >=sys-libs/glibc-2.23[rpc]
619 - ) ) )
620 - mysql? ( virtual/libmysqlclient )
621 - postgres? ( dev-db/postgresql:= )
622 - sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
623 - redis? ( dev-libs/hiredis )
624 - spf? ( >=mail-filter/libspf2-1.2.5-r1 )
625 - dmarc? ( mail-filter/opendmarc )
626 - srs? ( mail-filter/libsrs_alt )
627 - X? (
628 - x11-libs/libX11
629 - x11-libs/libXmu
630 - x11-libs/libXt
631 - x11-libs/libXaw
632 - )
633 - sqlite? ( dev-db/sqlite )
634 - radius? ( net-dialup/freeradius-client )
635 - virtual/libiconv
636 - elibc_glibc? ( net-libs/libnsl )
637 - "
638 - # added X check for #57206
639 -DEPEND="${COMMON_DEPEND}
640 - virtual/pkgconfig"
641 -RDEPEND="${COMMON_DEPEND}
642 - !mail-mta/courier
643 - !mail-mta/esmtp
644 - !mail-mta/mini-qmail
645 - !<mail-mta/msmtp-1.4.19-r1
646 - !>=mail-mta/msmtp-1.4.19-r1[mta]
647 - !mail-mta/netqmail
648 - !mail-mta/nullmailer
649 - !mail-mta/postfix
650 - !mail-mta/qmail-ldap
651 - !mail-mta/sendmail
652 - !mail-mta/opensmtpd
653 - !<mail-mta/ssmtp-2.64-r2
654 - !>=mail-mta/ssmtp-2.64-r2[mta]
655 - !net-mail/mailwrapper
656 - >=net-mail/mailbase-0.00-r5
657 - virtual/logger
658 - dcc? ( mail-filter/dcc )
659 - selinux? ( sec-policy/selinux-exim )
660 - "
661 -
662 -S=${WORKDIR}/${P//rc/RC}
663 -
664 -src_prepare() {
665 - epatch "${FILESDIR}"/exim-4.14-tail.patch
666 - epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch
667 - epatch "${FILESDIR}"/exim-4.69-r1.27021.patch
668 - epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426
669 - epatch "${FILESDIR}"/exim-4.82-makefile-freebsd.patch # 235785
670 - epatch "${FILESDIR}"/exim-4.89-as-needed-ldflags.patch # 352265, 391279
671 - epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
672 -
673 - if use maildir ; then
674 - epatch "${FILESDIR}"/exim-4.20-maildir.patch
675 - else
676 - epatch "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606
677 - fi
678 -
679 - eapply_user
680 -
681 - # user Exim believes it should be
682 - MAILUSER=mail
683 - MAILGROUP=mail
684 - if use prefix && [[ ${EUID} != 0 ]] ; then
685 - MAILUSER=$(id -un)
686 - MAILGROUP=$(id -gn)
687 - fi
688 -}
689 -
690 -src_configure() {
691 - # general config and paths
692 -
693 - sed -i.orig \
694 - -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" \
695 - "${S}"/src/configure.default || die
696 -
697 - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile || die
698 -
699 - sed -e "48i\CFLAGS=${CFLAGS}" \
700 - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \
701 - -e "s:EXIM_USER=:EXIM_USER=${MAILUSER}:" \
702 - -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \
703 - -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \
704 - -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \
705 - src/EDITME > Local/Makefile
706 -
707 - if use elibc_musl; then
708 - sed -e 's/^LIBS = -lnsl/LIBS =/g' \
709 - -i OS/Makefile-Linux
710 - fi
711 -
712 - cd Local
713 -
714 - cat >> Makefile <<- EOC
715 - INFO_DIRECTORY=${EPREFIX}/usr/share/info
716 - PID_FILE_PATH=${EPREFIX}/run/exim.pid
717 - SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim
718 - HAVE_ICONV=yes
719 - EOC
720 -
721 - # if we use libiconv, now is the time to tell so
722 - use !elibc_glibc && use !elibc_musl && \
723 - echo "EXTRALIBS_EXIM=-liconv" >> Makefile
724 -
725 - # support for IPv6
726 - if use ipv6; then
727 - cat >> Makefile <<- EOC
728 - HAVE_IPV6=YES
729 - EOC
730 - fi
731 -
732 - # support i18n/IDNA
733 - if use idn; then
734 - cat >> Makefile <<- EOC
735 - SUPPORT_I18N=yes
736 - SUPPORT_I18N_2008=yes
737 - EXTRALIBS_EXIM += -lidn -lidn2
738 - EOC
739 - fi
740 -
741 - #
742 - # mail storage formats
743 -
744 - # mailstore is Exim's traditional storage format
745 - cat >> Makefile <<- EOC
746 - SUPPORT_MAILSTORE=yes
747 - EOC
748 -
749 - # mbox
750 - if use mbx; then
751 - cat >> Makefile <<- EOC
752 - SUPPORT_MBX=yes
753 - EOC
754 - fi
755 -
756 - # maildir
757 - if use maildir; then
758 - cat >> Makefile <<- EOC
759 - SUPPORT_MAILDIR=yes
760 - EOC
761 - fi
762 -
763 - #
764 - # lookup methods
765 -
766 - # use the "native" interfaces to the DBM and CDB libraries, support
767 - # passwd and directory lookups by default
768 - local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2"
769 - cat >> Makefile <<- EOC
770 - USE_DB=yes
771 - CFLAGS+=-I$(db_includedir ${DB_VERS})
772 - DBMLIB=-l$(db_libname ${DB_VERS})
773 - LOOKUP_CDB=yes
774 - LOOKUP_PASSWD=yes
775 - LOOKUP_DSEARCH=yes
776 - EOC
777 -
778 - if ! use dnsdb; then
779 - # DNSDB lookup is enabled by default
780 - sed -i "s:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:" Makefile
781 - fi
782 -
783 - if use ldap; then
784 - cat >> Makefile <<- EOC
785 - LOOKUP_LDAP=yes
786 - LDAP_LIB_TYPE=OPENLDAP2
787 - LOOKUP_INCLUDE += -I"${EROOT}"usr/include/ldap
788 - LOOKUP_LIBS += -lldap -llber
789 - EOC
790 - fi
791 -
792 - if use mysql; then
793 - cat >> Makefile <<- EOC
794 - LOOKUP_MYSQL=yes
795 - LOOKUP_INCLUDE += $(mysql_config --include)
796 - LOOKUP_LIBS += $(mysql_config --libs)
797 - EOC
798 - fi
799 -
800 - if use nis; then
801 - cat >> Makefile <<- EOC
802 - LOOKUP_NIS=yes
803 - LOOKUP_NISPLUS=yes
804 - EOC
805 - fi
806 -
807 - if use postgres; then
808 - cat >> Makefile <<- EOC
809 - LOOKUP_PGSQL=yes
810 - LOOKUP_INCLUDE += -I$(pg_config --includedir)
811 - LOOKUP_LIBS += -L$(pg_config --libdir) -lpq
812 - EOC
813 - fi
814 -
815 - if use sqlite; then
816 - cat >> Makefile <<- EOC
817 - LOOKUP_SQLITE=yes
818 - LOOKUP_SQLITE_PC=sqlite3
819 - EOC
820 - fi
821 -
822 - if use redis; then
823 - cat >> Makefile <<- EOC
824 - LOOKUP_REDIS=yes
825 - LOOKUP_LIBS += -lhiredis
826 - EOC
827 - fi
828 -
829 - #
830 - # Exim monitor, enabled by default, controlled via X USE-flag,
831 - # disable if not requested, bug #46778
832 - if use X; then
833 - cp ../exim_monitor/EDITME eximon.conf || die
834 - else
835 - sed -i -e '/^EXIM_MONITOR=/s/^/# /' Makefile
836 - fi
837 -
838 - #
839 - # features
840 -
841 - # content scanning support
842 - if use exiscan-acl; then
843 - cat >> Makefile <<- EOC
844 - WITH_CONTENT_SCAN=yes
845 - EOC
846 - fi
847 -
848 - # DomainKeys Identified Mail, RFC4871
849 - if ! use dkim; then
850 - # DKIM is enabled by default
851 - cat >> Makefile <<- EOC
852 - DISABLE_DKIM=yes
853 - EOC
854 - fi
855 -
856 - # Per-Recipient-Data-Response
857 - if ! use prdr; then
858 - # PRDR is enabled by default
859 - cat >> Makefile <<- EOC
860 - DISABLE_PRDR=yes
861 - EOC
862 - fi
863 -
864 - # Transport post-delivery actions
865 - if ! use tpda; then
866 - # EVENT is enabled by default
867 - cat >> Makefile <<- EOC
868 - DISABLE_EVENT=yes
869 - EOC
870 - fi
871 -
872 - # log to syslog
873 - if use syslog; then
874 - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Makefile
875 - cat >> Makefile <<- EOC
876 - LOG_FILE_PATH=syslog
877 - EOC
878 - else
879 - cat >> Makefile <<- EOC
880 - LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log
881 - EOC
882 - fi
883 -
884 - # starttls support (ssl)
885 - if use ssl; then
886 - echo "SUPPORT_TLS=yes" >> Makefile
887 - if use gnutls; then
888 - echo "USE_GNUTLS=yes" >> Makefile
889 - echo "USE_GNUTLS_PC=gnutls" >> Makefile
890 - use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile
891 - else
892 - echo "USE_OPENSSL_PC=openssl" >> Makefile
893 - fi
894 - fi
895 -
896 - # TCP wrappers
897 - if use tcpd; then
898 - cat >> Makefile <<- EOC
899 - USE_TCP_WRAPPERS=yes
900 - EXTRALIBS_EXIM += -lwrap
901 - EOC
902 - fi
903 -
904 - # Light Mail Transport Protocol
905 - if use lmtp; then
906 - cat >> Makefile <<- EOC
907 - TRANSPORT_LMTP=yes
908 - EOC
909 - fi
910 -
911 - # embedded Perl
912 - if use perl; then
913 - cat >> Makefile <<- EOC
914 - EXIM_PERL=perl.o
915 - EOC
916 - fi
917 -
918 - # dlfunc
919 - if use dlfunc; then
920 - cat >> Makefile <<- EOC
921 - EXPAND_DLFUNC=yes
922 - EOC
923 - fi
924 -
925 - # Proxy Protocol
926 - if use proxy; then
927 - cat >> Makefile <<- EOC
928 - SUPPORT_PROXY=yes
929 - EOC
930 - fi
931 -
932 - # DANE
933 - if use dane; then
934 - cat >> Makefile <<- EOC
935 - SUPPORT_DANE=yes
936 - EOC
937 - fi
938 -
939 - # Sender Policy Framework
940 - if use spf; then
941 - cat >> Makefile <<- EOC
942 - SUPPORT_SPF=yes
943 - EXTRALIBS_EXIM += -lspf2
944 - EOC
945 - fi
946 -
947 - #
948 - # experimental features
949 -
950 - # Authenticated Receive Chain
951 - if use arc; then
952 - echo "EXPERIMENTAL_ARC=yes">> Makefile
953 - fi
954 -
955 - # Distributed Checksum Clearinghouse
956 - if use dcc; then
957 - echo "EXPERIMENTAL_DCC=yes">> Makefile
958 - fi
959 -
960 - # Sender Rewriting Scheme
961 - if use srs; then
962 - cat >> Makefile <<- EOC
963 - EXPERIMENTAL_SRS=yes
964 - EXTRALIBS_EXIM += -lsrs_alt
965 - EOC
966 - fi
967 -
968 - # DMARC
969 - if use dmarc; then
970 - cat >> Makefile <<- EOC
971 - EXPERIMENTAL_DMARC=yes
972 - EXTRALIBS_EXIM += -lopendmarc
973 - EOC
974 - fi
975 -
976 - # Delivery Sender Notifications extra information in fail message
977 - if use dsn; then
978 - cat >> Makefile <<- EOC
979 - EXPERIMENTAL_DSN_INFO=yes
980 - EOC
981 - fi
982 -
983 - #
984 - # authentication (SMTP AUTH)
985 -
986 - # standard bits
987 - cat >> Makefile <<- EOC
988 - AUTH_SPA=yes
989 - AUTH_CRAM_MD5=yes
990 - AUTH_PLAINTEXT=yes
991 - EOC
992 -
993 - # Cyrus SASL
994 - if use sasl; then
995 - cat >> Makefile <<- EOC
996 - CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux
997 - AUTH_CYRUS_SASL=yes
998 - AUTH_LIBS += -lsasl2
999 - EOC
1000 - fi
1001 -
1002 - # Dovecot
1003 - if use dovecot-sasl; then
1004 - cat >> Makefile <<- EOC
1005 - AUTH_DOVECOT=yes
1006 - EOC
1007 - fi
1008 -
1009 - # Pluggable Authentication Modules
1010 - if use pam; then
1011 - cat >> Makefile <<- EOC
1012 - SUPPORT_PAM=yes
1013 - AUTH_LIBS += -lpam
1014 - EOC
1015 - fi
1016 -
1017 - # Radius
1018 - if use radius; then
1019 - cat >> Makefile <<- EOC
1020 - RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf
1021 - RADIUS_LIB_TYPE=RADIUSCLIENTNEW
1022 - AUTH_LIBS += -lfreeradius-client
1023 - EOC
1024 - fi
1025 -}
1026 -
1027 -src_compile() {
1028 - emake CC="$(tc-getCC)" HOSTCC="$(tc-getCC $CBUILD)" \
1029 - AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' \
1030 - || die "make failed"
1031 -}
1032 -
1033 -src_install () {
1034 - cd "${S}"/build-exim-gentoo || die
1035 - dosbin exim
1036 - if use X; then
1037 - dosbin eximon.bin
1038 - dosbin eximon
1039 - fi
1040 - fperms 4755 /usr/sbin/exim
1041 -
1042 - dosym exim /usr/sbin/sendmail
1043 - dosym exim /usr/sbin/rsmtp
1044 - dosym exim /usr/sbin/rmail
1045 - dosym ../sbin/exim /usr/bin/mailq
1046 - dosym ../sbin/exim /usr/bin/newaliases
1047 - dosym ../sbin/sendmail /usr/lib/sendmail
1048 -
1049 - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \
1050 - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \
1051 - convert4r3 convert4r4 exipick
1052 - do
1053 - dosbin $i
1054 - done
1055 -
1056 - dodoc "${S}"/doc/*
1057 - doman "${S}"/doc/exim.8
1058 - use dsn && dodoc "${S}"/README.DSN
1059 - use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf
1060 -
1061 - # conf files
1062 - insinto /etc/exim
1063 - newins "${S}"/src/configure.default exim.conf.dist
1064 - if use exiscan-acl; then
1065 - newins "${S}"/src/configure.default exim.conf.exiscan-acl
1066 - fi
1067 - doins "${WORKDIR}"/system_filter.exim
1068 - doins "${FILESDIR}"/auth_conf.sub
1069 -
1070 - pamd_mimic system-auth exim auth account
1071 -
1072 - # headers, #436406
1073 - if use dlfunc ; then
1074 - # fixup includes so they actually can be found when including
1075 - sed -i \
1076 - -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \
1077 - local_scan.h || die
1078 - insinto /usr/include/exim
1079 - doins {config,local_scan}.h ../src/{mytypes,store}.h
1080 - fi
1081 -
1082 - insinto /etc/logrotate.d
1083 - newins "${FILESDIR}/exim.logrotate" exim
1084 -
1085 - newinitd "${FILESDIR}"/exim.rc10 exim
1086 - newconfd "${FILESDIR}"/exim.confd exim
1087 -
1088 - systemd_dounit "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket}
1089 - systemd_newunit "${FILESDIR}"/exim_at.service 'exim@.service'
1090 - systemd_newunit "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service'
1091 -
1092 - diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP}
1093 - keepdir /var/log/${PN}
1094 -}
1095 -
1096 -pkg_postinst() {
1097 - if [[ ! -f ${EROOT}etc/exim/exim.conf ]] ; then
1098 - einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter."
1099 - einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth."
1100 - einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist."
1101 - fi
1102 - if use dcc ; then
1103 - einfo "DCC support is experimental, you can find some limited"
1104 - einfo "documentation at the bottom of this prerelease message:"
1105 - einfo "http://article.gmane.org/gmane.mail.exim.devel/3579"
1106 - fi
1107 - use srs && einfo "SRS support is experimental"
1108 - if use dmarc ; then
1109 - einfo "DMARC support is experimental. See global settings to"
1110 - einfo "configure DMARC, for usage see the documentation at "
1111 - einfo "experimental-spec.txt."
1112 - fi
1113 - use dsn && einfo "extra information in fail DSN message is experimental"
1114 - elog "The obsolete acl condition 'demime' is removed, the replacements"
1115 - elog "are the ACLs acl_smtp_mime and acl_not_smtp_mime"
1116 -}