]> git.pld-linux.org Git - packages/exim.git/blobdiff - exim.spec
- handle all databases at one time
[packages/exim.git] / exim.spec
index 2a77d51d13d119a9cc31384f3efd88145a56978d..502eea9f30569b21f1e6d1ac4b0f34c008e5431b 100644 (file)
--- a/exim.spec
+++ b/exim.spec
@@ -14,15 +14,15 @@ Summary:    University of Cambridge Mail Transfer Agent
 Summary(pl):   Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR):        Servidor de correio eletrĂ´nico exim
 Name:          exim
-Version:       4.60
-Release:       4
+Version:       4.63
+Release:       1
 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: eed3c8fc393cf7ccc9c1079b28516128
+# Source0-md5: dde2d5f7106d51607409af94174db46c
 Source1:       ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{name}-texinfo-%{version}.tar.bz2
-# Source1-md5: ba88e4814472be8de8deed36ec80877a
+# Source1-md5: 1e14e90a4ecd8aadc4e6748e1726d6d5
 Source2:       %{name}.init
 Source3:       %{name}.cron.db
 Source4:       %{name}4.conf
@@ -43,13 +43,16 @@ Source15:   %{name}4-smtp.pamd
 Source16:      %{name}on.png
 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
 Patch6:                %{name}-noloadbalance.patch
+# http://sourceforge.net/projects/eximdsn/
+Patch7:                %{name}_462_dsn_1_2.patch
+Patch8:                %{name}-spam-timeout.patch
 URL:           http://www.exim.org/
-BuildRequires: XFree86-devel
 %{?with_sasl:BuildRequires:    cyrus-sasl-devel >= 2.1.0}
 BuildRequires: db-devel
 %{?with_dkeys:BuildRequires:   libdomainkeys-devel >= 0.68}
@@ -63,10 +66,11 @@ BuildRequires:      pcre-devel
 BuildRequires: perl-devel >= 1:5.6.0
 %{?with_pgsql:BuildRequires:   postgresql-devel}
 BuildRequires: readline-devel
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
 %{?with_sqlite:BuildRequires:  sqlite3-devel}
 BuildRequires: texinfo >= 4.7
 %{?with_whoson:BuildRequires:  whoson-devel}
+BuildRequires: xorg-lib-libX11-devel
 Requires(post):        /bin/hostname
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
@@ -160,10 +164,13 @@ Pliki nag
 %setup -q -a1 -a7
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 install %{SOURCE13} doc/FAQ.txt.bz2
 install %{SOURCE14} doc/config.samples.tar.bz2
@@ -176,7 +183,7 @@ cp -f exim_monitor/EDITME Local/eximon.conf
 %{__make} -j1 \
        %{?debug:FULLECHO=''} \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags} %{?with_spf:-DEXPERIMENTAL_SPF=yes} %{?with_srs:-DEXPERIMENTAL_SRS=yes} %{?with_dkeys:-DEXPERIMENTAL_DOMAINKEYS=yes}" \
+       CUSTOM_CFLAGS="%{rpmcflags} -DSUPPORT_DSN=yes %{?with_spf:-DEXPERIMENTAL_SPF=yes} %{?with_srs:-DEXPERIMENTAL_SRS=yes} %{?with_dkeys:-DEXPERIMENTAL_DOMAINKEYS=yes}" \
        LOOKUP_CDB=yes \
        XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \
        X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \
@@ -245,14 +252,7 @@ rm -rf $RPM_BUILD_ROOT
 %post
 umask 022
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/exim ]; then
-       /etc/rc.d/init.d/%{name} restart >&2
-else
-       %banner %{name} -e <<EOF
-Run \"/etc/rc.d/init.d/%{name} start\" to start exim daemon.
-EOF
-# vim:"
-fi
+%service %{name} restart "exim daemon"
 
 if [ ! -f /etc/mail/mailname ]; then
        rm -f /etc/mail/mailname && hostname -f > /etc/mail/mailname
@@ -262,9 +262,7 @@ newaliases
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/exim ]; then
-               /etc/rc.d/init.d/exim stop >&2
-       fi
+       %service exim stop
        /sbin/chkconfig --del %{name}
 fi
 
@@ -287,9 +285,9 @@ fi
 %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
 %dir %{_sysconfdir}/mail
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/exim.conf
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/exim
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/exim
+%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(754,root,root) /etc/rc.d/init.d/exim
 %attr(4755,root,root) %{_bindir}/exim
 %attr(770,root,exim) %dir %{_var}/spool/exim
This page took 0.049954 seconds and 4 git commands to generate.