]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- added FFR_DEAL_WITH_ERROR_SSL
[packages/sendmail.git] / sendmail.spec
index 06133be9524b37a2370047fb6f335c8bbd462c58..3f3d88ece3106231365bf0a744557a53b9534c48 100644 (file)
@@ -2,26 +2,32 @@
 # Conditional build:
 # _without_ldap                without LDAP support
 # _without_tls         without TLS (SSL) support
 # Conditional build:
 # _without_ldap                without LDAP support
 # _without_tls         without TLS (SSL) support
-# _with_pgsql          without pgsql support (bluelabs)
-
+# _with_db3            use db3 instead of db package
+# _with_pgsql          with PostgreSQL support (bluelabs)
+#
 Summary:       A widely used Mail Transport Agent (MTA)
 Summary(de):   sendmail-Mail-Übertragungsagent
 Summary:       A widely used Mail Transport Agent (MTA)
 Summary(de):   sendmail-Mail-Übertragungsagent
+Summary(es):   Sendmail - agente de transporte de mail
 Summary(fr):   Agent de transport de courrier sendmail
 Summary(fr):   Agent de transport de courrier sendmail
+Summary(ko):   SMTP_AUTH¿Í TLS¸¦ Áö¿øÇϴ Mail Àü¼Û ÇÁ·Î±×·¥(MTA)
 Summary(pl):   Sendmail - serwer poczty elektronicznej
 Summary(pl):   Sendmail - serwer poczty elektronicznej
+Summary(pt_BR):        Sendmail - agente de transporte de mail
 Summary(ru):   ðÏÞÔÏ×ÙÊ ÔÒÁÎÓÐÏÒÔÎÙÊ ÁÇÅÎÔ sendmail
 Summary(tr):   Elektronik posta hizmetleri sunucusu
 Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
 Summary(ru):   ðÏÞÔÏ×ÙÊ ÔÒÁÎÓÐÏÒÔÎÙÊ ÁÇÅÎÔ sendmail
 Summary(tr):   Elektronik posta hizmetleri sunucusu
 Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
-Version:       8.12.5
-Release:       1
+Version:       8.12.10
+Release:       5
 License:       BSD
 Group:         Networking/Daemons
 Source0:       ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
 License:       BSD
 Group:         Networking/Daemons
 Source0:       ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
+# Source0-md5: 393f5d09d462f522c8288363870b2b42
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.aliases
 # From http://doc.phpauction.org/sendmail/examples/
 Source4:       %{name}-examples.tar.bz2
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.aliases
 # From http://doc.phpauction.org/sendmail/examples/
 Source4:       %{name}-examples.tar.bz2
+# Source4-md5:  d00d817cd456a947a7fc6c04072a7d68
 Source5:       %{name}-etc-mail-Makefile
 Source6:       %{name}.mc
 Source7:       %{name}-config.m4
 Source5:       %{name}-etc-mail-Makefile
 Source6:       %{name}.mc
 Source7:       %{name}-config.m4
@@ -40,21 +46,25 @@ Patch5:             %{name}-redirect.patch
 Patch6:                %{name}-hprescan-dos.patch
 Patch7:                http://blue-labs.org/clue/bluelabs.patch-8.12.3
 BuildRequires: cyrus-sasl-devel
 Patch6:                %{name}-hprescan-dos.patch
 Patch7:                http://blue-labs.org/clue/bluelabs.patch-8.12.3
 BuildRequires: cyrus-sasl-devel
-BuildRequires: db3-devel
+BuildRequires: man
+%{?_with_db3:BuildRequires:    db3-devel}
+%{!?_with_db3:BuildRequires:   db-devel >= 4.1.25}
 %{!?_without_ldap:BuildRequires:       openldap-devel}
 %{!?_without_ldap:BuildRequires:       openldap-devel}
