Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/exim/
Date: Sat, 29 May 2021 09:34:57
Message-Id: 1622280890.f381c20732ea84d6416b0f703d6c37965f003ef0.grobian@gentoo
1 commit: f381c20732ea84d6416b0f703d6c37965f003ef0
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 29 09:34:39 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat May 29 09:34:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f381c207
7
8 mail-mta/exim4.94.2-r2: add socks5 support, bug #774903
9
10 Closes: https://bugs.gentoo.org/774903
11 Package-Manager: Portage-3.0.18, Repoman-3.0.2
12 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
13
14 mail-mta/exim/exim-4.94.2-r2.ebuild | 629 ++++++++++++++++++++++++++++++++++++
15 1 file changed, 629 insertions(+)
16
17 diff --git a/mail-mta/exim/exim-4.94.2-r2.ebuild b/mail-mta/exim/exim-4.94.2-r2.ebuild
18 new file mode 100644
19 index 00000000000..c825df4517e
20 --- /dev/null
21 +++ b/mail-mta/exim/exim-4.94.2-r2.ebuild
22 @@ -0,0 +1,629 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="7"
27 +
28 +inherit db-use toolchain-funcs multilib pam systemd
29 +
30 +IUSE="arc +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn elibc_glibc exiscan-acl gnutls idn ipv6 ldap lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux socks5 spf sqlite srs +srs-alt srs-native +ssl syslog tcpd +tpda X"
31 +REQUIRED_USE="
32 + arc? ( dkim spf )
33 + dane? ( ssl !gnutls )
34 + dmarc? ( dkim spf )
35 + dkim? ( ssl !gnutls )
36 + gnutls? ( ssl )
37 + pkcs11? ( ssl )
38 + spf? ( exiscan-acl )
39 + srs? (
40 + exiscan-acl
41 + ^^ ( srs-alt srs-native )
42 + )
43 +"
44 +# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked
45 +# for x86 and amd64 only, due to this, repoman won't allow depending on
46 +# gnutls[dane] for all else. Because we cannot express USE=dane when
47 +# USE=gnutls is in effect only in package.use.mask, the only option we
48 +# have left is to a) ignore the dependency (but that results in bug
49 +# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are
50 +# incorrect, but b) is the only "correct" view from repoman.
51 +
52 +SDIR=$([[ ${PV} == *_rc* ]] && echo /test
53 + [[ ${PV} == *.*.*.* ]] && echo /fixes)
54 +COMM_URI="https://downloads.exim.org/exim4${SDIR}"
55 +
56 +DESCRIPTION="A highly configurable, drop-in replacement for sendmail"
57 +SRC_URI="${COMM_URI}/${P//_rc/-RC}.tar.xz
58 + mirror://gentoo/system_filter.exim.gz
59 + doc? ( ${COMM_URI}/${PN}-pdf-${PV//_rc/-RC}.tar.xz )"
60 +HOMEPAGE="https://www.exim.org/"
61 +
62 +SLOT="0"
63 +LICENSE="GPL-2"
64 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris"
65 +
66 +COMMON_DEPEND=">=sys-apps/sed-4.0.5
67 + ( >=sys-libs/db-3.2:= <sys-libs/db-6:= )
68 + dev-libs/libpcre
69 + idn? ( net-dns/libidn:= net-dns/libidn2:= )
70 + perl? ( dev-lang/perl:= )
71 + pam? ( sys-libs/pam )
72 + tcpd? ( sys-apps/tcp-wrappers )
73 + ssl? (
74 + gnutls? (
75 + net-libs/gnutls:0=[pkcs11?]
76 + dev-libs/libtasn1
77 + )
78 + !gnutls? (
79 + dev-libs/openssl:0=
80 + )
81 + )
82 + ldap? ( >=net-nds/openldap-2.0.7 )
83 + nis? (
84 + elibc_glibc? (
85 + net-libs/libtirpc
86 + >=net-libs/libnsl-1:=
87 + )
88 + )
89 + mysql? ( dev-db/mysql-connector-c:= )
90 + postgres? ( dev-db/postgresql:= )
91 + sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
92 + redis? ( dev-libs/hiredis )
93 + spf? ( >=mail-filter/libspf2-1.2.5-r1 )
94 + dmarc? ( mail-filter/opendmarc:= )
95 + srs? ( srs-alt? ( mail-filter/libsrs_alt ) )
96 + X? (
97 + x11-libs/libX11
98 + x11-libs/libXmu
99 + x11-libs/libXt
100 + x11-libs/libXaw
101 + )
102 + sqlite? ( dev-db/sqlite )
103 + radius? ( net-dialup/freeradius-client )
104 + virtual/libiconv
105 + elibc_glibc? ( net-libs/libnsl )
106 + "
107 + # added X check for #57206
108 +BDEPEND="virtual/pkgconfig"
109 +DEPEND="${COMMON_DEPEND}"
110 +RDEPEND="${COMMON_DEPEND}
111 + !mail-mta/courier
112 + !mail-mta/esmtp
113 + !mail-mta/mini-qmail
114 + !<mail-mta/msmtp-1.4.19-r1
115 + !>=mail-mta/msmtp-1.4.19-r1[mta]
116 + !mail-mta/netqmail
117 + !mail-mta/nullmailer
118 + !mail-mta/postfix
119 + !mail-mta/qmail-ldap
120 + !mail-mta/sendmail
121 + !mail-mta/opensmtpd
122 + !<mail-mta/ssmtp-2.64-r2
123 + !>=mail-mta/ssmtp-2.64-r2[mta]
124 + !net-mail/mailwrapper
125 + >=net-mail/mailbase-0.00-r5
126 + virtual/logger
127 + dcc? ( mail-filter/dcc )
128 + selinux? ( sec-policy/selinux-exim )
129 + "
130 +
131 +S=${WORKDIR}/${P//_rc/-RC}
132 +
133 +src_prepare() {
134 + # Legacy patches which need a respin for -p1
135 + eapply -p0 "${FILESDIR}"/exim-4.14-tail.patch
136 + eapply -p0 "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426
137 + eapply "${FILESDIR}"/exim-4.93-as-needed-ldflags.patch # 352265, 391279
138 + eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
139 + eapply "${FILESDIR}"/exim-4.69-r1.27021.patch
140 + eapply "${FILESDIR}"/exim-4.94-localscan_dlopen.patch
141 +
142 + # for this reason we have a := dep on opendmarc, they changed their
143 + # API in a minor release
144 + if use dmarc && has_version ">=mail-filter/opendmarc-1.4" ; then
145 + eapply "${FILESDIR}"/exim-4.94-opendmarc-1.4.patch
146 + fi
147 +
148 + if use maildir ; then
149 + eapply "${FILESDIR}"/exim-4.94-maildir.patch
150 + else
151 + eapply -p0 "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606
152 + fi
153 +
154 + eapply_user
155 +
156 + # user Exim believes it should be
157 + MAILUSER=mail
158 + MAILGROUP=mail
159 + if use prefix && [[ ${EUID} != 0 ]] ; then
160 + MAILUSER=$(id -un)
161 + MAILGROUP=$(id -gn)
162 + fi
163 +}
164 +
165 +src_configure() {
166 + # general config and paths
167 +
168 + local aliases="${EPREFIX}/etc/mail/aliases"
169 + sed -i \
170 + -e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \
171 + src/configure.default || die
172 +
173 + sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die
174 +
175 + if use elibc_musl; then
176 + sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die
177 + fi
178 +
179 + local conffile="${EPREFIX}/etc/exim/exim.conf"
180 + sed -e "48i\CFLAGS=${CFLAGS}" \
181 + -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \
182 + -e "s;EXIM_USER=;EXIM_USER=ref:${MAILUSER};" \
183 + -e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \
184 + -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \
185 + -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \
186 + src/EDITME > Local/Makefile || die
187 +
188 + # work on Local/Makefile from now on
189 + cd Local
190 +
191 + cat >> Makefile <<- EOC
192 + INFO_DIRECTORY=${EPREFIX}/usr/share/info
193 + PID_FILE_PATH=${EPREFIX}/run/exim.pid
194 + SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim
195 + HAVE_ICONV=yes
196 + EOC
197 +
198 + # if we use libiconv, now is the time to tell so
199 + if use !elibc_glibc && use !elibc_musl ; then
200 + cat >> Makefile <<- EOC
201 + EXTRALIBS_EXIM=-liconv
202 + EOC
203 + fi
204 +
205 + # support for IPv6
206 + if use ipv6; then
207 + cat >> Makefile <<- EOC
208 + HAVE_IPV6=YES
209 + EOC
210 + fi
211 +
212 + # support i18n/IDNA
213 + if use idn; then
214 + cat >> Makefile <<- EOC
215 + SUPPORT_I18N=yes
216 + SUPPORT_I18N_2008=yes
217 + EXTRALIBS_EXIM += -lidn -lidn2
218 + EOC
219 + fi
220 +
221 + #
222 + # mail storage formats
223 + #
224 +
225 + # mailstore is Exim's traditional storage format
226 + cat >> Makefile <<- EOC
227 + SUPPORT_MAILSTORE=yes
228 + EOC
229 +
230 + # mbox
231 + if use mbx; then
232 + cat >> Makefile <<- EOC
233 + SUPPORT_MBX=yes
234 + EOC
235 + fi
236 +
237 + # maildir
238 + if use maildir; then
239 + cat >> Makefile <<- EOC
240 + SUPPORT_MAILDIR=yes
241 + EOC
242 + fi
243 +
244 + #
245 + # lookup methods
246 +
247 + # use the "native" interfaces to the DBM and CDB libraries, support
248 + # passwd and directory lookups by default
249 + local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2"
250 + cat >> Makefile <<- EOC
251 + USE_DB=yes
252 + LOOKUP_CDB=yes
253 + LOOKUP_PASSWD=yes
254 + LOOKUP_DSEARCH=yes
255 + # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h
256 + CFLAGS += -I$(db_includedir ${DB_VERS})
257 + DBMLIB = -l$(db_libname ${DB_VERS})
258 + EOC
259 +
260 + if ! use dnsdb; then
261 + # DNSDB lookup is enabled by default
262 + sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die
263 + fi
264 +
265 + if use ldap; then
266 + cat >> Makefile <<- EOC
267 + LOOKUP_LDAP=yes
268 + LDAP_LIB_TYPE=OPENLDAP2
269 + LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap
270 + LOOKUP_LIBS += -lldap -llber
271 + EOC
272 + fi
273 +
274 + if use mysql; then
275 + cat >> Makefile <<- EOC
276 + LOOKUP_MYSQL=yes
277 + LOOKUP_INCLUDE += $(mysql_config --include)
278 + LOOKUP_LIBS += $(mysql_config --libs)
279 + EOC
280 + fi
281 +
282 + if use nis; then
283 + cat >> Makefile <<- EOC
284 + LOOKUP_NIS=yes
285 + LOOKUP_NISPLUS=yes
286 + EOC
287 + if use elibc_glibc ; then
288 + cat >> Makefile <<- EOC
289 + LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/tirpc
290 + LOOKUP_LIBS += -lnsl
291 + EOC
292 + fi
293 + fi
294 +
295 + if use postgres; then
296 + cat >> Makefile <<- EOC
297 + LOOKUP_PGSQL=yes
298 + LOOKUP_INCLUDE += -I$(pg_config --includedir)
299 + LOOKUP_LIBS += -L$(pg_config --libdir) -lpq
300 + EOC
301 + fi
302 +
303 + if use sqlite; then
304 + cat >> Makefile <<- EOC
305 + LOOKUP_SQLITE=yes
306 + LOOKUP_SQLITE_PC=sqlite3
307 + EOC
308 + fi
309 +
310 + if use redis; then
311 + cat >> Makefile <<- EOC
312 + LOOKUP_REDIS=yes
313 + LOOKUP_LIBS += -lhiredis
314 + EOC
315 + fi
316 +
317 + # Exim monitor, enabled by default, controlled via X USE-flag,
318 + # disable if not requested, bug #46778
319 + if use X; then
320 + cp ../exim_monitor/EDITME eximon.conf || die
321 + cat >> Makefile <<- EOC
322 + EXIM_MONITOR=eximon.bin
323 + EOC
324 + fi
325 +
326 + #
327 + # features
328 + #
329 +
330 + # content scanning support
331 + if use exiscan-acl; then
332 + cat >> Makefile <<- EOC
333 + WITH_CONTENT_SCAN=yes
334 + EOC
335 + fi
336 +
337 + # DomainKeys Identified Mail, RFC4871
338 + if ! use dkim; then
339 + # DKIM is enabled by default
340 + cat >> Makefile <<- EOC
341 + DISABLE_DKIM=yes
342 + EOC
343 + fi
344 +
345 + # Per-Recipient-Data-Response
346 + if ! use prdr; then
347 + # PRDR is enabled by default
348 + cat >> Makefile <<- EOC
349 + DISABLE_PRDR=yes
350 + EOC
351 + fi
352 +
353 + # Transport post-delivery actions
354 + if use !tpda && use !dane; then
355 + # EVENT is enabled by default
356 + cat >> Makefile <<- EOC
357 + DISABLE_EVENT=yes
358 + EOC
359 + fi
360 +
361 + # log to syslog
362 + if use syslog; then
363 + local eximlog="${EPREFIX}/var/log/exim/exim_%s.log"
364 + sed -i \
365 + -e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \
366 + Makefile || die
367 + cat >> Makefile <<- EOC
368 + LOG_FILE_PATH=syslog
369 + EOC
370 + else
371 + cat >> Makefile <<- EOC
372 + LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log
373 + EOC
374 + fi
375 +
376 + # starttls support (ssl)
377 + if use ssl; then
378 + if use gnutls; then
379 + echo "USE_GNUTLS=yes" >> Makefile
380 + echo "USE_GNUTLS_PC=gnutls $(use dane && echo gnutls-dane)" \
381 + >> Makefile
382 + use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile
383 + else
384 + echo "USE_OPENSSL=yes" >> Makefile
385 + echo "USE_OPENSSL_PC=openssl" >> Makefile
386 + fi
387 + else
388 + echo "DISABLE_TLS=yes" >> Makefile
389 + fi
390 +
391 + # TCP wrappers
392 + if use tcpd; then
393 + cat >> Makefile <<- EOC
394 + USE_TCP_WRAPPERS=yes
395 + EXTRALIBS_EXIM += -lwrap
396 + EOC
397 + fi
398 +
399 + # Light Mail Transport Protocol
400 + if use lmtp; then
401 + cat >> Makefile <<- EOC
402 + TRANSPORT_LMTP=yes
403 + EOC
404 + fi
405 +
406 + # embedded Perl
407 + if use perl; then
408 + cat >> Makefile <<- EOC
409 + EXIM_PERL=perl.o
410 + EOC
411 + fi
412 +
413 + # dlfunc
414 + if use dlfunc; then
415 + cat >> Makefile <<- EOC
416 + EXPAND_DLFUNC=yes
417 + HAVE_LOCAL_SCAN=yes
418 + DLOPEN_LOCAL_SCAN=yes
419 + EOC
420 + fi
421 +
422 + # Proxy Protocol
423 + if use proxy; then
424 + cat >> Makefile <<- EOC
425 + SUPPORT_PROXY=yes
426 + EOC
427 + fi
428 +
429 + # SOCKS5 (outbound) proxy support
430 + if use socks5; then
431 + cat >> Makefile <<- EOC
432 + SUPPORT_SOCKS=yes
433 + EOC
434 + fi
435 +
436 + # DANE
437 + if use !dane; then
438 + # DANE is enabled by default
439 + sed -i -e 's:^SUPPORT_DANE=yes:# SUPPORT_DANE=yes:' Makefile || die
440 + fi
441 +
442 + # DMARC
443 + if use dmarc; then
444 + cat >> Makefile <<- EOC
445 + SUPPORT_DMARC=yes
446 + EXTRALIBS_EXIM += -lopendmarc
447 + EOC
448 + fi
449 +
450 + # Sender Policy Framework
451 + if use spf; then
452 + cat >> Makefile <<- EOC
453 + SUPPORT_SPF=yes
454 + EXTRALIBS_EXIM += -lspf2
455 + EOC
456 + fi
457 +
458 + #
459 + # experimental features
460 + #
461 +
462 + # Authenticated Receive Chain
463 + if use arc; then
464 + echo "EXPERIMENTAL_ARC=yes">> Makefile
465 + fi
466 +
467 + # Distributed Checksum Clearinghouse
468 + if use dcc; then
469 + echo "EXPERIMENTAL_DCC=yes">> Makefile
470 + fi
471 +
472 + # Sender Rewriting Scheme
473 + if use srs; then
474 + # NOTE: we currently USE-default to srs-alt, because this is
475 + # what USE=srs used to be. Eventually we want to rid ourselves
476 + # of this external implementation.
477 + if use srs-alt; then
478 + # historical default, from 4.95 this becomes
479 + # EXPERIMENTAL_SRS_ALT
480 + cat >> Makefile <<- EOC
481 + EXPERIMENTAL_SRS=yes
482 + EXTRALIBS_EXIM += -lsrs_alt
483 + EOC
484 + fi
485 + if use srs-native; then
486 + # this one becomes SUPPORT_SRS in 4.95
487 + cat >> Makefile <<- EOC
488 + EXPERIMENTAL_SRS_NATIVE=yes
489 + EOC
490 + fi
491 + fi
492 +
493 + # Delivery Sender Notifications extra information in fail message
494 + if use dsn; then
495 + cat >> Makefile <<- EOC
496 + EXPERIMENTAL_DSN_INFO=yes
497 + EOC
498 + fi
499 +
500 + #
501 + # authentication (SMTP AUTH)
502 + #
503 +
504 + # standard bits
505 + cat >> Makefile <<- EOC
506 + AUTH_SPA=yes
507 + AUTH_CRAM_MD5=yes
508 + AUTH_PLAINTEXT=yes
509 + EOC
510 +
511 + # Cyrus SASL
512 + if use sasl; then
513 + cat >> Makefile <<- EOC
514 + CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux
515 + AUTH_CYRUS_SASL=yes
516 + AUTH_LIBS += -lsasl2
517 + EOC
518 + fi
519 +
520 + # Dovecot
521 + if use dovecot-sasl; then
522 + cat >> Makefile <<- EOC
523 + AUTH_DOVECOT=yes
524 + EOC
525 + fi
526 +
527 + # Pluggable Authentication Modules
528 + if use pam; then
529 + cat >> Makefile <<- EOC
530 + SUPPORT_PAM=yes
531 + AUTH_LIBS += -lpam
532 + EOC
533 + fi
534 +
535 + # Radius
536 + if use radius; then
537 + cat >> Makefile <<- EOC
538 + RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf
539 + RADIUS_LIB_TYPE=RADIUSCLIENTNEW
540 + AUTH_LIBS += -lfreeradius-client
541 + EOC
542 + fi
543 +}
544 +
545 +src_compile() {
546 + emake CC="$(tc-getCC)" HOSTCC="$(tc-getBUILD_CC)" \
547 + AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO=''
548 +}
549 +
550 +src_install() {
551 + cd "${S}"/build-exim-gentoo || die
552 + dosbin exim
553 + if use X; then
554 + dosbin eximon.bin
555 + dosbin eximon
556 + fi
557 + fperms 4755 /usr/sbin/exim
558 +
559 + dosym exim /usr/sbin/sendmail
560 + dosym exim /usr/sbin/rsmtp
561 + dosym exim /usr/sbin/rmail
562 + dosym ../sbin/exim /usr/bin/mailq
563 + dosym ../sbin/exim /usr/bin/newaliases
564 + dosym ../sbin/sendmail /usr/lib/sendmail
565 +
566 + for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \
567 + exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \
568 + convert4r3 convert4r4 exipick
569 + do
570 + dosbin $i
571 + done
572 +
573 + dodoc -r "${S}"/doc/.
574 + doman "${S}"/doc/exim.8
575 + use dsn && dodoc "${S}"/README.DSN
576 + use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf
577 +
578 + # conf files
579 + insinto /etc/exim
580 + newins "${S}"/src/configure.default exim.conf.dist
581 + if use exiscan-acl; then
582 + newins "${S}"/src/configure.default exim.conf.exiscan-acl
583 + fi
584 + doins "${WORKDIR}"/system_filter.exim
585 + doins "${FILESDIR}"/auth_conf.sub
586 +
587 + if use pam; then
588 + pamd_mimic system-auth exim auth account
589 + fi
590 +
591 + # headers, #436406
592 + if use dlfunc ; then
593 + # fixup includes so they actually can be found when including
594 + sed -i \
595 + -e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \
596 + local_scan.h || die
597 + insinto /usr/include/exim
598 + doins {config,local_scan}.h ../src/{mytypes,store}.h
599 + fi
600 +
601 + insinto /etc/logrotate.d
602 + newins "${FILESDIR}/exim.logrotate" exim
603 +
604 + newinitd "${FILESDIR}"/exim.rc10 exim
605 + newconfd "${FILESDIR}"/exim.confd exim
606 +
607 + systemd_dounit \
608 + "${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket}
609 + systemd_newunit \
610 + "${FILESDIR}"/exim_at.service 'exim@.service'
611 + systemd_newunit \
612 + "${FILESDIR}"/exim-submission_at.service 'exim-submission@.service'
613 +
614 + diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP}
615 + keepdir /var/log/${PN}
616 +}
617 +
618 +pkg_postinst() {
619 + if [[ ! -f ${EROOT}/etc/exim/exim.conf ]] ; then
620 + einfo "${EROOT}/etc/exim/system_filter.exim is a sample system_filter."
621 + einfo "${EROOT}/etc/exim/auth_conf.sub contains the configuration sub"
622 + einfo "for using smtp auth."
623 + einfo "Please create ${EROOT}/etc/exim/exim.conf from"
624 + einfo " ${EROOT}/etc/exim/exim.conf.dist."
625 + fi
626 + if use dmarc ; then
627 + einfo "DMARC support requires ${EROOT}/etc/exim/opendmarc.tlds"
628 + einfo "you can populate this file with the contents downloaded from"
629 + einfo " https://publicsuffix.org/list/public_suffix_list.dat"
630 + fi
631 + if use dcc ; then
632 + einfo "DCC support is experimental, you can find some limited"
633 + einfo "documentation at the bottom of this prerelease message:"
634 + einfo " http://article.gmane.org/gmane.mail.exim.devel/3579"
635 + fi
636 + if use srs ; then
637 + einfo "SRS support is experimental in this release of Exim"
638 + if use srs-alt; then
639 + elog "You are using libsrs_alt to implement SRS support."
640 + elog "In future release of Exim, the native SRS implementation"
641 + elog "(USE=srs-native) will become the default. Please prepare"
642 + elog "your package.use or switch to USE=srs-native now."
643 + fi
644 + fi
645 + use dsn && einfo "extra information in fail DSN message is experimental"
646 + einfo
647 + elog "Note that this release contains a tainted variable check that"
648 + elog "is likely to break your configuration used with Exim 4.93 and before."
649 + elog "Please check your transports for occurences of \$local_part, and"
650 + elog "use a replacement like \$local_part_data where possible."
651 +}