Summary(uk): ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
Name: sendmail
Version: 8.12.3
-Release: 3
+Release: 4
License: BSD
Group: Networking/Daemons
Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
Source1: %{name}.init
-Source2: http://www.informatik.uni-kiel.de/~ca/email/rules/check.tar
-Source3: aliases
-Source4: %{name}.sysconfig
+Source2: %{name}.sysconfig
+Source3: %{name}.aliases
+# From http://doc.phpauction.org/sendmail/examples/
+Source4: %{name}-examples.tar.bz2
Source5: %{name}-etc-mail-Makefile
Source6: %{name}.mc
Source7: %{name}-config.m4
Source8: %{name}.sasl
-Source9: %{name}-access-sample
-Source10: %{name}-mailertable-sample
-Source11: %{name}-virtusertable-sample
-Source12: %{name}-domaintable-sample
-Source13: %{name}-pam-d-smtp
+Source9: %{name}.access
+Source10: %{name}.mailertable
+Source11: %{name}.virtusertable
+Source12: %{name}.domaintable
+Source13: %{name}-smtp.pamd
Patch0: %{name}-makemapman.patch
Patch1: %{name}-smrsh-paths.patch
Patch2: %{name}-rmail.patch
%patch5 -p1
%patch6 -p1
-# seems to be obsoleted...
-#tar xf %{SOURCE2} -C cf
-
sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc
install %{SOURCE7} config.m4
ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
done
-cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/access
-# Check the %{_prefix}/doc/sendmail-%{version}/README.cf file for a description
-# of the format of this file. (search for access_db in that file)
-# The %{_prefix}/doc/sendmail-%{version}/README.cf is part of the sendmail-doc
-# package.
-#
-# by default we allow relaying from localhost...
-localhost.localdomain RELAY
-localhost RELAY
-127.0.0.1 RELAY
-EOF
for map in virtusertable access domaintable mailertable ; do
touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
$RPM_BUILD_ROOT%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
$RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/Makefile
install %{SOURCE8} $RPM_BUILD_ROOT/etc/sasl/Sendmail.conf
-install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/access.sample
-install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mailertable.sample
-install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/virtusertable.sample
-install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable.sample
install %{SOURCE13} $RPM_BUILD_ROOT/etc/pam.d/smtp
+install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/access
+install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mailertable
+install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/virtusertable
+install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable
mv -f smrsh/README README.smrsh
mv -f cf/README README.cf
mv -f doc/op/op.me .
+bzip2 -dc %{SOURCE4} | tar xf -
+
gzip -9nf FAQ KNOWNBUGS README* op.me RELEASE_NOTES
%clean
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc *.gz examples/
%attr(755,root,root) %{_sbindir}/mailstats
%attr(755,root,root) %{_sbindir}/praliases
%attr(755,root,root) %{_bindir}/hoststat
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/submit.mc
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/local-host-names
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/aliases
-%attr(0644,root,mail) %ghost %{_sysconfdir}/aliases.db
-%attr(0770,root,smmsp) %dir /var/spool/clientmqueue
-%attr(0750,root,mail) %dir /var/spool/mqueue
-%attr(0755,root,root) %dir /etc/pam.d
+%attr(644,root,mail) %ghost %{_sysconfdir}/aliases.db
+%attr(770,root,smmsp) %dir /var/spool/clientmqueue
+%attr(750,root,mail) %dir /var/spool/mqueue
+%attr(755,root,root) %dir /etc/pam.d
%config %{_sysconfdir}/Makefile
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access.sample
%ghost %{_sysconfdir}/access.db
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/domaintable
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/domaintable.sample
%ghost %{_sysconfdir}/domaintable.db
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mailertable
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mailertable.sample
%ghost %{_sysconfdir}/mailertable.db
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/virtusertable
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/virtusertable.sample
%ghost %{_sysconfdir}/virtusertable.db
%config(noreplace) %{_sysconfdir}/helpfile