[exim-conf] Re: SPEC files for exim exim-conf libspf2

Nikolai V. Ivanyushin nvi на sven.ru
Сб Ноя 6 21:16:08 EET 2004


Как говорится, между первой и второй перерывчик небольшой. 

Nikolai V. Ivanyushin writes: 

> Сюрприз, сюрприз.  
> 
> Nikolai V. Ivanyushin writes:  
> 
>> Очередная партия.
>> The 7-th of November Edition, пиндосы плачут от зависти.   
>> 
>> -- 
>> SY
>> Nikolai  
>> 
>> _______________________________________________
>> exim-conf mailing list
>> exim-conf на mta.org.ua
>> http://www.mta.org.ua/mailman/listinfo/exim-conf
>  
> 
> 
> -- 
> SY
> Nikolai  
> 
 


-- 
SY
Nikolai 

----------- следущая часть -----------
%define ver 		20041106
%define rel 		1.nvi
%define name 		exim-conf
%define eximcf 		/etc/exim
%define distserver 	http://bsd.falbi.kiev.ua/exim-conf/m4
%define with_do_recode 	1
%if %{with_do_recode}
%define 		locale ru_RU.UTF-8}
%endif

Summary: 	The files needed to reconfigure Exim.
Name: 		%{name}
Version: 	%{ver}
Release:	%{rel}
URL:		http://bsd.falbi.kiev.ua
Group: 		System Environment/Daemons
License: 	GPL
BuildRoot: 	%{_tmppath}/%{name}-root
BuildPrereq: 	wget rsync sed
%if  %{with_do_recode}
BuildPrereq: 	recode
%endif
Requires: 	m4 rsync
Vendor:		Victor Ustugov <victor на corvax.kiev.ua>
Packager:	Nikolai V. Ivanyushin <nvi на pisem.net>
BuildArch:	noarch
Epoch: 		99999

%description
This package includes the configuration files you need to generate the
exim.conf file distributed with the exim package. You will need
the %{name} package if you ever need to reconfigure and rebuild
your exim.conf file.

%prep
%__rm -rf %{name}
%__mkdir %{name}
cd %{name}
%__mkdir m4 && cd m4
wget %{distserver}/Makefile

%build
cd %{name}/m4
%__make sync && %__make sync pre-install

