%bcond_without ldap # without LDAP support
%bcond_without spf # without spf support
%bcond_without srs # without srs support
-%bcond_without dkeys # without domainkeys support
#
Summary: University of Cambridge Mail Transfer Agent
Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge
Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim
Name: exim
-Version: 4.66
+Version: 4.71
Release: 3
Epoch: 2
License: GPL
-Group: Networking/Daemons
-Source0: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{name}-%{version}.tar.bz2
-# Source0-md5: 01288e44919d8abdde5a7bd2c200449b
-Source1: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{name}-texinfo-%{version}.tar.bz2
-# Source1-md5: f45a204f3865afa2d72b0fbd3eff8bf8
+Group: Networking/Daemons/SMTP
+Source0: ftp://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.bz2
+# Source0-md5: f9c5a2d94b5bb132d06e2fff85bef75e
+Source1: ftp://ftp.exim.org/pub/exim/exim4/%{name}-texinfo-%{version}.tar.bz2
+# Source1-md5: 27d9bc3321854abfd8cb33dfb8c061a5
Source2: %{name}.init
Source3: %{name}.cron.db
Source4: %{name}4.conf
Patch0: %{name}4-EDITME.patch
Patch1: %{name}4-monitor-EDITME.patch
Patch2: %{name}4-cflags.patch
-Patch3: %{name}4-use_system_pcre.patch
Patch4: %{name}4-Makefile-Default.patch
# http://marc.merlins.org/linux/exim/files/sa-exim-cvs/localscan_dlopen_exim_4.20_or_better.patch
Patch5: localscan_dlopen_%{name}_4.20_or_better.patch
# http://sourceforge.net/projects/eximdsn/
Patch7: %{name}_463_dsn_1_3.patch
Patch8: %{name}-spam-timeout.patch
-Patch9: %{name}-bug-461.patch
+Patch9: %{name}-dkim.patch
+Patch10: %{name}-force-sigalrm.patch
URL: http://www.exim.org/
%{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0}
BuildRequires: db-devel
-%{?with_dkeys:BuildRequires: libdomainkeys-devel >= 0.68}
%{?with_spf:BuildRequires: libspf2-devel >= 1.2.5-2}
%{?with_srs:BuildRequires: libsrs_alt-devel >= 1.0}
%{?with_mysql:BuildRequires: mysql-devel}
-%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
+%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pam-devel
BuildRequires: pcre-devel
BuildRequires: texinfo >= 4.7
%{?with_whoson:BuildRequires: whoson-devel}
BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXaw-devel
Requires(post): /bin/hostname
Requires(post): fileutils
Requires(post,preun): /sbin/chkconfig
Requires(pre): /usr/sbin/useradd
Requires: findutils
Requires: pam >= 0.79.0
-Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
Requires: rc-scripts
Provides: group(exim)
Provides: smtpdaemon
Provides: user(exim)
-Obsoletes: courier
-Obsoletes: masqmail
-Obsoletes: nullmailer
-Obsoletes: omta
-Obsoletes: postfix
-Obsoletes: qmail
-Obsoletes: qmail-client
-Obsoletes: sendmail
-Obsoletes: sendmail-cf
-Obsoletes: sendmail-doc
-Obsoletes: smail
Obsoletes: smtpdaemon
-Obsoletes: ssmtp
-Obsoletes: zmailer
+Conflicts: logrotate < 3.7-4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
-%patch9 -p1
+%patch9 -p0
+%patch10 -p1
install %{SOURCE13} doc/FAQ.txt.bz2
install %{SOURCE14} doc/config.samples.tar.bz2
%build
%{__make} -j1 \
- %{?debug:FULLECHO=''} \
+ FULLECHO='' \
CC="%{__cc}" \
- CUSTOM_CFLAGS="%{rpmcflags} -DSUPPORT_DSN=yes %{?with_spf:-DEXPERIMENTAL_SPF=yes} %{?with_srs:-DEXPERIMENTAL_SRS=yes} %{?with_dkeys:-DEXPERIMENTAL_DOMAINKEYS=yes}" \
+ CUSTOM_CFLAGS="%{rpmcppflags} %{rpmcflags} -DSUPPORT_DSN=yes %{?with_spf:-DEXPERIMENTAL_SPF=yes} %{?with_srs:-DEXPERIMENTAL_SRS=yes}" \
LOOKUP_CDB=yes \
XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \
X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \
%{?with_whoson:LOOKUP_WHOSON=yes} \
%{?with_sasl:AUTH_CYRUS_SASL=yes} \
%{?with_ldap:LOOKUP_LDAP=yes LDAP_LIB_TYPE=OPENLDAP2} \
- LOOKUP_LIBS="%{?with_ldap:-lldap -llber} %{?with_mysql:-lmysqlclient} %{?with_pgsql:-lpq} %{?with_sqlite:-lsqlite3} %{?with_whoson:-lwhoson} %{?with_spf:-lspf2} %{?with_srs:-lsrs_alt} %{?with_sasl:-lsasl2} %{?with_dkeys:-ldomainkeys}" \
+ LOOKUP_LIBS="%{?with_ldap:-lldap -llber} %{?with_mysql:-lmysqlclient} %{?with_pgsql:-lpq} %{?with_sqlite:-lsqlite3} %{?with_whoson:-lwhoson} %{?with_spf:-lspf2} %{?with_srs:-lsrs_alt} %{?with_sasl:-lsasl2}" \
LOOKUP_INCLUDE="%{?with_mysql:-I%{_includedir}/mysql} %{?with_pgsql:-I%{_includedir}/pgsql}"
makeinfo --force -o exim_filtering.info exim-texinfo-*/doc/filter.texinfo
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail
-install -d $RPM_BUILD_ROOT/etc/{cron.{daily,weekly},logrotate.d,rc.d/init.d,sysconfig,pam.d}
+install -d $RPM_BUILD_ROOT/etc/{cron.{daily,weekly},logrotate.d,rc.d/init.d,sysconfig,pam.d,security}
install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8,%{_prefix}/lib}
-install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archiv,}/exim,mail}
+install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archive,}/exim,mail}
install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
%groupremove exim
fi
-%triggerpostun -- exim < 3.90
-if [ -f /etc/mail/exim.conf ]; then
- umask 022
- mv /etc/mail/exim.conf /etc/mail/exim.conf.3
- /usr/bin/convert4r4 < /etc/mail/exim.conf.3 > /etc/mail/exim.conf
-fi
-
%files
%defattr(644,root,root,755)
%doc README* NOTICE LICENCE analyse-log-errors doc/{ChangeLog,NewStuff,dbm.discuss.txt,filter.txt,spec.txt,Exim*.upgrade,OptionLists.txt,experimental-spec.txt} build-Linux-*/transport-filter.pl
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/exim.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/exim
-%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/exim
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/exim
%attr(754,root,root) /etc/rc.d/init.d/exim
%attr(4755,root,root) %{_bindir}/exim
%attr(770,root,exim) %dir %{_var}/spool/exim