X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=sendmail.spec;h=6e9435fed1479c83a0226bacf8ae907b0f3f663f;hb=a20d5b0becea468b468f170d00e1828e6856ebcd;hp=a17fbe977650e58f236ef5ac58d4c4393ece53f7;hpb=ab79237487828989372f993083411231087f9ca9;p=packages%2Fsendmail.git diff --git a/sendmail.spec b/sendmail.spec index a17fbe9..6e9435f 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -1,35 +1,60 @@ -Summary: A widely used Mail Transport Agent (MTA). -Summary(pl): Sendmail -- aplikacja do obs³ugi poczty elektronicznej +# +# Conditional build: +# _without_ldap - without LDAP +# +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(tr): Elektronik posta hizmetleri sunucusu Name: sendmail -Version: 8.10.1 +Version: 8.12.0 Release: 1 License: BSD -Group: System Environment/Daemons -###### Unknown group! +Group: Networking/Daemons +Group(de): Netzwerkwesen/Server Group(pl): Sieciowe/Serwery Provides: smtpdaemon -Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/%{name}.%{version}.tar.gz -Source1: sendmail.init -Source2: http://www.informatik.uni-kiel.de/%7Eca/email/rules/check.tar +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 Source3: aliases -Source4: sendmail.sysconfig -Source5: sendmail-8.9.3-etc-mail-Makefile -Source6: sendmail-redhat.mc -Patch0: sendmail-8.10.0-redhat.patch -Patch1: sendmail-8.10.0-makemapman.patch -Patch2: sendmail-8.10.0-smrsh-paths.patch -Patch3: sendmail-8.8.7-rmail.patch -#Patch4: sendmail-8.10.0-aliasesDoS.patch -#Patch5: sendmail-8.10.0-movefiles.patch -#Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Source4: %{name}.sysconfig +Source5: %{name}-etc-mail-Makefile +Source6: %{name}.mc +Source7: %{name}-config.m4 +Source8: %{name}.sasl +Patch0: %{name}-makefile.patch +#Patch0: %{name}-redhat.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) -Prereq: /sbin/chkconfig +BuildRequires: cyrus-sasl-devel +BuildRequires: db3-devel +%{!?_without_ldap:BuildRequires: openldap-devel} +BuildRequires: pam-devel +Requires: m4 +Prereq: chkconfig Provides: smtpdaemon Obsoletes: smtpdaemon -Obsoletes: zmail +Obsoletes: exim +Obsoletes: masqmail +Obsoletes: postfix Obsoletes: qmail +Obsoletes: sendmail-cf +Obsoletes: sendmail-doc Obsoletes: smail +Obsoletes: zmailer +Obsoletes: omta +%define _sysconfdir /etc/mail %description The Sendmail program is a very widely used Mail Transport Agent (MTA). @@ -38,10 +63,19 @@ 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. -If you ever need to reconfigure Sendmail, you'll also need to have the -sendmail.cf package installed. If you need documentation on Sendmail, -you can install the sendmail-doc package. +%description -l de +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 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 +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 pl Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej @@ -52,159 +86,104 @@ 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. -Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet -oraz 6bone to zainstaluj ten pakiet - -%package doc -Summary: Documentation about the Sendmail Mail Transport Agent program. -Summary(pl): Dokumentacja do Sendmaila. -Group(pl): Serwery -Group: Documentation - -%description doc -The sendmail-doc package contains documentation about the Sendmail -Mail Transport Agent (MTA) program, including release notes, the -Sendmail FAQ and a few papers written about Sendmail. The papers are -provided in PostScript(TM) and troff formats. - -Install the sendmail-doc package if you need documentation about -Sendmail. - -%description -l pl -Ten pakiet zawiera dokumentacjê do programu Sendmail Mail Transport -Agent (MTA). Dokumentacja zwawiera informacje o zmianach w bie¿±cej -wersji, FAQ - najczêsciej zadawane pytania. Dokumentacja dostêpna jest -w formacie PostScript(TM) oraz troff. Je¿eli potrzebujesz dokumntacji -- zainstaluj ten pakiet. - -%package cf -Summary: The files needed to reconfigure Sendmail. -Summary(pl): Pliki konfiguracyjne oraz makra m4 dla sendmaila -Group: System Environment/Daemons -Group(pl): Serwery -Requires: %{name} = %{version} - - -%description cf -This package includes the configuration files which you'd need to -generate the sendmail.cf file distributed with the sendmail package. -You'll need the sendmail-cf package if you ever need to reconfigure -and rebuild your sendmail.cf file. For example, the default -sendmail.cf file is not configured for UUCP. If someday you needed to -send and receive mail over UUCP, you'd need to install the sendmail-cf -package to help you reconfigure Sendmail. - -Install the sendmail-cf package if you need to reconfigure your -sendmail.cf file. - -%description -l pl cf -Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene- -rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym. -Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ -konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu- -racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy- -sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu. +%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. %prep %setup -q -%patch0 -p1 -b .redhat -%patch1 -p1 -b .makemapman -%patch2 -p1 -b .smrsh -%patch3 -p1 -b .rmail -#%patch4 -p1 -b .aliases -#%patch5 -p1 -b .movestuff - -# XXX REVERTING -#tar xf $RPM_SOURCE_DIR/check.tar -C cf -#chown root.root cf/hack/* cf/README.check - +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%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 -%build -export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_VENDOR_CF_PATH=1" +install %{SOURCE7} config.m4 -cd sendmail -sh Build -f ../redhat.config.m4 -cd .. - -cd mailstats -sh Build -f ../redhat.config.m4 -cd .. - -cd rmail -sh Build -f ../redhat.config.m4 -cd .. - -cd makemap -sh Build -f ../redhat.config.m4 -cd .. - -cd praliases -sh Build -f ../redhat.config.m4 -cd .. - -cd smrsh -sh Build -f ../redhat.config.m4 -cd .. +%build -cd cf/cf -m4 redhat.mc > redhat.cf +%if %{?debug:0}%{!?debug:1} +echo "define(\`confLDOPTS\', \`-s\')" >> config.m4 +%endif +%if %{?_without_ldap:0}%{!?_without_ldap:1} +echo "APPENDDEF(\`confMAPDEF\', \`-DLDAPMAP\')" >> config.m4 +echo "APPENDDEF(\`confLIBS\', \`-lldap -llber\')" >> config.m4 +%endif + +RPM_OPT_FLAGS="%{rpmcflags} \ + -DUSE_VENDOR_CF_PATH=1 -DNETINET6 -D_FFR_TESTMODE_DROP_PRIVS" +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 +#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 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT - -cd $RPM_BUILD_ROOT -install -d etc/rc.d/init.d etc/rc.d/rc{0,1,2,3,4,5,6}.d etc/sysconfig -install -d usr/bin usr/lib usr/man/man{1,5,8} usr/sbin var/log var/spool usr/lib/sendmail-cf -cd - +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 \ OBJDIR=obj.$(uname -s).$(uname -r).$(arch) -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - install -C $OBJDIR/sendmail -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - install -C $OBJDIR/mailstats -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - install -C $OBJDIR/praliases -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - force-install -C $OBJDIR/rmail -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - install -C $OBJDIR/makemap +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 \ + 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 DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ - install -C $OBJDIR/smrsh +%{__make} $SMINSTOPT install -C $OBJDIR/smrsh # install docs by hand -install -d $RPM_BUILD_ROOT%{_prefix}/doc/sendmail -cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_prefix}/doc/sendmail -cp smrsh/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.smrsh -cp cf/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.cf +install -d $RPM_BUILD_ROOT%{_docdir}/sendmail +cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_docdir}/sendmail +cp -f smrsh/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.smrsh +cp -f cf/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.cf # install the cf files cd cf +rm -f cf/{Build,Makefile} feature/*~ cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf cd - -install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail - - install cf/cf/redhat.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf -sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc -echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT%{_sysconfdir}/mail/local-host-names +sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} \ + > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc +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 -install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue # dangling symlinks -for f in hoststat mailq newaliases purgestat - do - ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f} - done -install -d $RPM_BUILD_ROOT%{_sysconfdir}/smrsh +for f in hoststat mailq newaliases purgestat ; do + ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f} +done -cat < $RPM_BUILD_ROOT%{_sysconfdir}/mail/access +cat < $RPM_BUILD_ROOT%{_sysconfdir}/access # Check the %{_prefix}/doc/sendmail-%{version}/README.cf file for a description # of the format of this file. (search for access_db in that file) # The %{_prefix}/doc/sendmail-%{version}/README.cf is part of the sendmail-doc @@ -214,26 +193,26 @@ cat < $RPM_BUILD_ROOT%{_sysconfdir}/mail/access localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY - EOF -for map in virtusertable access domaintable mailertable - do -touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map} -makemap hash $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map} - done -install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases -makemap hash $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3} -install %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sendmail -install -m755 %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail +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%{_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%{_sysconfdir}/aliases.db < %{SOURCE3} -install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mail/Makefile +install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/sendmail +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail +install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/Makefile +install %{SOURCE8} $RPM_BUILD_ROOT/etc/sasl/Sendmail.conf -chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases} -chmod u+w $RPM_BUILD_ROOT%{_bindir}/rmail +mv -f $RPM_BUILD_ROOT/usr/share/doc/sendmail/{FAQ,KNOWNBUGS,LICENSE,README,README.cf,doc/op/op.me} . -strip $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases,sendmail} -strip $RPM_BUILD_ROOT%{_bindir}/rmail +gzip -9nf FAQ KNOWNBUGS README README.cf op.me RELEASE_NOTES %clean rm -rf $RPM_BUILD_ROOT @@ -243,47 +222,54 @@ rm -rf $RPM_BUILD_ROOT # Convert old format to new # 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 /etc/mail/deny /etc/mail/deny.rpmorig + cat /etc/mail/deny | \ + awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \ + {print $1" REJECT"}' >> /etc/mail/access + cp /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 /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig - fi + 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 /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig + fi done # # Oops, these files moved # 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 /etc/sendmail.cw /etc/sendmail.cw.rpmorig + cat /etc/sendmail.cw | \ + awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \ + { print $1 }' >> /etc/mail/local-host-names + cp /etc/sendmail.cw /etc/sendmail.cw.rpmorig fi # # Rebuild maps (next reboot will rebuild also) # { /usr/bin/newaliases - for map in virtusertable access domaintable mailertable - do - if [ -f /etc/mail/${map} ] ; then - /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map} - sleep 1 - fi - done + for map in virtusertable access domaintable mailertable; do + if [ -f /etc/mail/${map} ] ; then + /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map} + sleep 1 + fi + done } > /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 %preun -if [ $1 = 0 ]; then - /sbin/chkconfig --del sendmail +if [ "$1" = "0" ]; then + if [ -f /var/lock/subsys/sendmail ]; then + /etc/rc.d/init.d/sendmail stop >&2 + fi + /sbin/chkconfig --del sendmail fi # removal of compatibility links @@ -292,6 +278,7 @@ fi %files %defattr(644,root,root,755) +%doc *.gz %attr(755,root,root) %{_sbindir}/mailstats %attr(755,root,root) %{_sbindir}/praliases %attr(755,root,root) %{_bindir}/hoststat @@ -299,7 +286,7 @@ fi %attr(755,root,root) %{_bindir}/rmail %attr(755,root,root) %{_bindir}/makemap %attr(755,root,root) %{_sbindir}/makemap -%attr(755,root,root) %{_sbindir}/sendmail +%attr(6755,root,mail) %{_sbindir}/sendmail %attr(755,root,root) %{_bindir}/newaliases %attr(755,root,root) %{_bindir}/mailq %attr(755,root,root) %{_sbindir}/smrsh @@ -316,38 +303,38 @@ fi /var/log/statistics # XXX can't do noreplace here or new sendmail will not deliver. -%config %{_sysconfdir}/sendmail.cf -%attr(0644,root,root) %config %{_sysconfdir}/mail/sendmail.mc -%config(noreplace) %{_sysconfdir}/mail/local-host-names +%config(noreplace) %{_sysconfdir}/sendmail.cf +%config(noreplace) %{_sysconfdir}/sendmail.mc +%config(noreplace) %{_sysconfdir}/local-host-names %config(noreplace) %{_sysconfdir}/aliases %attr(0644,root,mail) %ghost %{_sysconfdir}/aliases.db -%attr(0755,root,mail) %dir /var/spool/mqueue -%dir %{_sysconfdir}/smrsh -%dir %{_sysconfdir}/mail - -%config %{_sysconfdir}/mail/Makefile -%attr(0644,root,root) %ghost %{_sysconfdir}/mail/virtusertable.db -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/virtusertable - -%attr(0644,root,root) %ghost %{_sysconfdir}/mail/access.db -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/access - -%attr(0644,root,root) %ghost %{_sysconfdir}/mail/domaintable.db -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/domaintable - -%attr(0644,root,root) %ghost %{_sysconfdir}/mail/mailertable.db -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/mailertable - -%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/helpfile - -%config /etc/sysconfig/sendmail - -%config /etc/rc.d/init.d/sendmail - -%files cf -%defattr(644,root,root,755) -%{_libdir}/sendmail-cf - -%files doc -%defattr(644,root,root,755) -%{_prefix}/doc/sendmail +%attr(0770,root,mail) %dir /var/spool/mqueue +%dir /etc/smrsh +%dir %{_sysconfdir} + +%config %{_sysconfdir}/Makefile +%ghost %{_sysconfdir}/virtusertable.db +%config(noreplace) %{_sysconfdir}/virtusertable +%ghost %{_sysconfdir}/access.db +%config(noreplace) %{_sysconfdir}/access +%ghost %{_sysconfdir}/domaintable.db +%config(noreplace) %{_sysconfdir}/domaintable +%ghost %{_sysconfdir}/mailertable.db +%config(noreplace) %{_sysconfdir}/mailertable +%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 + +%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