%define orig_name exim
Summary: Lite version of exim Mail Transfer Agent
-Summary(pl): Lekka wersja Agenta Transferu Poczty
+Summary(pl.UTF-8): Lekka wersja Agenta Transferu Poczty
Name: exim-lite
-Version: 4.43
-Release: 0.1
+Version: 4.51
+Release: 3
Epoch: 2
License: GPL
Group: Networking/Daemons
Source0: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{orig_name}-%{version}.tar.bz2
-# Source0-md5: f8f646d4920660cb5579becd9265a3bf
-Source1: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{orig_name}-texinfo-4.40.tar.bz2
-# Source1-md5: cc91bd804ee0f7fd70991e2e6b529033
+# Source0-md5: 36c0c005e012d13beb7edfd8d124c049
+Source1: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{orig_name}-texinfo-4.50.tar.bz2
+# Source1-md5: a12993436e9943083e3ce5b76cf96b11
Source2: %{orig_name}.init
Source3: %{orig_name}.cron.db
Source4: %{orig_name}4.conf
Source11: %{orig_name}.logrotate
Source12: %{orig_name}.sysconfig
Source13: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/FAQ.txt.bz2
-# Source13-md5: 7c695675e5e60693916b787001252d56
+# Source13-md5: ff781bd31fb1d574c8b9d33f4bfd34a7
Source14: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/config.samples.tar.bz2
-# Source14-md5: 42c7d5c02d06fdd3d8b6ba124ad9fd05
+# Source14-md5: 4b93321938a800caa6127c48ad60a42b
Source15: %{orig_name}4-smtp.pamd
Source16: %{orig_name}on.png
Patch0: %{orig_name}4-EDITME.patch
BuildRequires: pcre-devel
BuildRequires: perl-devel >= 1:5.6.0
BuildRequires: readline-devel
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.202
BuildRequires: texinfo
-PreReq: rc-scripts
+Requires(post): /bin/hostname
+Requires(post): fileutils
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
-Requires(postun): /usr/sbin/groupdel
-Requires(postun): /usr/sbin/userdel
-Requires(post): fileutils
-Requires(post): /bin/hostname
-Requires(post,preun): /sbin/chkconfig
Requires: pam >= 0.77.3
+Requires: rc-scripts
+Provides: exim
Provides: group(exim)
Provides: smtpdaemon
Provides: user(exim)
-Provides: exim
+Conflicts: logrotate < 3.8.0
Obsoletes: courier
+Obsoletes: exim
Obsoletes: masqmail
Obsoletes: nullmailer
Obsoletes: omta
Obsoletes: smtpdaemon
Obsoletes: ssmtp
Obsoletes: zmailer
-Obsoletes: exim
-BuildRoot: %{tmpdir}/%{orig_name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Smail like Mail Transfer Agent with single configuration file.
relaying, supports virtual domains, built-in mail filtering and can be
configured to drop root privilleges when possible.
-%description -l pl
+%description -l pl.UTF-8
Agent transferu poczty (MTA) z pojedynczym plikiem konfiguracyjnym.
-Jego zalety: ¶wietne algorytmy, mo¿liwo¶æ przepisywania nag³ówków &
-koperty, wielokrotne dostarczanie poczty podczas jednego po³±czenia
-lub równoleg³e dostarczanie poczty, wyra¿enia regularne w parametrach
+Jego zalety: świetne algorytmy, możliwość przepisywania nagłówków &
+koperty, wielokrotne dostarczanie poczty podczas jednego połączenia
+lub równoległe dostarczanie poczty, wyrażenia regularne w parametrach
konfiguracyjnych, weryfikacja nadawcy i/lub odbiorcy, selektywne
-relayowanie, wsparcie dla wirtualnych domen, wbudowany system filtrów,
-mo¿liwo¶æ odrzucania praw roota kiedy jest to mo¿liwe.
+relayowanie, wsparcie dla wirtualnych domen, wbudowany system filtrów,
+możliwość odrzucania praw roota kiedy jest to możliwe.
%package X11
Summary: X11 based Exim administration tool
-Summary(pl): Narzêdzia administracyjne exima dla X11
-Summary(pt_BR): Monitor X11 para o exim
+Summary(pl.UTF-8): Narzędzia administracyjne exima dla X11
+Summary(pt_BR.UTF-8): Monitor X11 para o exim
Group: X11/Applications
%description X11
X11 based monitor & administration utility for the Exim Mail Transfer
Agent.
-%description X11 -l pl
-Bazuj±ce na X11 narzêdzia dla Exima - monitor i program
+%description X11 -l pl.UTF-8
+Bazujące na X11 narzędzia dla Exima - monitor i program
administracyjny.
%prep
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
LOOKUP_CDB=yes \
-XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \
-X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \
+ XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \
+ X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \
LOOKUP_LIBS="" \
LOOKUP_INCLUDE=""
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{%{_bindir},%{_sbindir},%{_mandir}/man8,/usr/lib}
-install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archiv,}/exim,mail}
-install -d $RPM_BUILD_ROOT{%{_infodir},%{_prefix}/X11R6/bin,%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archive,}/exim,mail}
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
install build-Linux-*/exim{,_fixdb,_tidydb,_dbmbuild,on.bin,_dumpdb,_lock} \
build-Linux-*/exi{cyclog,next,what} %{SOURCE10} \
build-Linux-*/{exigrep,eximstats,exiqsumm,convert4r4} \
util/unknownuser.sh \
$RPM_BUILD_ROOT%{_bindir}
-install build-Linux-*/eximon.bin $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
-install build-Linux-*/eximon $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
+install build-Linux-*/eximon.bin $RPM_BUILD_ROOT%{_bindir}
+install build-Linux-*/eximon $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE5} .
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.weekly/
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.weekly
install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/%{orig_name}
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{orig_name}
install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{orig_name}
install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mail/exim.conf
-install {doc,man}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+install {doc,man}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases
-install *.info* $RPM_BUILD_ROOT%{_infodir}/
+install *.info* $RPM_BUILD_ROOT%{_infodir}
install %{SOURCE15} $RPM_BUILD_ROOT/etc/pam.d/smtp
ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/sendmail
rm -rf $RPM_BUILD_ROOT
%pre
-if [ -n "`/usr/bin/getgid exim`" ]; then
- if [ "`/usr/bin/getgid exim`" != 79 ]; then
- echo "Warning: group exim haven't gid=79. Correct this before installing exim" 1>&2
- exit 1
- fi
-else
- /usr/sbin/groupadd -g 79 exim 1>&2
-fi
-
-if [ -n "`/bin/id -u exim 2>/dev/null`" ]; then
- if [ "`/bin/id -u exim`" != 79 ]; then
- echo "Warning: user exim doesn't have uid=79. Correct this before installing exim" 1>&2
- exit 1
- fi
-else
- /usr/sbin/useradd -u 79 -d /var/spool/exim -s /bin/false \
- -c "Exim pseudo user" -g exim exim 1>&2
-fi
+%groupadd -g 79 exim
+%useradd -u 79 -d /var/spool/exim -s /bin/false -c "Exim pseudo user" -g exim exim
%post
umask 022
%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%{?with_exiscan:,exiscan-*.txt}} build-Linux-*/transport-filter.pl
%dir %{_sysconfdir}/mail
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/exim.conf
-%{?with_saexim:%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/sa-exim.conf}
-%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/aliases
-%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/exim
-%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/exim
+%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(754,root,root) /etc/rc.d/init.d/exim
%attr(4755,root,root) %{_bindir}/exim
%attr(770,root,exim) %dir %{_var}/spool/exim
%attr(755,root,root) /usr/lib/sendmail
%attr(754,root,root) /etc/cron.weekly/exim.cron.db
%attr(750,exim,root) %dir %{_var}/log/exim
-%attr(750,exim,root) %dir %{_var}/log/archiv/exim
+%attr(750,exim,root) %dir %{_var}/log/archive/exim
%attr(640,exim,root) %ghost %{_var}/log/exim/*
-%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/smtp
-%{_infodir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
+%{_infodir}/*.info*
%{_mandir}/man8/*
%files X11
%defattr(644,root,root,755)
-%attr(755,root,root) %{_prefix}/X11R6/bin/*
-%{_desktopdir}/%{orig_name}on.desktop
-%{_pixmapsdir}/%{orig_name}on.png
+%attr(755,root,root) %{_bindir}/eximon
+%attr(755,root,root) %{_bindir}/eximon.bin
+%{_desktopdir}/eximon.desktop
+%{_pixmapsdir}/eximon.png