# Conditional build:
# _without_ldap without LDAP support
# _without_tls without TLS (SSL) support
-#
+
Summary: A widely used Mail Transport Agent (MTA)
Summary(de): sendmail-Mail-Übertragungsagent
Summary(fr): Agent de transport de courrier sendmail
Summary(tr): Elektronik posta hizmetleri sunucusu
Name: sendmail
Version: 8.12.1
-Release: 2
+Release: 5
License: BSD
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
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
%{!?_without_ldap:BuildRequires: openldap-devel}
%{!?_without_tls:BuildRequires: openssl-devel}
Requires: m4
-Prereq: /sbin/chkconfig
-Prereq: /usr/sbin/groupadd
-Prereq: /usr/sbin/useradd
-Prereq: /usr/sbin/groupdel
-Prereq: /usr/sbin/userdel
-Prereq: /usr/bin/getgid
-Prereq: /bin/id
+Requires: procmail
+PreReq: /sbin/chkconfig
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires(post): awk
+Requires(post): textutils
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
Provides: smtpdaemon
Obsoletes: smtpdaemon
Obsoletes: exim
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%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
$RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
done
%dir /etc/smrsh
%dir %{_sysconfdir}
/var/log/statistics
-# XXX can't do noreplace here or new sendmail will not deliver.
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sendmail.cf
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sendmail.mc
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/submit.cf
%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
+%ghost %{_sysconfdir}/aliases.db
%attr(0770,root,smmsp) %dir /var/spool/clientmqueue
-%attr(0770,root,mail) %dir /var/spool/mqueue
+%attr(0750,root,mail) %dir /var/spool/mqueue
%config %{_sysconfdir}/Makefile
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access