-%{!?_without_tls:BuildRequires:        openssl-devel}
-%{?_with_pgsql:BuildRequires: postgresql-devel}
-Requires:      m4
-Requires:      procmail
-PreReq:                /sbin/chkconfig
+%{!?_without_tls:BuildRequires:        openssl-devel >= 0.9.7c}
+%{?_with_pgsql:BuildRequires:  postgresql-devel}
 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(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(post,preun):/sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
+%{!?_with_db3:Requires:        db >= 4.1.25}
+Requires:      m4
+Requires:      procmail
+Requires:      pam >= 0.77.3
 Provides:      smtpdaemon
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     smtpdaemon
 Provides:      smtpdaemon
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     smtpdaemon
@@ -84,6 +94,14 @@ Weiterleiten von Nachrichten, automatischem Routing an
 Netzwerk-Gateways und flexible Konfiguration. Wenn Sie E-Mails über
 das Internet senden und empfangen möchten, brauchen Sie sendmail.
 
 Netzwerk-Gateways und flexible Konfiguration. Wenn Sie E-Mails über
 das Internet senden und empfangen möchten, brauchen Sie sendmail.
 
+%description -l es
+sendmail es un agente de transporte de correo electrónico, que mueve
+mensajes entre máquinas. Implementa facilidades de internetwork y
+rutado, caracterizando cambio de nombres (aliases) y envío a nuevas
+direcciones ( forwarding ), rutado automático para gateways de la red
+y configuración flexible. Necesitarás del sendmail si deseas enviar y
+recibir mensajes a través de la Internet.
+
 %description -l fr
 Sendmail est un agent de transport de courrier, qui est le programme
 transférent le courrier d'une machine à l'autre. Sendmail implémente
 %description -l fr
 Sendmail est un agent de transport de courrier, qui est le programme
 transférent le courrier d'une machine à l'autre. Sendmail implémente
@@ -91,6 +109,13 @@ une facilit
 l'\"aliasing\" et le \"forwarding\", un routage automatique sur les
 passerelles du réseau, et une configuration flexible.
 
 l'\"aliasing\" et le \"forwarding\", un routage automatique sur les
 passerelles du réseau, et une configuration flexible.
 
+%description -l ko
+SendamilÀº ¸Å¿ì ³Î¸® »ç¿ëµÇ´Â Mail Àü¼Û ÇÁ·Î±×·¥ÀÌ´Ù(MTA). Mail Àü¼Û
+ÇÁ·Î±×·¥µé(MTA)Àº ¾î¶°ÇÑ machine¿¡¼­ ´Ù¸¥ machineÀ¸·Î ¸ÞÀÏÀ» º¸³»¸ç
+SendmailÀº e-mailÀ» ÀбâÀ§ÇØ »ç¿ëÇϴ client programÀº ¾Æ´Ï´Ù.
+SendamilÀº ¿øÇϴ °÷À¸·Î InternetÀ̳ª Network¸¦ ÅëÇØ e-mailÀ» º¸³»´Â
+¿ªÇÒÀ» Çϴ backgrond¿¡¼­ ÀÛ¾÷À» Çϴ ÇÁ·Î±×·¥ÀÌ´Ù.
+
 %description -l pl
 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
 miêdzy komputerami w sieci (MTA). Zajmuje siê przekazywaniem poczty
 %description -l pl
 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
 miêdzy komputerami w sieci (MTA). Zajmuje siê przekazywaniem poczty
@@ -100,6 +125,13 @@ dodatkowym atutem jest prosta konfiguracja. Dzi
 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
 
 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
 
+%description -l pt_BR
+O sendmail é um agente de transporte de correio eletrônico, que move
+mensagens entre máquinas. Ele implementa facilidades de internetwork e
+roteamento, caracterizando troca de nomes (aliases) e remessa a novos
+endereços ( forwarding ), roteamento automático para gateways da rede
+e configuração flexível.
+
 %description -l ru
 Sendmail - ÜÔÏ Mail Transport Agent, ÐÒÏÇÒÁÍÍÁ ÐÅÒÅÓÙÌÁÀÝÁÑ ÐÏÞÔÕ Ó
 ÍÁÛÉÎÙ ÎÁ ÍÁÛÉÎÕ. Sendmail ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÓÔÁÎÄÁÒÔÎÙÅ ÓÒÅÄÓÔ×Á
 %description -l ru
 Sendmail - ÜÔÏ Mail Transport Agent, ÐÒÏÇÒÁÍÍÁ ÐÅÒÅÓÙÌÁÀÝÁÑ ÐÏÞÔÕ Ó
 ÍÁÛÉÎÙ ÎÁ ÍÁÛÉÎÕ. Sendmail ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÓÔÁÎÄÁÒÔÎÙÅ ÓÒÅÄÓÔ×Á
@@ -137,6 +169,8 @@ install %{SOURCE7} config.m4
 %build
 echo "define(\`confCC', \`%{__cc}')" >> config.m4
 echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
 %build
 echo "define(\`confCC', \`%{__cc}')" >> config.m4
 echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
+echo "APPENDDEF(\`confINCDIRS', \`-I/usr/include/sasl')" >> config.m4
+echo "define(\`confLIBSEARCH', \`db resolv')" >> config.m4
 %if %{?debug:0}%{!?debug:1}
 echo "define(\`confLDOPTS', \`-s')" >> config.m4
 %endif
 %if %{?debug:0}%{!?debug:1}
 echo "define(\`confLDOPTS', \`-s')" >> config.m4
 %endif
@@ -152,6 +186,7 @@ echo "APPENDDEF(\`confLIBS', \`-lsasl -lcrypto')" >> config.m4
 %endif
 %if %{?_without_tls:0}%{!?_without_tls:1}
 echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
 %endif
 %if %{?_without_tls:0}%{!?_without_tls:1}
 echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
+echo "APPENDDEF(\`confENVDEF', \`-D_FFR_DEAL_WITH_ERROR_SSL')" >> config.m4
 echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
 %endif
 
 echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
 %endif
 
@@ -181,13 +216,20 @@ SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \
        UBINOWN=$IDNU UBINGRP=$IDNG MANOWN=$IDNU MANGRP=$IDNG \
        CFOWN=$IDNU CFGRP=$IDNG MSPQOWN=$IDNU GBINGRP=$IDNG GBINOWN=$IDNU \
        BINOWN=$IDNU BINGRP=$IDNG"
        UBINOWN=$IDNU UBINGRP=$IDNG MANOWN=$IDNU MANGRP=$IDNG \
        CFOWN=$IDNU CFGRP=$IDNG MSPQOWN=$IDNU GBINGRP=$IDNG GBINOWN=$IDNU \
        BINOWN=$IDNU BINGRP=$IDNG"
-%{__make} $SMINSTOPT install -C $OBJDIR/sendmail
-%{__make} $SMINSTOPT install -C $OBJDIR/mailstats
-%{__make} $SMINSTOPT install -C $OBJDIR/praliases
-%{__make} $SMINSTOPT force-install -C $OBJDIR/rmail
-%{__make} $SMINSTOPT install -C $OBJDIR/makemap
-ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
-%{__make} $SMINSTOPT install -C $OBJDIR/smrsh
+%{__make} -C $OBJDIR/sendmail install \
+       $SMINSTOPT
+%{__make} -C $OBJDIR/mailstats install \
+       $SMINSTOPT
+%{__make} -C $OBJDIR/praliases install \
+       $SMINSTOPT
+%{__make} -C $OBJDIR/rmail force-install \
+       $SMINSTOPT
+%{__make} -C $OBJDIR/makemap install \
+       $SMINSTOPT
+%{__make} -C $OBJDIR/smrsh install \
+       $SMINSTOPT
+
+ln -sf %{_sbindir}/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
 
 # install the cf files
 cd cf
 
 # install the cf files
 cd cf
@@ -210,22 +252,21 @@ install cf/cf/submit.mc $RPM_BUILD_ROOT%{_sysconfdir}
 echo "# local-host-names - include all aliases for your machine here." \
        > $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
 
 echo "# local-host-names - include all aliases for your machine here." \
        > $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
 
-ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
+ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
 
 # dangling symlinks
 for f in hoststat mailq newaliases purgestat ; do
 
 # dangling symlinks
 for f in hoststat mailq newaliases purgestat ; do
-       ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
+       ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
 done
 
 done
 
-
 for map in virtusertable access domaintable mailertable ; do
        touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
 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%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
                $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
 done
 
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases
                $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
 done
 
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases
-$RPM_BUILD_ROOT%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
+$RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
        $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
 
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
        $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
 
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
@@ -250,7 +291,7 @@ rm -rf $RPM_BUILD_ROOT
 %pre
 if [ -n "`/usr/bin/getgid smmsp`" ]; then
        if [ "`/usr/bin/getgid smmsp`" != "25" ]; then
 %pre
 if [ -n "`/usr/bin/getgid smmsp`" ]; then
        if [ "`/usr/bin/getgid smmsp`" != "25" ]; then
-               echo "Warning: group smmsp haven't gid=25. Correct this before installing sendmail." 1>&2
+               echo "Error: group smmsp doesn't have gid=25. Correct this before installing sendmail." 1>&2
                exit 1
        fi
 else
                exit 1
        fi
 else
@@ -258,7 +299,7 @@ else
 fi
 if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then
        if [ "`/bin/id -u smmsp`" != "25" ]; then
 fi
 if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then
        if [ "`/bin/id -u smmsp`" != "25" ]; then
-               echo "Warning: user smmsp haven't uid=25. Correct this before installing sendmail." 1>&2
+               echo "Error: user smmsp doesn't have uid=25. Correct this before installing sendmail." 1>&2
                exit 1
        fi
 else
                exit 1
        fi
 else
@@ -266,6 +307,7 @@ else
 fi
 
 %post
 fi
 
 %post
+umask 022
 #
 # Convert old format to new
 #
 #
 # Convert old format to new
 #
@@ -346,14 +388,15 @@ fi
 %attr(755,root,root) %{_sbindir}/smrsh
 %{_libdir}/sendmail
 
 %attr(755,root,root) %{_sbindir}/smrsh
 %{_libdir}/sendmail
 
-%{_mandir}/man8/rmail.8*
-%{_mandir}/man8/praliases.8*
+%{_mandir}/man1/mailq.1*
+%{_mandir}/man1/newaliases.1*
+%{_mandir}/man5/aliases.5*
 %{_mandir}/man8/mailstats.8*
 %{_mandir}/man8/makemap.8*
 %{_mandir}/man8/mailstats.8*
 %{_mandir}/man8/makemap.8*
+%{_mandir}/man8/praliases.8*
+%{_mandir}/man8/rmail.8*
 %{_mandir}/man8/sendmail.8*
 %{_mandir}/man8/sendmail.8*
-%{_mandir}/man5/aliases.5*
-%{_mandir}/man1/newaliases.1*
-%{_mandir}/man1/mailq.1*
+%{_mandir}/man8/smrsh.8*
 
 %dir /etc/smrsh
 %dir %{_sysconfdir}
 
 %dir /etc/smrsh
 %dir %{_sysconfdir}
@@ -364,7 +407,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
 %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
-%{?_with_pgsql:%attr(644,root,root) /etc/mail/bluelabs.mc}
+%{?_with_pgsql:%{_sysconfdir}/bluelabs.mc}
 %attr(644,root,mail) %ghost %{_sysconfdir}/aliases.db
 %attr(770,root,smmsp) %dir /var/spool/clientmqueue
 %attr(750,root,mail) %dir /var/spool/mqueue
 %attr(644,root,mail) %ghost %{_sysconfdir}/aliases.db
 %attr(770,root,smmsp) %dir /var/spool/clientmqueue
 %attr(750,root,mail) %dir /var/spool/mqueue
This page took 0.050853 seconds and 4 git commands to generate.