[Exim] exim-4.22 Redhat SRPM PATCH

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Neal D. Becker
Fecha:  
A: exim-users
Asunto: [Exim] exim-4.22 Redhat SRPM PATCH
--
Content-Description: signed data

This is a patch that enhances the exim-4.22 Redhat SRPM adding support for
alternatives, (which allows coexistence with postfix and sendmail). The
changes are very simple, could we please include this patch?


--- exim.spec    2003-08-18 10:47:34.000000000 -0400
+++ exim.spec.SAVE    2003-08-25 09:09:36.000000000 -0400
@@ -2,7 +2,7 @@
 %define docversion 4.20
 %define exiscanrev 10
 %define saversion cvs-20030813
-%define releasenum 1
+%define releasenum 2


# Deduce the major release of Red Hat we are building on
%define redhatmajorver %(rpm -q --queryformat='%{VERSION}' redhat-release|cut
-d. -f1)
@@ -86,8 +86,8 @@
##Requires: bash >= 2.0
Requires: rpm >= 3.0.5
Requires: exim-mta
-Conflicts: sendmail, postfix, qmail
-Obsoletes: sendmail, postfix, qmail
+#Conflicts: sendmail, postfix, qmail
+#Obsoletes: sendmail, postfix, qmail
Source: ftp://ftp.exim.org/pub/exim/exim3/exim-%{version}.tar.bz2
Source1: aliases
Source2: exim.init
@@ -332,19 +332,19 @@
install -m 0644 %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/exim

pushd $RPM_BUILD_ROOT/usr/lib/
-ln -sf ../sbin/exim sendmail
+ln -sf ../sbin/exim sendmail.exim
popd

pushd $RPM_BUILD_ROOT/usr/sbin/
-ln -sf exim sendmail
+ln -sf exim sendmail.exim
popd

pushd $RPM_BUILD_ROOT/usr/bin/
-ln -sf ../sbin/exim mailq
+ln -sf ../sbin/exim mailq.exim
ln -sf ../sbin/exim runq
ln -sf ../sbin/exim rsmtp
ln -sf ../sbin/exim rmail
-ln -sf ../sbin/exim newaliases
+ln -sf ../sbin/exim newaliases.exim
popd

install -d -m 0750 $RPM_BUILD_ROOT/var/spool/exim
@@ -384,6 +384,12 @@

 %post
 /sbin/chkconfig --add exim
+
+/usr/sbin/alternatives --install /usr/sbin/sendmail mta
/usr/sbin/sendmail.exim 10 \
+        --slave /usr/bin/mailq mta-mailq /usr/bin/mailq.exim \
+        --slave /usr/bin/newaliases mta-newaliases /usr/bin/newaliases.exim \
+        --slave /usr/share/man/man1/mailq.1.gz mta-mailqman
/usr/share/man/man1/mailq.exim.1.gz \
+    --initscript exim
 #
 # scrub any hints files - db files change format between builds
 # so killing the hints can save an MTA crash later
@@ -454,13 +460,13 @@
 /usr/sbin/exim_lock
 /usr/sbin/convert4r?
 #/usr/sbin/eximconfig
-/usr/lib/sendmail
-/usr/sbin/sendmail
-/usr/bin/mailq
+/usr/lib/sendmail.exim
+/usr/sbin/sendmail.exim
+/usr/bin/mailq.exim
 /usr/bin/runq
 /usr/bin/rsmtp
 /usr/bin/rmail
-/usr/bin/newaliases
+/usr/bin/newaliases.exim
 %{_mandir}/*/*


%defattr(-,exim,exim)
--
Content-Description: signature

[ Content of type application/pgp-signature deleted ]
--