]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- corrected /etc/sendmail.* to /etc/mail/sendmail.* (in comments)
[packages/sendmail.git] / sendmail.spec
index 1fc2b667ac8083690abc99011dd7a24fb3321ec9..1a82e4538e5888b724b4e99f2befc645354742cd 100644 (file)
@@ -2,19 +2,19 @@
 # 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(pl):   Sendmail - serwer poczty elektronicznej
+Summary(ru):   ðÏÞÔÏ×ÙÊ ÔÒÁÎÓÐÏÒÔÎÙÊ ÁÇÅÎÔ sendmail
 Summary(tr):   Elektronik posta hizmetleri sunucusu
+Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
-Version:       8.12.0
-Release:       1
+Version:       8.12.3
+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,41 +24,40 @@ 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
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Patch0:                %{name}-makemapman.patch
+Patch1:                %{name}-smrsh-paths.patch
+Patch2:                %{name}-rmail.patch
+Patch3:                %{name}-os-paths.patch
+Patch4:                %{name}-m4path.patch
+Patch5:                %{name}-redirect.patch
+Patch6:                %{name}-hprescan-dos.patch
 BuildRequires: cyrus-sasl-devel
 BuildRequires: db3-devel
-BuildRequires: pam-devel
 %{!?_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
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     smtpdaemon
 Obsoletes:     exim
 Obsoletes:     masqmail
+Obsoletes:     omta
 Obsoletes:     postfix
 Obsoletes:     qmail
 Obsoletes:     sendmail-cf
 Obsoletes:     sendmail-doc
 Obsoletes:     smail
 Obsoletes:     zmailer
-Obsoletes:     omta
 
 %define                _sysconfdir     /etc/mail
 
@@ -85,18 +84,30 @@ passerelles du r
 
 %description -l pl
 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
-miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
+miêdzy komputerami w sieci (MTA). Zajmuje siê przekazywaniem poczty
 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na
 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego
 dodatkowym atutem jest prosta konfiguracja. Dziêki rozbudowanym
 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
 
+%description -l ru
+Sendmail - ÜÔÏ Mail Transport Agent, ÐÒÏÇÒÁÍÍÁ ÐÅÒÅÓÙÌÁÀÝÁÑ ÐÏÞÔÕ Ó
+ÍÁÛÉÎÙ ÎÁ ÍÁÛÉÎÕ. Sendmail ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÓÔÁÎÄÁÒÔÎÙÅ ÓÒÅÄÓÔ×Á
+ÍÅÖÓÅÔÅ×ÏÊ ÍÁÒÛÒÕÔÉÚÁÃÉÉ ÐÏÞÔÙ, aliasing, forwarding, Á×ÔÏÍÁÔÉÞÅÓËÕÀ
+ÍÁÒÛÒÕÔÉÚÁÃÉÀ ÄÌÑ ÓÅÔÅ×ÙÈ ÛÌÀÚÏ× É ÇÉÂËÉÊ ÍÅÈÁÎÉÚÍ ËÏÎÆÉÇÕÒÁÃÉÉ.
+
 %description -l tr
 Sendmail, bir mektubu bir makineden diðerine taþýr. Pek çok davranýþý
 ayarlanabilir. Internet üzerinden mektup almak veya göndermek
 istiyorsanýz bu pakete gereksiniminiz olacaktýr.
 
+%description -l uk
+Sendmail - ÃÅ Mail Transport Agent, ÐÒÏÇÒÁÍÁ ÝÏ ÐÅÒÅÓÉÌÁ¤ ÐÏÛÔÕ Ú
+ÍÁÛÉÎÉ ÎÁ ÍÁÛÉÎÕ. Sendmail ÎÁÄÁ¤ ÓÔÁÎÄÁÒÔΦ ÚÁÓÏÂɠͦÖÍÅÒÅÖÅ×ϧ
+ÍÁÒÛÒÕÔÉÚÁ槠ÐÏÛÔÉ, aliasing, forwarding, Á×ÔÏÍÁÔÉÞÎÕ ÍÁÒÛÒÕÔÉÚÁæÀ
+ÄÌÑ ÍÅÒÅÖÅ×ÉÈ ÛÌÀڦנÔÁ ÇÎÕÞËÉÊ ÍÅÈÁΦÚÍ ÍÁÒÛÒÕÔÉÚÁæ§.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -106,18 +117,17 @@ istiyorsan
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
 
 # seems to be obsoleted...
 #tar xf %{SOURCE2} -C cf
 
-sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc
+sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc
 
 install %{SOURCE7} config.m4
 
 %build
+echo "define(\`confCC', \`%{__cc}')" >> config.m4
+echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
 %if %{?debug:0}%{!?debug:1}
 echo "define(\`confLDOPTS', \`-s')" >> config.m4
 %endif
@@ -130,9 +140,6 @@ echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
 echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
 %endif
 
-RPM_OPT_FLAGS="%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6"
-export RPM_OPT_FLAGS
-
 cd sendmail    && sh Build -f ../config.m4
 cd ../mailstats        && sh Build -f ../config.m4
 cd ../rmail    && sh Build -f ../config.m4
@@ -140,7 +147,7 @@ cd ../makemap       && sh Build -f ../config.m4
 cd ../praliases        && sh Build -f ../config.m4
 cd ../smrsh    && sh Build -f ../config.m4
 cd ../cf/cf
-m4 redhat.mc > redhat.cf
+m4 pld.mc > pld.cf
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -173,7 +180,7 @@ cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf
 cd -
 
 # sendmail.{cf,mc}
-install cf/cf/redhat.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
+install cf/cf/pld.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
 sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} \
        > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc
 
