1 |
grobian 11/03/31 15:21:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: exim-4.75.ebuild |
5 |
Log: |
6 |
Version bump to 4.75, bug #361245 |
7 |
|
8 |
(Portage version: 2.2.01.18213-prefix/cvs/Darwin powerpc) |
9 |
|
10 |
Revision Changes Path |
11 |
1.185 mail-mta/exim/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.185&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?rev=1.185&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/ChangeLog?r1=1.184&r2=1.185 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v |
20 |
retrieving revision 1.184 |
21 |
retrieving revision 1.185 |
22 |
diff -u -r1.184 -r1.185 |
23 |
--- ChangeLog 28 Mar 2011 08:22:33 -0000 1.184 |
24 |
+++ ChangeLog 31 Mar 2011 15:21:24 -0000 1.185 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for mail-mta/exim |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.184 2011/03/28 08:22:33 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.185 2011/03/31 15:21:24 grobian Exp $ |
30 |
+ |
31 |
+*exim-4.75 (31 Mar 2011) |
32 |
+ |
33 |
+ 31 Mar 2011; Fabian Groffen <grobian@g.o> +exim-4.75.ebuild: |
34 |
+ Version bump to 4.75, bug #361245 |
35 |
|
36 |
28 Mar 2011; Eray Aslan <eras@g.o> exim-4.71.ebuild, |
37 |
exim-4.72.ebuild, exim-4.72-r1.ebuild, exim-4.74-r1.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-mta/exim/exim-4.75.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.75.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/exim-4.75.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: exim-4.75.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.75.ebuild,v 1.1 2011/03/31 15:21:24 grobian Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
|
54 |
inherit eutils toolchain-funcs multilib pam |
55 |
|
56 |
IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis syslog spf srs gnutls sqlite dovecot-sasl radius maildir +dkim dcc dsn" |
57 |
|
58 |
DSN_EXIM_V=469 |
59 |
DSN_V=1_3 |
60 |
|
61 |
DESCRIPTION="A highly configurable, drop-in replacement for sendmail" |
62 |
SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2 |
63 |
mirror://gentoo/system_filter.exim.gz |
64 |
dsn? ( mirror://sourceforge/eximdsn/eximdsn-patch-1.3/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch )" |
65 |
HOMEPAGE="http://www.exim.org/" |
66 |
|
67 |
SLOT="0" |
68 |
LICENSE="GPL-2" |
69 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
70 |
|
71 |
DEPEND=">=sys-apps/sed-4.0.5 |
72 |
>=sys-libs/db-3.2 |
73 |
dev-libs/libpcre |
74 |
perl? ( sys-devel/libperl ) |
75 |
pam? ( virtual/pam ) |
76 |
tcpd? ( sys-apps/tcp-wrappers ) |
77 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
78 |
gnutls? ( net-libs/gnutls |
79 |
dev-libs/libtasn1 ) |
80 |
ldap? ( >=net-nds/openldap-2.0.7 ) |
81 |
mysql? ( virtual/mysql ) |
82 |
postgres? ( dev-db/postgresql-base ) |
83 |
sasl? ( >=dev-libs/cyrus-sasl-2.1.14 ) |
84 |
spf? ( >=mail-filter/libspf2-1.2.5-r1 ) |
85 |
srs? ( mail-filter/libsrs_alt ) |
86 |
X? ( x11-proto/xproto |
87 |
x11-libs/libX11 |
88 |
x11-libs/libXmu |
89 |
x11-libs/libXt |
90 |
x11-libs/libXaw |
91 |
) |
92 |
sqlite? ( dev-db/sqlite ) |
93 |
radius? ( net-dialup/radiusclient ) |
94 |
virtual/libiconv |
95 |
" |
96 |
# added X check for #57206 |
97 |
RDEPEND="${DEPEND} |
98 |
!mail-mta/courier |
99 |
!mail-mta/esmtp |
100 |
!mail-mta/mini-qmail |
101 |
!mail-mta/msmtp |
102 |
!mail-mta/nbsmtp |
103 |
!mail-mta/netqmail |
104 |
!mail-mta/nullmailer |
105 |
!mail-mta/postfix |
106 |
!mail-mta/qmail-ldap |
107 |
!mail-mta/sendmail |
108 |
!mail-mta/ssmtp |
109 |
!net-mail/mailwrapper |
110 |
>=net-mail/mailbase-0.00-r5 |
111 |
virtual/logger |
112 |
dcc? ( mail-filter/dcc ) |
113 |
" |
114 |
|
115 |
src_prepare() { |
116 |
epatch "${FILESDIR}"/exim-4.14-tail.patch |
117 |
epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch |
118 |
epatch "${FILESDIR}"/exim-4.69-r1.27021.patch |
119 |
epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 |
120 |
|
121 |
use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch |
122 |
use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch |
123 |
} |
124 |
|
125 |
src_configure() { |
126 |
local myconf |
127 |
|
128 |
sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default |
129 |
cp "${S}"/src/configure.default "${S}"/src/configure.default.orig |
130 |
|
131 |
sed -e "48i\CFLAGS=${CFLAGS}" \ |
132 |
-e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ |
133 |
-e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ |
134 |
-e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ |
135 |
-e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ |
136 |
-e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ |
137 |
-e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ |
138 |
-e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ |
139 |
-e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ |
140 |
-e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ |
141 |
-e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ |
142 |
-e "s:# SPOOL_DIRECTORY=/var/spool/exim:SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim:" \ |
143 |
-e "s:# SUPPORT_MAILDIR=yes:SUPPORT_MAILDIR=yes:" \ |
144 |
-e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ |
145 |
-e "s:EXIM_USER=:EXIM_USER=mail:" \ |
146 |
-e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ |
147 |
-e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ |
148 |
-e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ |
149 |
src/EDITME > Local/Makefile |
150 |
|
151 |
# exiscan-acl is now integrated - enable it when use-flag set |
152 |
if use exiscan-acl; then |
153 |
sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile |
154 |
sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile |
155 |
elif (use spf || use srs ) then |
156 |
eerror SPF and SRS support require exiscan-acl to be enabled, please add |
157 |
eerror to your USE settings. |
158 |
exit 1 |
159 |
fi |
160 |
|
161 |
if use spf; then |
162 |
myconf="${myconf} -lspf2" |
163 |
sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile |
164 |
mycflags="${mycflags} -DEXPERIMENTAL_SPF" |
165 |
fi |
166 |
if use srs; then |
167 |
myconf="${myconf} -lsrs_alt" |
168 |
sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile |
169 |
fi |
170 |
|
171 |
cd Local |
172 |
# enable optional exim_monitor support via X use flag bug #46778 |
173 |
if use X; then |
174 |
einfo "Configuring eximon" |
175 |
cp ../exim_monitor/EDITME eximon.conf |
176 |
sed -i "s:# EXIM_MONITOR=eximon.bin:EXIM_MONITOR=eximon.bin:" Makefile |
177 |
fi |
178 |
if use perl; then |
179 |
sed -i "s:# EXIM_PERL=perl.o:EXIM_PERL=perl.o:" Makefile |
180 |
fi |
181 |
# mbox useflag renamed, see bug #110741 |
182 |
if use mbx; then |
183 |
sed -i "s:# SUPPORT_MBX=yes:SUPPORT_MBX=yes:" Makefile |
184 |
fi |
185 |
if use pam; then |
186 |
sed -i "s:# \(SUPPORT_PAM=yes\):\1:" Makefile |
187 |
myconf="${myconf} -lpam" |
188 |
fi |
189 |
if use sasl; then |
190 |
sed -i "s:# CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/state/saslauthd/mux:CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/lib/sasl2/mux:" Makefile |
191 |
sed -i "s:# AUTH_CYRUS_SASL=yes:AUTH_CYRUS_SASL=yes:" Makefile |
192 |
myconf="${myconf} -lsasl2" |
193 |
fi |
194 |
if use tcpd; then |
195 |
sed -i "s:# \(USE_TCP_WRAPPERS=yes\):\1:" Makefile |
196 |
myconf="${myconf} -lwrap" |
197 |
fi |
198 |
if use lmtp; then |
199 |
sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile |
200 |
fi |
201 |
if use ipv6; then |
202 |
echo "HAVE_IPV6=YES" >> Makefile |
203 |
# to fix bug #41196 |
204 |
echo "IPV6_USE_INET_PTON=yes" >> Makefile |
205 |
fi |
206 |
if use dovecot-sasl; then |
207 |
sed -i "s:# AUTH_DOVECOT=yes:AUTH_DOVECOT=yes:" Makefile |
208 |
fi |
209 |
if use radius; then |
210 |
myconf="${myconf} -lradiusclient" |
211 |
sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile |
212 |
sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile |
213 |
fi |
214 |
echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile |
215 |
|
216 |
# make iconv usage explicit |
217 |
echo "HAVE_ICONV=yes" >> Makefile |
218 |
# if we use libiconv, now is the time to tell so |
219 |
use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile |
220 |
|
221 |
cd "${S}" |
222 |
if use ssl; then |
223 |
sed -i \ |
224 |
-e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile |
225 |
if use gnutls; then |
226 |
sed -i \ |
227 |
-e "s:# \(USE_GNUTLS=yes\):\1:" \ |
228 |
-e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile |
229 |
else |
230 |
sed -i \ |
231 |
-e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile |
232 |
fi |
233 |
fi |
234 |
|
235 |
LOOKUP_INCLUDE= |
236 |
LOOKUP_LIBS= |
237 |
|
238 |
if use ldap; then |
239 |
sed -i \ |
240 |
-e "s:# \(LOOKUP_LDAP=yes\):\1:" \ |
241 |
-e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile |
242 |
LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" |
243 |
LOOKUP_LIBS="-lldap -llber" |
244 |
fi |
245 |
|
246 |
if use mysql; then |
247 |
sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile |
248 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" |
249 |
LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" |
250 |
fi |
251 |
|
252 |
if use postgres; then |
253 |
sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile |
254 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" |
255 |
LOOKUP_LIBS="$LOOKUP_LIBS -lpq" |
256 |
fi |
257 |
|
258 |
if use sqlite; then |
259 |
sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile |
260 |
LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" |
261 |
LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" |
262 |
fi |
263 |
|
264 |
if [[ -n ${LOOKUP_INCLUDE} ]]; then |
265 |
sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ |
266 |
Local/Makefile |
267 |
fi |
268 |
|
269 |
if [[ -n ${LOOKUP_LIBS} ]]; then |
270 |
sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ |
271 |
Local/Makefile |
272 |
fi |
273 |
|
274 |
sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile |
275 |
|
276 |
sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile |
277 |
|
278 |
if use dnsdb; then |
279 |
sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile |
280 |
fi |
281 |
sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile |
282 |
|
283 |
if use nis; then |
284 |
sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ |
285 |
-e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile |
286 |
fi |
287 |
if use syslog; then |
288 |
sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile |
289 |
fi |
290 |
if ! use dkim; then |
291 |
# DKIM is enabled by default. We have to explicitly disable it. |
292 |
echo "DISABLE_DKIM=yes">> Local/Makefile |
293 |
fi |
294 |
if use dcc; then |
295 |
echo "EXPERIMENTAL_DCC=yes">> Local/Makefile |
296 |
fi |
297 |
if use dsn; then |
298 |
sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile |
299 |
fi |
300 |
|
301 |
# use the "native" interface to the DBM library |
302 |
echo "USE_DB=yes" >> Local/Makefile |
303 |
} |
304 |
|
305 |
src_compile() { |
306 |
emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" |
307 |
} |
308 |
|
309 |
src_install () { |
310 |
cd "${S}"/build-exim-gentoo |
311 |
exeinto /usr/sbin |
312 |
doexe exim |
313 |
if use X; then |
314 |
doexe eximon.bin |
315 |
doexe eximon |
316 |
fi |
317 |
fperms 4755 /usr/sbin/exim |
318 |
|
319 |
dodir /usr/bin /usr/sbin /usr/lib |
320 |
|
321 |
dosym exim /usr/sbin/sendmail |
322 |
dosym exim /usr/sbin/rsmtp |
323 |
dosym exim /usr/sbin/rmail |
324 |
dosym /usr/sbin/exim /usr/bin/mailq |
325 |
dosym /usr/sbin/exim /usr/bin/newaliases |
326 |
dosym /usr/sbin/sendmail /usr/lib/sendmail |
327 |
|
328 |
exeinto /usr/sbin |
329 |
for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ |
330 |
exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ |
331 |
convert4r3 convert4r4 exipick |
332 |
do |
333 |
doexe $i |
334 |
done |
335 |
|
336 |
dodoc "${S}"/doc/* |
337 |
doman "${S}"/doc/exim.8 |
338 |
use dsn && dodoc "${S}"/README.DSN |
339 |
|
340 |
# conf files |
341 |
insinto /etc/exim |
342 |
newins "${S}"/src/configure.default.orig exim.conf.dist |
343 |
if use exiscan-acl; then |
344 |
newins "${S}"/src/configure.default exim.conf.exiscan-acl |
345 |
fi |
346 |
doins "${WORKDIR}"/system_filter.exim |
347 |
doins "${FILESDIR}"/auth_conf.sub |
348 |
|
349 |
pamd_mimic system-auth exim auth account |
350 |
|
351 |
insinto /etc/logrotate.d |
352 |
newins "${FILESDIR}/exim.logrotate" exim |
353 |
|
354 |
newinitd "${FILESDIR}"/exim.rc6 exim |
355 |
|
356 |
newconfd "${FILESDIR}"/exim.confd exim |
357 |
|
358 |
DIROPTIONS="--mode=0750 --owner=mail --group=mail" |
359 |
dodir /var/log/${PN} |
360 |
} |
361 |
|
362 |
pkg_postinst() { |
363 |
einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter." |
364 |
einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." |
365 |
einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist." |
366 |
if use dcc ; then |
367 |
einfo "DCC support is experimental, you can find some limited" |
368 |
einfo "documentation at the bottom of this prerelease message:" |
369 |
einfo "http://article.gmane.org/gmane.mail.exim.devel/3579" |
370 |
fi |
371 |
} |