%install
[ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT
cd %{name}
%__mkdir -p $RPM_BUILD_ROOT%{eximcf}
%__cp -R ./* $RPM_BUILD_ROOT%{eximcf}
# Fix perl path
for i in $RPM_BUILD_ROOT%{eximcf}/perl/*.pl; do
    %{__sed} 's:^#!/usr/local/bin/perl:#!/usr/bin/perl:' <$i >$i.tmp
    %{__mv} $i.tmp $i
    %{__chmod} +x $i
done
# Change charset
%if  %{with_do_recode}
for i in `find $RPM_BUILD_ROOT%{eximcf} -type f`; do
	    LANG=%{locale} recode -f KOI8-R -t  $i
	    if echo $i|grep antivir_notification.txt; then
	        %{__sed} 's:charset=koi8-r:charset=utf-8:' <$i >$i.tmp
		%{__mv} $i.tmp $i
	    fi 
done
%endif

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT
%__rm -rf $RPM_BUILD_DIR/%{name}

%files
%defattr(-,root,root)
%{eximcf}/acls
%{eximcf}/bin
%{eximcf}/deliveries
%{eximcf}/features
%{eximcf}/hacks
%{eximcf}/m4
%{eximcf}/patches
%{eximcf}/periodic
%{eximcf}/perl
%{eximcf}/samples
%config(missingok,noreplace) %{eximcf}/site/*
%{eximcf}/system_filters



%changelog
* Sat Nov 6 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- some cosmetic changes

* Fri Nov 5 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- %{eximcf}/site/* added to %%config files
- added Epoch: 99999
 
* Wed Nov 3 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- files converted from koi8-r to %{locale} 
- added define do_recode
- recode added to BuildPrereq if defined do_recode

* Tue Nov 2 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- roll back to /etc/exim inspired by Victor Ustugov
- changed name back to exim-conf thanx again Victor
- added Vendor tag, cheers Victor ;-)

* Mon Nov 1 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- spec file changed to be in style of sendmail-cf rpm package
- changed name to exim-cf
- removed doc files
- moved to /usr/share/exim-cf
- added dependencies 
- fixed perl paths

* Sun Oct 31 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- first build
----------- следущая часть -----------
%define ver 	4.43
%define rel 	1.nvi

# Conditional build (--with/--without option)
# --without readline
# --without ipv6
# --without nis
# --without nisplus
# --with mysql
# --with nonlocal_clamd
# --with spf2
# --without exim_mon

##   package options
%define	exim_user		exim
%define	exim_group		mail
%define	exiscan_acl_version	28

%define without_readline 	0
%define without_ipv6 		1
%define without_nis 		1
%define without_nisplus 	1
%define with_mysql 		0
%define with_nonlocal_clamd 	1
%define with_spf2 		1
%define without_exim_mon 	1

Summary: 	The exim mail transfer agent
Name:		exim
Version: 	%{ver}
Release: 	%{rel}
License: 	GPL
Url: 		http://www.exim.org/
Group: 		System Environment/Daemons
Buildroot: 	%{_tmppath}/%{name}-build.root
Provides: 	MTA smtpd smtpdaemon /usr/bin/newaliases
Provides: 	/usr/sbin/sendmail /usr/bin/mailq /usr/bin/rmail
PreReq: 	/sbin/chkconfig
PreReq: 	/sbin/service
PreReq: 	%{_sbindir}/alternatives
PreReq: 	%{_sbindir}/groupadd, %{_sbindir}/useradd
%if %{with_mysql}
BuildRequires:	mysql-devel
%endif
%if %{with_spf2}
BuildRequires:	libspf2
%endif
Source: 	ftp://ftp.exim.org/pub/exim/exim4/exim-%{version}.tar.bz2
Source2: 	exim.init
Source3: 	exim.sysconfig
Source4: 	exim.logrotate
Source6: 	ftp://ftp.exim.org/pub/exim/exim4/FAQ-html-20040812.tar.bz2
Source7: 	ftp://ftp.exim.org/pub/exim/exim4/exim-html-4.40.tar.bz2
Source8: 	ftp://ftp.exim.org/pub/exim/exim4/exim-postscript-4.40.tar.bz2
Source9: 	ftp://ftp.exim.org/pub/exim/exim4/exim-pdf-4.40.tar.bz2
Source10: 	ftp://ftp.exim.org/pub/exim/exim4/exim-texinfo-4.40.tar.bz2
Source11: 	exim.pam
Source12: 	http://www.exim.org/pub/exim/exim4/config.samples-20040812.tar.bz2
Source13: 	http://marc.merlins.org/linux/exim/files/sa-exim-4.1.tar.gz
Patch4: 	exim-rhl.patch
Patch6: 	exim-4.43-config.patch
Patch7: 	exim-4.24-no_libc5.patch
Patch8: 	exim-4.24-libdir.patch
Patch10: 	http://duncanthrax.net/exiscan-acl/exiscan-acl-%{version}-%{exiscan_acl_version}.patch
Patch12: 	exim-4.33-cyrus.patch

Patch89: 	http://bsd.falbi.kiev.ua/exim-patches/exiscan-acl-4.42-27-malware-drwebd/patch-src::malware-drwebd-read-error.patch
Patch90: 	http://bsd.falbi.kiev.ua/exim-patches/exiscan-acl-4.42-27-malware-drwebd/patch-src::malware-drwebd.patch
%if %{with_nonlocal_clamd}
Patch91: 	http://bsd.falbi.kiev.ua/exim-patches/exiscan-acl-4.42-27-malware-clamd/patch-src::malware-clamd.patch
%endif
Patch98: 	http://bsd.falbi.kiev.ua/exim-patches/exiscan-acl-4.43-28-fakereject/patch-src::reject_message
Patch99: 	http://bsd.falbi.kiev.ua/exim-patches/exiscan-acl-4.34-21-SA-X-Envelope/patch-src::x-envelope-SA.patch

Requires: 	/etc/aliases
BuildRequires:	db4-devel openssl-devel openldap-devel pam-devel
%if ! %{without_exim_mon}
BuildRequires:	XFree86-devel
%endif
BuildRequires:	lynx
BuildRequires:	cyrus-sasl-devel openldap-devel openssl-devel
PreReq: 	cyrus-sasl openldap openssl
Epoch: 		99999

%description
Exim is a mail transport agent (MTA) developed at the University of
Cambridge for use on Unix systems connected to the Internet. In style
it is similar to Smail 3, but its facilities are more extensive, and
in particular it has options for verifying incoming sender and
recipient addresses, for refusing mail from specified hosts, networks,
or senders, and for controlling mail relaying. Exim is in production
use at quite a few sites, some of which move hundreds of thousands of
messages per day.

Exiscan is compiled in to allow inbuilt scanning capability. See
	http://duncanthrax.net/exiscan-acl/


%if ! %{without_exim_mon}
%package mon
Summary: X11 monitor application for exim
Group: Applications/System
Copyright: Free

%description mon
The Exim Monitor is an optional supplement to the Exim package. It
displays information about Exim's processing in an X window, and an
administrator can perform a number of control actions from the window
interface.
%endif

%package doc
Summary: Exim documentation
Group: Documentation

%description doc
This package includes the Exim FAQ and Exim manual in HTML,
PostScript and PDF formats.

%package sa
Summary: Exim SpamAssassin at SMTP time - d/l plugin
Group: System Environment/Daemons
Requires: exim

%description sa
Allows running of SA on incoming mail and rejection at SMTP time as
well as other nasty things like teergrubing.

%prep
%setup -q
%setup -q -T -D -a 6
mv FAQ-html faq
%setup -q -T -D -a 7
mkdir html
mv exim-html-*/doc/html html/doc
%setup -q -T -D -a 8
mv exim-postscript-*/ ps
%setup -q -T -D -a 9
mv exim-pdf-*/ pdf
%setup -q -T -D -a 10
mv exim-texinfo-*/ texinfo
%setup -q -T -D -a 12
%setup -q -T -D -a 13
# patch sa
cat sa-exim*/localscan_dlopen_exim_4.20_or_better.patch | patch -p1 
cp src/EDITME Local/Makefile
%if ! %{without_exim_mon}
cp exim_monitor/EDITME Local/eximon.conf
%endif

%patch4 -p1 -b .rhl
%patch6 -p1 -b .config
%patch7 -p1 -b .no_libc5
%patch8 -p1 -b .libdir
%patch10 -p1
%patch12 -p1 -b .cyrus

%if %{without_exim_mon}
perl -pi -e 's/^(EXIM_MONITOR=.*)$/#$1/' Local/Makefile
%endif

%patch89 -p0 -b .drwebd
%patch90 -p0 -b .drwebd
%if %{with_nonlocal_clamd}
%patch91 -p0 -b .clamd
%endif
%patch98 -p0 -b .orig
%patch99 -p0 -b .orig

# readline support
%if %{without_readline}
perl -pi -e 's/^# USE_READLINE=.*$/USE_READLINE=yes/' Local/Makefile
%endif
# IPv6 support
%if %{without_ipv6}
perl -pi -e 's/^HAVE_IPV6=.+$/# HAVE_IPV6=/' Local/Makefile
%endif
# NIS support
%if %{without_nis}
perl -pi -e 's/^LOOKUP_NIS=.+$/# LOOKUP_NIS=/' Local/Makefile
%endif
# NIS+ support
%if %{without_nisplus}
perl -pi -e 's/^LOOKUP_NISPLUS=.+$/# LOOKUP_NISPLUS=/' Local/Makefile
%endif
# default values for LOOKUP_INCLUDE and LOOKUP_LIBS
perl -pi -e 's/^(#\s+LOOKUP_INCLUDE=.+)$/$1\nLOOKUP_INCLUDE=-I \/usr\/include/' Local/Makefile
#perl -pi -e 's/^(#\s+LOOKUP_LIBS=.+)$/$1\nLOOKUP_LIBS=-L\/usr\/lib -lldap/' Local/Makefile
# MySQL support
%if %{with_mysql}
perl -pi -e 's/^#\s+LOOKUP_MYSQL=.+$/LOOKUP_MYSQL=yes/' Local/Makefile
perl -pi -e 's/^(LOOKUP_INCLUDE=.*)$/$1 -I \/usr\/include\/mysql/' Local/Makefile
perl -pi -e 's/^(LOOKUP_LIBS=.*)$/$1 -L\/usr\/lib\/mysql -lmysqlclient/' Local/Makefile
%endif
%if %{with_spf2}
%define		CFLAGS_SPF	-DSPF 
%define		LFLAGS_SPF	-lspf2
%else
%define		CFLAGS_SPF	""
%define		LFLAGS_SPF	""
%endif
# Exim user and group
perl -pi -e 's/^(EXIM_USER=).+$/EXIM_USER=ref:%{exim_user}/' Local/Makefile
perl -pi -e 's/^(EXIM_GROUP=).+$/EXIM_GROUP=%{exim_group}/' Local/Makefile
#perl -pi -e "s/^(EXIM_GROUP=).+$/EXIM_GROUP=`grep ^%{exim_group}: /etc/group | awk -F: '{print \$3}'`/" Local/Makefile


%build
%ifnarch s390 s390x
#    make CFLAGS="$RPM_OPT_FLAGS -fpie" LFLAGS=-pie _lib=%{_lib}
    make CFLAGS="$RPM_OPT_FLAGS %{CFLAGS_SPF}" LFLAGS="-pie %{LFLAGS_SPF}" _lib=%{_lib}
%else
#    make CFLAGS="$RPM_OPT_FLAGS -fPIE" LFLAGS=-pie _lib=%{_lib}
    make CFLAGS="$RPM_OPT_FLAGS %{CFLAGS_SPF}" LFLAGS="-pie %{LFLAGS_SPF}" _lib=%{_lib}
%endif

# build sa-exim
cd sa-exim*
perl -pi -e 's|\@lynx|HOME=/ /usr/bin/lynx|g;' Makefile
make SACONF=%{_sysconfdir}/exim/sa-exim.conf CFLAGS="$RPM_OPT_FLAGS -fPIC"


%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/exim

cd build-`scripts/os-type`-`scripts/arch-type`
install -m 4775 exim $RPM_BUILD_ROOT%{_sbindir}

for i in \
%if ! %{without_exim_mon}
	eximon eximon.bin \
%endif
	exim_dumpdb exim_fixdb exim_tidydb \
	exinext exiwhat exim_dbmbuild exicyclog exim_lock \
	exigrep eximstats exipick exiqgrep exiqsumm \
	exim_checkaccess convert4r4
do
    install -m 0775 $i $RPM_BUILD_ROOT%{_sbindir}
done

cd ..

install -m 0644 src/configure.default $RPM_BUILD_ROOT%{_sysconfdir}/exim/exim.conf
install -m 0644 $RPM_SOURCE_DIR/exim.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/exim

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

pushd $RPM_BUILD_ROOT%{_sbindir}/
ln -sf exim sendmail.exim
popd

pushd $RPM_BUILD_ROOT%{_bindir}/
ln -sf ../sbin/exim mailq.exim
ln -sf ../sbin/exim runq.exim
ln -sf ../sbin/exim rsmtp.exim
ln -sf ../sbin/exim rmail.exim
ln -sf ../sbin/exim newaliases.exim
popd

install -d -m 0750 $RPM_BUILD_ROOT%{_var}/spool/exim
install -d -m 0750 $RPM_BUILD_ROOT%{_var}/spool/exim/db
install -d -m 0750 $RPM_BUILD_ROOT%{_var}/spool/exim/input
install -d -m 0750 $RPM_BUILD_ROOT%{_var}/spool/exim/msglog
install -d -m 0750 $RPM_BUILD_ROOT%{_var}/log/exim

mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -m644 doc/exim.8 $RPM_BUILD_ROOT%{_mandir}/man8/exim.8
pod2man --center=EXIM --section=8 \
       $RPM_BUILD_ROOT/usr/sbin/eximstats \
       $RPM_BUILD_ROOT%{_mandir}/man8/eximstats.8

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
install -m 644 $RPM_SOURCE_DIR/exim.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/exim
perl -pi -e 's/^(QUEUE=).+$/${1}15m/' $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/exim

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
install $RPM_SOURCE_DIR/exim.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/exim
perl -pi -e 's/^(\s*if\s*\[\s")exim(".+?\/var\/log\/exim.+)$/${1}%{exim_group}${2}/' $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/exim
perl -pi -e 's/^(.*chown -R )exim(:|\.)exim(.+)$/${1}%{exim_user}${2}%{exim_group}${3}/' $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/exim

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
install -m 0644 $RPM_SOURCE_DIR/exim.logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/exim

# install sa
cd sa-exim*
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/exim
install *.so  $RPM_BUILD_ROOT%{_libexecdir}/exim
install -m 644 *.conf $RPM_BUILD_ROOT%{_sysconfdir}/exim
ln -s sa-exim*.so $RPM_BUILD_ROOT%{_libexecdir}/exim/sa-exim.so


%clean
[ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT
%__rm -rf $RPM_BUILD_DIR/%{name}-%{version}


%pre
%{_sbindir}/useradd -d %{_var}/spool/exim -s /sbin/nologin -G mail -M -r -u 93 exim 2>/dev/null
exit 0

%post
chown -R %{exim_user}.%{exim_group} %{_var}/spool/exim
chown -R %{exim_user}.%{exim_group} %{_var}/log/exim
chmod 755 %{_var}/log/exim
/sbin/chkconfig --add exim

%{_sbindir}/alternatives --install %{_sbindir}/sendmail mta %{_sbindir}/sendmail.exim 10 \
	--slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.exim \
	--slave %{_bindir}/runq mta-runq %{_bindir}/runq.exim \
	--slave %{_bindir}/rsmtp mta-rsmtp %{_bindir}/rsmtp.exim \
	--slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.exim \
	--slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.exim \
	--slave /usr/lib/sendmail mta-sendmail /usr/lib/sendmail.exim \
	--slave %{_mandir}/man1/mailq.1.gz mta-mailqman %{_mandir}/man8/exim.8.gz \
	--initscript exim


%preun
if [ $1 = 0 ]; then
	/sbin/service exim stop > /dev/null 2>&1
	/sbin/chkconfig --del exim
	%{_sbindir}/alternatives --remove mta %{_sbindir}/sendmail.exim
fi

%postun
if [ "$1" -ge "1" ]; then
	/sbin/service exim  condrestart > /dev/null 2>&1
        mta=`readlink /etc/alternatives/mta`
        if [ "$mta" == "%{_sbindir}/sendmail.exim" ]; then
                /usr/sbin/alternatives --set mta %{_sbindir}/sendmail.exim
        fi
fi

%files
%defattr(-,root,root)
%attr(4755,root,root) %{_sbindir}/exim
%{_sbindir}/exim_dumpdb
%{_sbindir}/exim_fixdb
%{_sbindir}/exim_tidydb
%{_sbindir}/exinext
%{_sbindir}/exiwhat
%{_sbindir}/exim_dbmbuild
%{_sbindir}/exicyclog
%{_sbindir}/exigrep
%{_sbindir}/eximstats
%{_sbindir}/exipick
%{_sbindir}/exiqgrep
%{_sbindir}/exiqsumm
%{_sbindir}/exim_lock
%{_sbindir}/exim_checkaccess
%{_sbindir}/convert4r4
%{_sbindir}/sendmail.exim
%{_bindir}/mailq.exim
%{_bindir}/runq.exim
%{_bindir}/rsmtp.exim
%{_bindir}/rmail.exim
%{_bindir}/newaliases.exim
/usr/lib/sendmail.exim
%{_mandir}/*/*

%defattr(-,exim,exim)
%dir %{_var}/spool/exim
%dir %{_var}/spool/exim/db
%dir %{_var}/spool/exim/input
%dir %{_var}/spool/exim/msglog
%dir %{_var}/log/exim

%defattr(-,root,mail)
%config(noreplace) %{_sysconfdir}/exim/exim.conf

%defattr(-,root,root)
%config %{_sysconfdir}/sysconfig/exim
%config %{_sysconfdir}/rc.d/init.d/exim
%config %{_sysconfdir}/logrotate.d/exim
%config %{_sysconfdir}/pam.d/exim

%doc ACKNOWLEDGMENTS LICENCE NOTICE README.UPDATING README 
%doc doc util/unknownuser.sh

%if ! %{without_exim_mon}
%files mon
%defattr(-,root,root)
%{_sbindir}/eximon
%{_sbindir}/eximon.bin
%endif

%files doc
%defattr(-,root,root)
%doc faq html ps pdf texinfo config.samples

%files sa
%defattr(-,root,root)
%{_libexecdir}/exim
%config(noreplace) %{_sysconfdir}/exim/sa-*.conf
%doc sa-exim*/*.html
%doc sa-exim*/{ACKNOWLEDGEMENTS,INSTALL,LICENSE,TODO}

%changelog
* Sat Nov 6 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- some cosmetic changes

* Fri Nov 5 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- first build for nvi
- added default values for conditional build
- added BuilReq for libspf2
- added Epoch: 99999

* Thu Oct  7 2004 Thomas Woerner <twoerner на redhat.com> 4.43-1
- new version 4.43 with sasl support
- new exiscan-acl-4.43-28
- new config.samples and FAQ-html (added publication date)
- new BuildRequires for cyrus-sasl-devel openldap-devel openssl-devel
  and PreReq for cyrus-sasl openldap openssl

* Mon Sep 13 2004 Thomas Woerner <twoerner на redhat.com> 4.42-2
- update to sa-exim-4.1: fixes spamassassin's new score= string (#131796)

* Fri Aug 27 2004 Thomas Woerner <twoerner на redhat.com> 4.42-1
- new version 4.42

* Mon Aug  2 2004 Thomas Woerner <twoerner на redhat.com> 4.41-1
- new version 4.41

* Fri Jul  2 2004 Thomas Woerner <twoerner на redhat.com> 4.34-3
- added pre-definition of local_delivery using Cyrus-IMAP (#122912)
- added BuildRequires for pam-devel (#124555)
- fixed format string bugs (#125117)
- fixed sa-exim code placed wrong in spec file (#127102)
- extended postun with alternatives call

* Tue Jun 15 2004 Elliot Lee <sopwith на redhat.com>
- rebuilt

* Wed May 12 2004 David Woodhouse <dwmw2 на redhat.com> 4.34-1
- Update to Exim 4.34, exiscan-acl 4.34-21

* Sat May 8 2004 David Woodhouse <dwmw2 на redhat.com> 4.33-2
- fix buffer overflow in header_syntax check

* Wed May 5 2004 David Woodhouse <dwmw2 на redhat.com> 4.33-1
- Update to Exim 4.33, exiscan-acl 4.33-20 to
  fix crashes both in exiscan-acl and Exim itself.

* Fri Apr 30 2004 David Woodhouse <dwmw2 на redhat.com> 4.32-2
- Enable IPv6 support, Cyrus saslauthd support, iconv.

* Thu Apr 15 2004 David Woodhouse <dwmw2 на redhat.com> 4.32-1
- update to Exim 4.32, exiscan-acl 4.32-17, sa-exim 4.0
- Fix Provides: and Source urls.
- include exiqgrep, exim_checkaccess, exipick
- require /etc/aliases instead of setup

* Tue Feb 24 2004 Thomas Woerner <twoerner на redhat.com> 4.30-6.1
- rebuilt

* Mon Feb 23 2004 Tim Waugh <twaugh на redhat.com>
- Use ':' instead of '.' as separator for chown.

* Fri Feb 13 2004 Elliot Lee <sopwith на redhat.com>
- rebuilt

* Tue Jan 27 2004 Thomas Woerner <twoerner на redhat.com> 4.30-5
- /usr/lib/sendmail is in alternatives, now
- /etc/alises is now in setup: new Requires for setup >= 2.5.31-1

* Tue Jan 13 2004 Thomas Woerner <twoerner на redhat.com> 4.30-4
- fixed group test in init script
- fixed config patch: use /etc/exim/exim.conf instead of /usr/exim/exim4.conf

* Wed Dec 10 2003 Nigel Metheringham <Nigel.Metheringham на InTechnology.co.uk> - 4.30-3
- Use exim.8 manpage from upstream
- Add eximstats.8 man page (from pod)
- Fixed mailq(1) man page alternatives links

* Mon Dec 08 2003 Florian La Roche <Florian.LaRoche на redhat.de>
- do not package /etc/aliases. We currently require sendmail rpm until
  /etc/aliases moves into a more suitable rpm like "setup" or something else.

* Thu Dec  4 2003 Thomas Woerner <twoerner на redhat.com> 4.30-1
- new version 4.30
- new exiscan-acl-4.30-14
- disabled pie for s390 and s390x

* Wed Dec  3 2003 Tim Waugh <twaugh на redhat.com>
- Fixed PIE support to make it actually work.

* Wed Dec  3 2003 Thomas Woerner <twoerner на redhat.com> 4.24-1.2
- added -fPIE to CFLAGS

* Sat Nov 15 2003 Thomas Woerner <twoerner на redhat.com> 4.24-1.1
- fixed useradd in pre
- fixed alternatives in post

* Thu Nov 13 2003 Thomas Woerner <twoerner на redhat.com> 4.24-1
- new version 4.24 with LDAP and perl support
- added SpamAssassin sa plugin

* Mon Sep 23 2002 Bernhard Rosenkraenzer <bero на redhat.com> 3.36-1
- 3.36, fixes security bugs

* Thu Jun 21 2001 Tim Waugh <twaugh на redhat.com> 3.22-14
- Bump release number.

* Tue Jun 12 2001 Tim Waugh <twaugh на redhat.com> 3.22-13
- Remove pam-devel build dependency in order to share package between
  Guinness and Seawolf.

* Fri Jun  8 2001 Tim Waugh <twaugh на redhat.com> 3.22-12
- Fix format string bug.

* Wed May  2 2001 Tim Waugh <twaugh на redhat.com> 3.22-11
- SIGALRM patch from maintainer (bug #20908).
- There's no README.IPV6 any more (bug #32378).
- Fix logrotate entry for exim's pidfile scheme (bug #35436).
- ignore_target_hosts crash fix from maintainer.
- Make the summary start with a capital letter.
- Add reload entry to initscript; use $0 in strings.

* Sun Mar  4 2001 Tim Waugh <twaugh на redhat.com> 3.22-10
- Make sure db ownership is correct on upgrade, since we don't run as
  root when running as a daemon any more.

* Fri Mar  2 2001 Tim Powers <timp на redhat.com>
- rebuilt against openssl-0.9.6-1

* Sat Feb 17 2001 Tim Waugh <twaugh на redhat.com>
- Run as user mail, group mail when we drop privileges (bug #28193).

* Tue Feb 13 2001 Tim Powers <timp на redhat.com>
- added conflict with postfix

* Thu Jan 25 2001 Tim Waugh <twaugh на redhat.com>
- Avoid using zero-length salt in crypteq expansion.

* Tue Jan 23 2001 Tim Waugh <twaugh на redhat.com>
- Redo initscript internationalisation.
- Initscript uses bash not sh.

* Mon Jan 22 2001 Tim Waugh <twaugh на redhat.com>
- Okay, the real bug was in libident.

* Mon Jan 22 2001 Tim Waugh <twaugh на redhat.com>
- Revert the RST patch for now; if it's needed, it's a pidentd bug
  and should be fixed there.

* Mon Jan 22 2001 Tim Waugh <twaugh на redhat.com>
- 3.22.
- Build requires XFree86-devel.

* Mon Jan 15 2001 Tim Waugh <twaugh на redhat.com>
- New-style prereqs.
- Initscript internationalisation.

* Thu Jan 11 2001 Tim Waugh <twaugh на redhat.com>
- Security patch no longer required; 3.20 and later have a hide feature
  to do the same thing.
- Mark exim.conf noreplace.
- Better libident (RST) patch.

* Wed Jan 10 2001 Tim Waugh <twaugh на redhat.com>
- Fix eximconfig so that it tells the user the correct place to look
  for documentation
- Fix configure.default to deliver mail as group mail so that local
  delivery works

* Tue Jan 09 2001 Tim Waugh <twaugh на redhat.com>
- 3.21

* Mon Jan 08 2001 Tim Waugh <twaugh на redhat.com>
- Enable TLS support (bug #23196)

* Mon Jan 08 2001 Tim Waugh <twaugh на redhat.com>
- 3.20 (bug #21895).  Absorbs configure.default patch
- Put URLs in source tags where applicable
- Add build requirement on pam-devel

* Wed Oct 18 2000 Bernhard Rosenkraenzer <bero на redhat.com>
- Fix up eximconfig's header generation (we're not Debian), Bug #18068
- BuildRequires db2-devel (Bug #18089)
- Fix typo in logrotate script (Bug #18308)
- Local delivery must be setuid to work (Bug #18314)
- Don't send TCP RST packages to ident (Bug #19048)

* Wed Oct 18 2000 Bernhard Rosenkraenzer <bero на redhat.com>
- 3.16
- fix security bug
- some specfile cleanups
- fix handling of RPM_OPT_FLAGS

* Fri Aug 18 2000 Tim Powers <timp на redhat.com>
- fixed bug #16535, logrotate script changes

* Thu Aug 17 2000 Tim Powers <timp на redhat.com>
- fixed bug #16460
- fixed bug #16458
- fixed bug #16476

* Wed Aug 2 2000 Tim Powers <timp на redhat.com>
- fixed bug #15142

* Fri Jul 28 2000 Than Ngo <than на redhat.de>
- add missing restart function in startup script
- add rm -rf $RPM_BUILD_ROOT in install section
- use %%{_tmppath}

* Fri Jul 28 2000 Tim Powers <timp на redhat.com>
- fixed initscript so that condrestart doesn't return 1 when the test fails

* Mon Jul 24 2000 Prospector <prospector на redhat.com>
- rebuilt

* Mon Jul 17 2000 Tim Powers <timp на redhat.com>
- inits bakc to rc.d/init.d, using service to start inits

* Thu Jul 13 2000 Tim Powers <timp на redhat.com>
- applied patch from bug #13890

* Mon Jul 10 2000 Tim Powers <timp на redhat.com>
- rebuilt

* Thu Jul 06 2000 Tim Powers <timp на redhat.com>
- added patch submitted by <Chris.Keane на comlab.ox.ac.uk>, fixes bug #13539

* Thu Jul 06 2000 Tim Powers <timp на redhat.com>
- fixed broken prereq to require /etc/init.d

* Tue Jun 27 2000 Tim Powers <timp на redhat.com>
- PreReq initscripts >= 5.20

* Mon Jun 26 2000 Tim Powers <timp на redhat.com>
- fix init.d script location
- add condrestart to init.d script

* Wed Jun 14 2000 Nalin Dahyabhai <nalin на redhat.com>
- migrate to system-auth setup

* Tue Jun 6 2000 Tim Powers <timp на redhat.com>
- fixed man page location

* Tue May 9 2000 Tim Powers <timp на redhat.com>
- rebuilt for 7.0

* Fri Feb 04 2000 Tim Powers <timp на redhat.com>
- fixed the groups to be in Red Hat groups.
- removed Vendor header since it is going to be marked Red Hat in our build
	system.
- quiet setups
- strip binaries
- fixed so that man pages can be auto gzipped by new RPM (in files list
	/usr/man/*/* )
- built for Powertools 6.2

* Tue Jan 18 2000 Mark Bergsma <mark на mbergsma.demon.nl>
- Upgraded to exim 3.13
- Removed i386 specialization
- Added syslog support

* Wed Dec 8 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Upgraded to exim 3.12
- Procmail no longer used as the delivery agent

* Wed Dec 1 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Upgraded to exim 3.11

* Sat Nov 27 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added /etc/pam.d/exim

* Wed Nov 24 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Upgraded to exim 3.10

* Thu Nov 11 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added eximconfig script, thanks to Mark Baker
- Exim now uses the Berkeley DB library.

* Fri Aug 4 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Upgraded to version 3.03
- Removed version number out of the spec file name.

* Fri Jul 23 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added embedded Perl support.
- Added tcp_wrappers support.
- Added extra documentation in a new doc subpackage.

* Mon Jul 12 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added /usr/sbin/sendmail as a link to exim.
- Fixed wrong filenames in logrotate entry. 

* Sun Jul 11 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Now using the '%changelog' tag.
- Removed the SysV init links - let chkconfig handle them. 
- Replaced install -d with mkdir -p

* Sat Jul 10 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Fixed owner of the exim-mon files - the owner is now root

* Thu Jul 08 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Removed executable permission bits of /etc/exim.conf
- Removed setuid permission bits of all programs except exim
- Changed spool/log directory owner/groups to 'mail'
- Changed the default configuration file to make exim run
      as user and group 'mail'.

* Thu Jul 08 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added the /usr/bin/rmail -> /usr/sbin/exim symlink.
- Added the convert4r3 script.
- Added the transport-filter.pl script to the documentation.

* Thu Jul 08 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added procmail transport and director, and made that the
      default.
- Added the unknownuser.sh script to the documentation.

* Thu Jul 08 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added manpage for exim.
- Fixed symlinks pointing to targets under Buildroot.
- The exim logfiles will now only be removed when uninstalling,
      not upgrading.

* Wed Jul 07 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- Added 'Obsoletes' header.
- Added several symlinks to /usr/sbin/exim.

* Wed Jul 07 1999 Mark Bergsma <mark на mbergsma.demon.nl>
- First RPM packet release.
- Not tested on other architectures/OS'es than i386/Linux..
----------- следущая часть -----------
%define ver 	1.0.4
%define rel 	1.nvi

# Use rpmbuild --without checks to disable running the test suite (enabled by default)
# This will be necessary for rpm-build < 4.1.1, which does not understand the %%check macro
%{!?_with_checks:   %{!?_without_checks: %define _with_checks --with-checks}}
%{?_with_checks:    %define enable_checks 1}
%{?_without_checks: %define enable_checks 0}

Name:		libspf2
Version:	%{ver}
Release:	%{rel}
Summary:	libspf2 is an implementation of the SPF specification
License:	Dual BSD/LGPL
Group:		System Environment/Libraries
Url:		http://www.libspf2.org/
Patch0:		libspf2-1.0.4-case-insensitive.patch
Patch1:		libspf2-resolv.patch
Patch2:		libspf2-resolv-binary.patch
Source:		http://www.libspf2.org/spf/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	glibc-devel, make
%if %{enable_checks}
# rpmbuild < 4.1.1 does not support %%check; see below
BuildRequires:	rpm-build >= 4.1.1, perl
%endif
Prereq:		/usr/sbin/alternatives
Provides:	spf
Epoch: 		99999

%description
libspf2 is an implementation of the SPF (Sender Policy Framework)
specification as found at:
http://www.ietf.org/internet-drafts/draft-mengwong-spf-00.txt
SPF allows email systems to check SPF DNS records and make sure that
an email is authorized by the administrator of the domain name that
it is coming from. This prevents email forgery, commonly used by
spammers, scammers, and email viruses/worms.

A lot of effort has been put into making it secure by design, and a
great deal of effort has been put into the regression tests.

%package devel
Summary:	Development tools needed to build programs that use libspf2
Group:		Development/Libraries
Requires:	%{name} >= %{version}-%{release}

%description devel
The libspf2-devel package contains the header files and static
libraries necessary for developing programs using the libspf2 (Sender
Policy Framework) library.
                                                                                                                           
If you want to develop programs that will look up and process SPF records,
you should install libspf2-devel. You also need to install the libspf2 package.

%package progs
Summary:	Programs for making SPF queries using libspf2
Group:		Applications/Internet
Requires:	%{name} >= %{version}-%{release}

%description progs
Programs for making SPF queries and checking their results using libspf2.

%prep
%setup -q
%patch0 -p0

# This huge patch saves us needing GNU autotools on build system
%patch2 -p1
/bin/touch configure

%build
# The configure script checks for the existence of __ns_get16 and uses the
# system-supplied version if found, otherwise one from src/libreplace.
# However, this function is marked GLIBC_PRIVATE in recent versions of glibc
# and shouldn't be called even if the configure script finds it. So we make
# sure that the configure script always uses the version in src/libreplace.
# This prevents us getting an unresolvable dependency in the built RPM.
ac_cv_func___ns_get16=no
export ac_cv_func___ns_get16
./configure --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_bindir} --includedir=%{_includedir}
%{__make} %{?_smp_mflags}

%install
[ "$RPM_BUILD_ROOT" != "/" -a -n "$RPM_BUILD_ROOT" ] && %{__rm} -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/spf*_static
%{__mv} -f $RPM_BUILD_ROOT/%{_bindir}/spfquery $RPM_BUILD_ROOT/%{_bindir}/spfquery.libspf2
%{__mv} -f $RPM_BUILD_ROOT/%{_bindir}/spfd     $RPM_BUILD_ROOT/%{_bindir}/spfd.libspf2

%if %{enable_checks}
# Delete the following line for legacy RPM versions (older than 4.1.1) if you wish to enable checks
%check
%{__make} check
%endif

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT
%__rm -rf $RPM_BUILD_DIR/%{name}-%{version}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post progs
/usr/sbin/alternatives --install %{_bindir}/spfquery spf %{_bindir}/spfquery.libspf2 20 \
	--slave %{_bindir}/spfd spf-daemon %{_bindir}/spfd.libspf2
exit 0

%preun progs
if [ $1 = 0 ]; then
	/usr/sbin/alternatives --remove spf %{_bindir}/spfquery.libspf2
fi
exit 0
                                                                                                                           
%postun progs
if [ "$1" -ge "1" ]; then
	spf=`readlink /etc/alternatives/spf`
	if [ "$spf" == "%{_bindir}/spfquery.libspf2" ]; then
		/usr/sbin/alternatives --set spf %{_bindir}/spfquery.libspf2
	fi
fi
exit 0

%triggerpostun -- libspf2-progs <= 1.0.4-3
/usr/sbin/alternatives --auto spf

%files
%defattr(-,root,root)
%{_libdir}/libspf2.so.*
%doc README Changelog docs/*.txt INSTALL LICENSES TODO

%files devel
%defattr(-,root,root)
%{_includedir}/spf2/spf*.h
%{_libdir}/libspf2.a
%{_libdir}/libspf2.la
%{_libdir}/libspf2.so
%doc docs/API

%files progs
%defattr(-,root,root)
%{_bindir}/spfd.libspf2
%{_bindir}/spfquery.libspf2
%{_bindir}/spftest
%{_bindir}/spf_example
%{_bindir}/spf_example_2mx

%changelog
* Sat Nov 6 2004 Nikolai V. Ivanyushin <nvi на pisem.net> nvi
- some cosmetic changes
- first build for nvi
- added Epoch: 99999

* Thu Oct 28 2004 Paul Howarth <paul на city-fan.org> 1.0.4-8
- Downgrade alternatives priority to 20 so that other implementations
  of spfquery will be preferred; there is still a case-sensitivity bug
  in libspf2 and no sign of an imminent fix.

* Mon Aug 16 2004 Paul Howarth <paul на city-fan.org> 1.0.4-7
- Configure fix to find -lresolv on x64_64
- Portability fixes for x64_64

* Sun Aug  1 2004 Paul Howarth <paul на city-fan.org> 1.0.4-6
- Fix case-sensitivity bug.

* Wed Jul 28 2004 Paul Howarth <paul на city-fan.org> 1.0.4-5
- Revert -pthread option as it didn't improve anything.

* Tue Jul 27 2004 Paul Howarth <paul на city-fan.org> 1.0.4-4
- Use `alternatives' so that the spfquery and spfd programs can co-exist
  with versions from other implementations.
- Ensure thread-safe operation by building with -pthread.

* Thu Jul 15 2004 Paul Howarth <paul на city-fan.org> 1.0.4-3
- Install the libtool library in the devel package so that
  dependent libraries are found properly.
- Use the libtool supplied with the package rather than the
  system libtool.

* Tue Jul 13 2004 Paul Howarth <paul на city-fan.org> 1.0.4-2
- Cosmetic changes for building on Mandrake Linux
- Require rpm-build >= 4.1.1 for building to avoid strange error messages
  from old versions of rpm when they see %%check
- Require glibc-devel and make for building
- Require perl for building with checks enabled
- Improved description text for the packages

* Fri Jul 09 2004 Paul Howarth <paul на city-fan.org> 1.0.4-1
- Update to 1.0.4
- Added facility to build without running test suite
  (rpmbuild --without checks)

* Sat Jul 03 2004 Paul Howarth <paul на city-fan.org> 1.0.3-1
- Initial RPM build.


Подробная информация о списке рассылки exim-conf