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