]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- obsolete
[packages/sendmail.git] / sendmail.spec
index 6af811f2c4d6fdc3c00923397faf1f7a06d878fd..c89dbb8ef9fe5cbc5fdd38b4a512ce3aa2ae4b19 100644 (file)
@@ -2,6 +2,7 @@
 # Conditional build:
 # _without_ldap                without LDAP support
 # _without_tls         without TLS (SSL) support
+# _with_auth           with AUTH support
 
 Summary:       A widely used Mail Transport Agent (MTA)
 Summary(de):   sendmail-Mail-Übertragungsagent
@@ -9,12 +10,10 @@ Summary(fr): Agent de transport de courrier sendmail
 Summary(pl):   Sendmail - serwer poczty elektronicznej
 Summary(tr):   Elektronik posta hizmetleri sunucusu
 Name:          sendmail
-Version:       8.12.1
-Release:       3
+Version:       8.12.2
+Release:       2
 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
@@ -24,31 +23,33 @@ Source5:    %{name}-etc-mail-Makefile
 Source6:       %{name}.mc
 Source7:       %{name}-config.m4
 Source8:       %{name}.sasl
-Patch0:                %{name}-makefile.patch
-Patch1:                %{name}-makemapman.patch
-Patch2:                %{name}-smrsh-paths.patch
-Patch3:                %{name}-rmail.patch
-Patch4:                %{name}-os-paths.patch
-Patch5:                %{name}-m4path.patch
-Patch6:                %{name}-dtelnet.patch
-Patch7:                %{name}-pld.mc.patch
-Patch8:                %{name}-redirect.patch
-Patch9:                %{name}-hprescan-dos.patch
+Patch0:                %{name}-makemapman.patch
+Patch1:                %{name}-smrsh-paths.patch
+Patch2:                %{name}-rmail.patch
+Patch3:                %{name}-os-paths.patch
+Patch4:                %{name}-m4path.patch
+Patch5:                %{name}-dtelnet.patch
+Patch6:                %{name}-pld.mc.patch
+Patch7:                %{name}-redirect.patch
+Patch8:                %{name}-hprescan-dos.patch
+Patch9:                %{name}-auth.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRequires: cyrus-sasl-devel
 BuildRequires: db3-devel
 %{!?_without_ldap:BuildRequires:       openldap-devel}
 %{!?_without_tls:BuildRequires:        openssl-devel}
 Requires:      m4
+Requires:      procmail
+%{?_with_auth:Requires: cyrus-sasl-{plain,login}}
 PreReq:                /sbin/chkconfig
-PreReq:                /usr/sbin/groupadd
-PreReq:                /usr/sbin/useradd
-PreReq:                /usr/sbin/groupdel
-PreReq:                /usr/sbin/userdel
-Requires(pre): /usr/bin/getgid
 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
@@ -109,7 +110,9 @@ istiyorsan
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-%patch9 -p1
+%if %{?_with_auth:1}%{!?_with_auth:0}
+patch -p0 %{SOURCE6} %{PATCH9}
+%endif
 
 # seems to be obsoleted...
 #tar xf %{SOURCE2} -C cf
@@ -253,14 +256,14 @@ if [ -f /etc/mail/deny ] ; then
        cat /etc/mail/deny | \
                awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
                {print $1" REJECT"}' >> /etc/mail/access
-       cp -f /etc/mail/deny /etc/mail/deny.rpmorig
+       mv -f /etc/mail/deny /etc/mail/deny.rpmorig
 fi
 for oldfile in relay_allow ip_allow name_allow ; do
        if [ -f /etc/mail/$oldfile ] ; then
                cat /etc/mail/$oldfile | \
                        awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
                        { print $1\" RELAY\" }" >> /etc/mail/access
-               cp -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
+               mv -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
        fi
 done
 
@@ -271,7 +274,7 @@ if [ -f /etc/sendmail.cw ] ; then
        cat /etc/sendmail.cw | \
                awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
                { print $1 }' >> /etc/mail/local-host-names
-       cp -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
+       mv -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
 fi
 #
 # Rebuild maps (next reboot will rebuild also)
@@ -338,7 +341,6 @@ fi
 %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
@@ -347,7 +349,7 @@ fi
 %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(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
This page took 0.044846 seconds and 4 git commands to generate.