X-Git-Url: http://git.pld-linux.org/?p=packages%2Fsendmail.git;a=blobdiff_plain;f=sendmail.spec;h=2166cdcb3fb130b8648a5f37a84612ebdb786e92;hp=7730ebd9c2555a2ea9f3f8fa6ae39abd4758a5b8;hb=44bb50830762ead96d853a2cd24ddf24e80a7855;hpb=bb5d653c70d1518e7050f1b1cc556ec42d82e56a diff --git a/sendmail.spec b/sendmail.spec index 7730ebd..2166cdc 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -1,27 +1,33 @@ +# TODO: +# - make sid-milter support: +# http://sourceforge.net/projects/sid-milter/ +# http://www.sendmail.net/ +# - http://blue-labs.org/clue/bluelabs.patch-8.12.3 has been updated upstream +# - move compilation from install to build section, fix re-entrancy of install +# - add tests bcond and/or disable tests tha fail on (AC-)builders # # Conditional build: %bcond_without ldap # without LDAP support %bcond_without tls # without TLS (SSL) support -%bcond_with db3 # use db3 instead of db package %bcond_with pgsql # with PostgreSQL support (bluelabs) # 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(ko): SMTP_AUTH¿Í TLS¸¦ Áö¿øÇÏ´Â Mail Àü¼Û ÇÁ·Î±×·¥(MTA) -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 +Summary(de.UTF-8): sendmail-Mail-Übertragungsagent +Summary(es.UTF-8): Sendmail - agente de transporte de mail +Summary(fr.UTF-8): Agent de transport de courrier sendmail +Summary(ko.UTF-8): SMTP_AUTH와 TLS를 지원하는 Mail 전송 프로그램(MTA) +Summary(pl.UTF-8): Sendmail - serwer poczty elektronicznej +Summary(pt_BR.UTF-8): Sendmail - agente de transporte de mail +Summary(ru.UTF-8): Почтовый транспортный агент sendmail +Summary(tr.UTF-8): Elektronik posta hizmetleri sunucusu +Summary(uk.UTF-8): Поштовий транспортний агент sendmail Name: sendmail -Version: 8.12.11 -Release: 3 +Version: 8.13.8 +Release: 11 License: BSD Group: Networking/Daemons Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz -# Source0-md5: fafda7f8043f0c34b9aa295618aa598c +# Source0-md5: 5f29c94b42e0bb74d546b2ae84203a1e Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}.aliases @@ -37,6 +43,7 @@ Source10: %{name}.mailertable Source11: %{name}.virtusertable Source12: %{name}.domaintable Source13: %{name}-smtp.pamd +Source14: %{name}.monitrc Patch0: %{name}-makemapman.patch Patch1: %{name}-smrsh-paths.patch Patch2: %{name}-rmail.patch @@ -45,43 +52,42 @@ Patch4: %{name}-m4path.patch Patch5: %{name}-redirect.patch Patch6: %{name}-hprescan-dos.patch Patch7: http://blue-labs.org/clue/bluelabs.patch-8.12.3 +URL: http://www.sendmail.org/ BuildRequires: cyrus-sasl-devel -%{?with_db3:BuildRequires: db3-devel} -%{!?with_db3:BuildRequires: db-devel >= 4.1.25} +BuildRequires: db-devel >= 4.1.25 BuildRequires: man -%{?with_ldap:BuildRequires: openldap-devel} +%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6} %{?with_tls:BuildRequires: openssl-devel >= 0.9.7d} %{?with_pgsql:BuildRequires: postgresql-devel} -Requires(pre): /bin/id -Requires(pre): /usr/bin/getgid -Requires(pre): /usr/sbin/groupadd -Requires(pre): /usr/sbin/useradd +BuildRequires: rpmbuild(macros) >= 1.310 +BuildRequires: sed >= 4.0 +%ifarch sparc +BuildRequires: sparc32 +%endif Requires(post): awk Requires(post): textutils -Requires(post,preun):/sbin/chkconfig +Requires(post,preun): /sbin/chkconfig +Requires(post,preun): rc-scripts >= 0.4.0.20 Requires(postun): /usr/sbin/groupdel Requires(postun): /usr/sbin/userdel -%{!?with_db3:Requires: db >= 4.1.25} +Requires(pre): /bin/id +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd +Requires: db >= 4.1.25 Requires: m4 +Requires: pam >= 0.79.0 Requires: procmail -Requires: pam >= 0.77.3 +Provides: group(smmsp) Provides: smtpdaemon -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Obsoletes: courier -Obsoletes: exim -Obsoletes: masqmail -Obsoletes: nullmailer -Obsoletes: omta -Obsoletes: postfix -Obsoletes: qmail +Provides: user(smmsp) Obsoletes: sendmail-cf Obsoletes: sendmail-doc -Obsoletes: smail Obsoletes: smtpdaemon -Obsoletes: ssmtp -Obsoletes: zmailer +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/mail +%define specflags -fPIC %description The Sendmail program is a very widely used Mail Transport Agent (MTA). @@ -90,67 +96,80 @@ program, which you use to read your e-mail. Sendmail is a behind-the-scenes program which actually moves your e-mail over networks or the Internet to where you want it to go. -%description -l de -Sendmail überträgt Mails zwischen Rechnern. Es implementiert eine -allgemeine Mail-Routing-Funktion über das Netzwerk mit Aliasing und +%description -l de.UTF-8 +Sendmail überträgt Mails zwischen Rechnern. Es implementiert eine +allgemeine Mail-Routing-Funktion über das Netzwerk mit Aliasing und 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. - -%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 +Netzwerk-Gateways und flexible Konfiguration. Wenn Sie E-Mails über +das Internet senden und empfangen möchten, brauchen Sie sendmail. + +%description -l es.UTF-8 +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.UTF-8 Sendmail est un agent de transport de courrier, qui est le programme -transférent le courrier d'une machine à l'autre. Sendmail implémente -une facilité générale de routage de courrier entre les réseaux, permet -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 -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 pt_BR -O sendmail é um agente de transporte de correio eletrônico, que move -mensagens entre máquinas. Ele implementa facilidades de internetwork e +transférent le courrier d'une machine à l'autre. Sendmail implémente +une facilité générale de routage de courrier entre les réseaux, permet +l'"aliasing" et le "forwarding", un routage automatique sur les +passerelles du réseau, et une configuration flexible. + +%description -l ko.UTF-8 +Sendamil은 매우 널리 사용되는 Mail 전송 프로그램이다(MTA). Mail 전송 +프로그램들(MTA)은 어떠한 machine에서 다른 machine으로 메일을 보내며 +Sendmail은 e-mail을 읽기위해 사용하는 client program은 아니다. +Sendamil은 원하는 곳으로 Internet이나 Network를 통해 e-mail을 보내는 +역할을 하는 backgrond에서 작업을 하는 프로그램이다. + +%description -l pl.UTF-8 +Sendmail jest programem umożliwiającym wymianę poczty elektronicznej +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 pt_BR.UTF-8 +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 ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÓÔÁÎÄÁÒÔÎÙÅ ÓÒÅÄÓÔ×Á -ÍÅÖÓÅÔÅ×ÏÊ ÍÁÒÛÒÕÔÉÚÁÃÉÉ ÐÏÞÔÙ, 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, Á×ÔÏÍÁÔÉÞÎÕ ÍÁÒÛÒÕÔÉÚÁæÀ -ÄÌÑ ÍÅÒÅÖÅ×ÉÈ ÛÌÀÚ¦× ÔÁ ÇÎÕÞËÉÊ ÍÅÈÁΦÚÍ ÍÁÒÛÒÕÔÉÚÁæ§. +endereços ( forwarding ), roteamento automático para gateways da rede +e configuração flexível. + +%description -l ru.UTF-8 +Sendmail - это Mail Transport Agent, программа пересылающая почту с +машины на машину. Sendmail предоставляет стандартные средства +межсетевой маршрутизации почты, aliasing, forwarding, автоматическую +маршрутизацию для сетевых шлюзов и гибкий механизм конфигурации. + +%description -l tr.UTF-8 +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.UTF-8 +Sendmail - це Mail Transport Agent, програма що пересилає пошту з +машини на машину. Sendmail надає стандартні засоби міжмережевої +маршрутизації пошти, aliasing, forwarding, автоматичну маршрутизацію +для мережевих шлюзів та гнучкий механізм маршрутизації. + +%package -n libmilter-devel +Summary: Header files and static libmilter library +Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libmilter +Group: Development/Libraries +Provides: sendmail-devel +Obsoletes: sendmail-devel + +%description -n libmilter-devel +Header files and static libmilter library. + +%description -n libmilter-devel -l pl.UTF-8 +Pliki nagłówkowe i statyczna biblioteka libmilter. %prep %setup -q @@ -167,16 +186,27 @@ sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc install %{SOURCE7} config.m4 -# Ac-specific hack - ac-i386 builder has not fully operational shm -%ifarch i386 -%{__perl} -pi -e 's/^(smtest.*t-shm)/dnl $1/' libsm/Makefile.m4 +# Ac-specific hack: +# It's problem with _simultanous_ building when builders are on the same +# machine. These are anonymous SHM tests (AFAIR) which must fail when called +# simultanously... +# +# send on builders requests only for some arch - it won't fail. +#- blues +%ifarch i386 i586 athlon +%{__sed} -i -e 's/^\(smtest.*t-shm\)/dnl \1/' libsm/Makefile.m4 +%{__sed} -i -e 's/^\(smtest.*t-sem\)/dnl \1/' libsm/Makefile.m4 %endif %build echo "define(\`confCC', \`%{__cc}')" >> config.m4 +%ifarch sparc sparc64 +echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DSM_CONF_SEM=0 -DNETINET6')" >> config.m4 +%else echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4 +%endif echo "APPENDDEF(\`confINCDIRS', \`-I/usr/include/sasl')" >> config.m4 -echo "define(\`confLIBSEARCHPATH', \`/%{_lib} /usr/%{_lib}')" >> config.m4 +echo "define(\`confLIBSEARCHPATH', \`/%{_lib} %{_prefix}/%{_lib}')" >> config.m4 echo "define(\`confLIBSEARCH', \`db resolv')" >> config.m4 %if 0%{!?debug:1} echo "define(\`confLDOPTS', \`-s')" >> config.m4 @@ -200,32 +230,44 @@ echo "APPENDDEF(\`confENVDEF', \`-D_FFR_SMTP_SSL')" >> config.m4 echo "APPENDDEF(\`confENVDEF', \`-DMILTER')" >> config.m4 -cd sendmail && sh Build -f ../config.m4 -cd ../mailstats && sh Build -f ../config.m4 -cd ../rmail && sh Build -f ../config.m4 -cd ../makemap && sh Build -f ../config.m4 -cd ../praliases && sh Build -f ../config.m4 -cd ../smrsh && sh Build -f ../config.m4 +%ifarch sparc +%define Build sparc32 sh Build +%else +%define Build sh Build +%endif + +cd sendmail && %{Build} -f ../config.m4 +cd ../mailstats && %{Build} -f ../config.m4 +cd ../rmail && %{Build} -f ../config.m4 +cd ../makemap && %{Build} -f ../config.m4 +cd ../praliases && %{Build} -f ../config.m4 +cd ../smrsh && %{Build} -f ../config.m4 +cd ../libmilter && %{Build} -f ../config.m4 cd ../cf/cf m4 pld.mc > pld.cf %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,sasl,smrsh}} \ - $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_libdir} \ - $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \ - $RPM_BUILD_ROOT/var/log $RPM_BUILD_ROOT/var/spool/mqueue \ - $RPM_BUILD_ROOT%{_libdir}/sendmail-cf \ - $RPM_BUILD_ROOT/etc/pam.d \ - -OBJDIR=obj.$(uname -s).$(uname -r).$(arch) +install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \ + $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,monit,sysconfig,sasl,smrsh,security} \ + $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_prefix}/lib} \ + $RPM_BUILD_ROOT{%{_datadir}/sendmail-cf,%{_libdir}} \ + $RPM_BUILD_ROOT/var/{log,spool/mqueue} \ + $RPM_BUILD_ROOT{%{_sysconfdir},%{_includedir}} + +OBJDIR=obj.$(uname -s).$(uname -r).$(\ +%ifarch sparc +sparc32 \ +%endif +uname -m) IDNU=`id -nu` IDNG=`id -ng` 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" + BINOWN=$IDNU BINGRP=$IDNG LIBOWN=$IDNU LIBGRP=$IDNG INCOWN=$IDNU INCGRP=$IDNG" + %{__make} -C $OBJDIR/sendmail install \ $SMINSTOPT %{__make} -C $OBJDIR/mailstats install \ @@ -238,18 +280,21 @@ SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \ $SMINSTOPT %{__make} -C $OBJDIR/smrsh install \ $SMINSTOPT +%{__make} -C $OBJDIR/libmilter install \ + $SMINSTOPT \ + LIBDIR=%{_libdir} ln -sf %{_sbindir}/makemap $RPM_BUILD_ROOT%{_bindir}/makemap # install the cf files cd cf rm -f cf/{Build,Makefile} feature/*~ -cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf +cp -a * $RPM_BUILD_ROOT%{_datadir}/sendmail-cf cd - # sendmail.{cf,mc} install cf/cf/pld.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf -sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} \ +sed -e 's|@@PATH@@|%{_datadir}/sendmail-cf|' < %{SOURCE6} \ > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc %if %{with pgsql} @@ -261,15 +306,16 @@ 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 +#"vim ruuls -ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail +ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_prefix}/lib/sendmail # dangling symlinks -for f in hoststat mailq newaliases purgestat ; do - ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f} +for f in hoststat mailq newaliases purgestat; do + ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/${f} done -for map in virtusertable access domaintable mailertable ; do +for map in virtusertable access domaintable mailertable; do touch $RPM_BUILD_ROOT%{_sysconfdir}/${map} $RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \ $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map} @@ -288,6 +334,9 @@ install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/access install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mailertable install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/virtusertable install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable +install %{SOURCE14} $RPM_BUILD_ROOT/etc/monit/ + +touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp mv -f smrsh/README README.smrsh mv -f cf/README README.cf @@ -295,26 +344,16 @@ mv -f doc/op/op.me . bzip2 -dc %{SOURCE4} | tar xf - +# for perl-Sendmail-Milter +install $OBJDIR/libsm/libsm.a $OBJDIR/libsmutil/libsmutil.a \ + $RPM_BUILD_ROOT%{_libdir} + %clean rm -rf $RPM_BUILD_ROOT %pre -if [ -n "`/usr/bin/getgid smmsp`" ]; then - if [ "`/usr/bin/getgid smmsp`" != "25" ]; then - echo "Error: group smmsp doesn't have gid=25. Correct this before installing sendmail." 1>&2 - exit 1 - fi -else - /usr/sbin/groupadd -g 25 -r -f smmsp -fi -if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then - if [ "`/bin/id -u smmsp`" != "25" ]; then - echo "Error: user smmsp doesn't have uid=25. Correct this before installing sendmail." 1>&2 - 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 -fi +%groupadd -g 25 smmsp +%useradd -u 25 -d /var/spool/clientqueue -s /bin/false -c "Sendmail Message Submission Program" -g smmsp smmsp %post umask 022 @@ -358,24 +397,18 @@ fi } > /dev/null 2>&1 /sbin/chkconfig --add sendmail -if [ -f /var/lock/subsys/sendmail ]; then - /etc/rc.d/init.d/sendmail restart >&2 -else - echo "Run \"/etc/rc.d/init.d/sendmail start\" to start sendmail daemon." >&2 -fi +%service sendmail restart "sendmail daemon" %preun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/sendmail ]; then - /etc/rc.d/init.d/sendmail stop >&2 - fi + %service sendmail stop /sbin/chkconfig --del sendmail fi %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 @@ -396,7 +429,7 @@ fi %attr(755,root,root) %{_bindir}/newaliases %attr(755,root,root) %{_bindir}/mailq %attr(755,root,root) %{_sbindir}/smrsh -%{_libdir}/sendmail +%{_prefix}/lib/sendmail %{_mandir}/man1/mailq.1* %{_mandir}/man1/newaliases.1* @@ -411,41 +444,50 @@ fi %dir /etc/smrsh %dir %{_sysconfdir} /var/log/statistics -%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 +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.cf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.mc +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.cf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.mc +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local-host-names +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases %{?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 %config %{_sysconfdir}/Makefile -%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/access %ghost %{_sysconfdir}/access.db -%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/domaintable +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/domaintable %ghost %{_sysconfdir}/domaintable.db -%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mailertable +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailertable %ghost %{_sysconfdir}/mailertable.db -%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/virtusertable +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/virtusertable %ghost %{_sysconfdir}/virtusertable.db %config(noreplace) %{_sysconfdir}/helpfile %attr(754,root,root) /etc/rc.d/init.d/sendmail -%config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sendmail -%config(noreplace) %verify(not md5 size mtime) /etc/sasl/Sendmail.conf -%config(noreplace) %verify(not md5 size mtime) /etc/pam.d/smtp - -%dir %{_libdir}/sendmail-cf -%dir %{_libdir}/sendmail-cf/cf -%{_libdir}/sendmail-cf/cf/pld.mc -%{_libdir}/sendmail-cf/feature -%{_libdir}/sendmail-cf/m4 -%{_libdir}/sendmail-cf/mailer -%dir %{_libdir}/sendmail-cf/ostype -%{_libdir}/sendmail-cf/ostype/linux.m4 -%dir %{_libdir}/sendmail-cf/sh -%{_libdir}/sendmail-cf/sh/makeinfo.sh -%{_libdir}/sendmail-cf/siteconfig +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sendmail +%config(noreplace) %verify(not md5 mtime size) /etc/sasl/Sendmail.conf +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp +%config(noreplace) %verify(not md5 mtime size) /etc/monit/*.monitrc + +%dir %{_datadir}/sendmail-cf +%dir %{_datadir}/sendmail-cf/cf +%{_datadir}/sendmail-cf/cf/pld.mc +%{_datadir}/sendmail-cf/feature +%{_datadir}/sendmail-cf/m4 +%{_datadir}/sendmail-cf/mailer +%dir %{_datadir}/sendmail-cf/ostype +%{_datadir}/sendmail-cf/ostype/linux.m4 +%dir %{_datadir}/sendmail-cf/sh +%{_datadir}/sendmail-cf/sh/makeinfo.sh +%{_datadir}/sendmail-cf/siteconfig + +%files -n libmilter-devel +%defattr(644,root,root,755) +%{_libdir}/libmilter.a +%{_libdir}/libsm.a +%{_libdir}/libsmutil.a +%{_includedir}/libmilter