+#
+# TODO:
+# - make sid-milter support:
+# http://sourceforge.net/projects/sid-milter/
+# http://www.sendmail.net/
#
# Conditional build:
%bcond_without ldap # without LDAP support
Summary(tr): Elektronik posta hizmetleri sunucusu
Summary(uk): ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
Name: sendmail
-Version: 8.12.11
-Release: 9
+Version: 8.13.1
+Release: 1
License: BSD
Group: Networking/Daemons
Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
-# Source0-md5: fafda7f8043f0c34b9aa295618aa598c
+# Source0-md5: 5407db289086261d7e7a09920d2ea14e
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.aliases
%{?with_ldap:BuildRequires: openldap-devel}
%{?with_tls:BuildRequires: openssl-devel >= 0.9.7d}
%{?with_pgsql:BuildRequires: postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.159
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires: m4
Requires: procmail
Requires: pam >= 0.77.3
+Provides: group(smmsp)
Provides: smtpdaemon
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Provides: user(smmsp)
Obsoletes: courier
Obsoletes: exim
Obsoletes: masqmail
Obsoletes: smtpdaemon
Obsoletes: ssmtp
Obsoletes: zmailer
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/mail
exit 1
fi
else
- /usr/sbin/groupadd -g 25 -r -f smmsp
+ /usr/sbin/groupadd -g 25 smmsp 1>&2
fi
if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then
if [ "`/bin/id -u smmsp`" != "25" ]; then
exit 1
fi
else
- /usr/sbin/useradd -u 25 -r -d /var/spool/clientqueue -s /bin/false -c "Sendmail Message Submission Program" -g smmsp smmsp 1>&2
+ /usr/sbin/useradd -u 25 -d /var/spool/clientqueue -s /bin/false \
+ -c "Sendmail Message Submission Program" -g smmsp smmsp 1>&2
fi
%post
%postun
if [ "$1" = "0" ]; then
- /usr/sbin/userdel smmsp 2>/dev/null
- /usr/sbin/groupdel smmsp 2>/dev/null
+ %userremove smmsp
+ %groupremove smmsp
fi
# removal of compatibility links