@@ -187,7 +194,7 @@ ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
 
 # dangling symlinks
 for f in hoststat mailq newaliases purgestat ; do
-  ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
+       ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
 done
 
 cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/access
@@ -204,7 +211,7 @@ 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%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
                $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
 done
 
@@ -252,14 +259,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
 
@@ -267,10 +274,10 @@ done
 # Oops, these files moved
 #
 if [ -f /etc/sendmail.cw ] ; then
-       cat /etc/sendmail.cw  | \
+       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)
@@ -334,34 +341,33 @@ fi
 %{_mandir}/man1/newaliases.1*
 %{_mandir}/man1/mailq.1*
 
+%dir /etc/smrsh
+%dir %{_sysconfdir}
 /var/log/statistics
-# XXX can't do noreplace here or new sendmail will not deliver.
-%config(noreplace) %{_sysconfdir}/sendmail.cf
-%config(noreplace) %{_sysconfdir}/sendmail.mc
-%config(noreplace) %{_sysconfdir}/submit.cf
-%config(noreplace) %{_sysconfdir}/submit.mc
-%config(noreplace) %{_sysconfdir}/local-host-names
-%config(noreplace) %{_sysconfdir}/aliases
+%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
-%attr(0770,root,mail) %dir /var/spool/mqueue
 %attr(0770,root,smmsp) %dir /var/spool/clientmqueue
-%dir /etc/smrsh
-%dir %{_sysconfdir}
+%attr(0750,root,mail) %dir /var/spool/mqueue
 
 %config %{_sysconfdir}/Makefile
-%ghost %{_sysconfdir}/virtusertable.db
-%config(noreplace) %{_sysconfdir}/virtusertable
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access
 %ghost %{_sysconfdir}/access.db
-%config(noreplace) %{_sysconfdir}/access
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/domaintable
 %ghost %{_sysconfdir}/domaintable.db
-%config(noreplace) %{_sysconfdir}/domaintable
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mailertable
 %ghost %{_sysconfdir}/mailertable.db
-%config(noreplace) %{_sysconfdir}/mailertable
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/virtusertable
+%ghost %{_sysconfdir}/virtusertable.db
 %config(noreplace) %{_sysconfdir}/helpfile
 
 %attr(754,root,root) /etc/rc.d/init.d/sendmail
-%config(noreplace) /etc/sysconfig/sendmail
-%config(noreplace) /etc/sasl/Sendmail.conf
+%config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sendmail
+%config(noreplace) %verify(not md5 size mtime) /etc/sasl/Sendmail.conf
 
 %dir %{_libdir}/sendmail-cf
 %dir %{_libdir}/sendmail-cf/cf
This page took 0.063718 seconds and 4 git commands to generate.