]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- obsolete
[packages/sendmail.git] / sendmail.spec
index dd1d72bc6d2bcd647fda93b7da1220dc8340ccc4..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,24 +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:       5
+Version:       8.12.2
+Release:       2
 License:       BSD
 Group:         Networking/Daemons
-Group(cs):     Sí»ové/Démoni
-Group(da):     Netværks/Dæmoner
-Group(de):     Netzwerkwesen/Server
-Group(es):     Red/Servidores
-Group(fr):     Réseau/Serveurs
-Group(is):     Net/Púkar
-Group(it):     Rete/Demoni
-Group(no):     Nettverks/Daemoner
-Group(pl):     Sieciowe/Serwery
-Group(pt):     Rede/Servidores
-Group(ru):     óÅÔØ/äÅÍÏÎÙ
-Group(sl):     Omre¾ni/Stre¾niki
-Group(sv):     Nätverk/Demoner
-Group(uk):     íÅÒÅÖÁ/äÅÍÏÎÉ
 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
@@ -36,16 +23,16 @@ 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
@@ -53,15 +40,16 @@ BuildRequires:      db3-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
@@ -122,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
@@ -266,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
 
@@ -284,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)
@@ -357,7 +347,7 @@ fi
 %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
-%ghost %{_sysconfdir}/aliases.db
+%attr(0644,root,mail) %ghost %{_sysconfdir}/aliases.db
 %attr(0770,root,smmsp) %dir /var/spool/clientmqueue
 %attr(0750,root,mail) %dir /var/spool/mqueue
 
This page took 0.089984 seconds and 4 git commands to generate.