]> 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 fdfa5aeb9e78282d8f5a76c1c2e801f482d14009..1a82e4538e5888b724b4e99f2befc645354742cd 100644 (file)
@@ -1,16 +1,20 @@
+#
+# 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 -- aplikacja do obs³ugi poczty elektronicznej
+Summary(pl):   Sendmail - serwer poczty elektronicznej
+Summary(ru):   ðÏÞÔÏ×ÙÊ ÔÒÁÎÓÐÏÒÔÎÙÊ ÁÇÅÎÔ sendmail
 Summary(tr):   Elektronik posta hizmetleri sunucusu
+Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
-Version:       8.11.2
-Release:       1
+Version:       8.12.3
+Release:       2
 License:       BSD
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
-Provides:      smtpdaemon
 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
@@ -19,29 +23,43 @@ Source4:    %{name}.sysconfig
 Source5:       %{name}-etc-mail-Makefile
 Source6:       %{name}.mc
 Source7:       %{name}-config.m4
-Patch0:                %{name}-redhat.patch
-Patch1:                %{name}-makemapman.patch
-Patch2:                %{name}-smrsh-paths.patch
-Patch3:                %{name}-rmail.patch
-Patch4:                %{name}-manpath.patch
-Patch5:                %{name}-m4path.patch
-Patch6:                %{name}-dtelnet.patch
-Patch7:                %{name}-pld.mc.patch
-Patch8:                %{name}-redirect.patch
-Patch9:                %{name}-ipv6-glibc-2.2.patch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Source8:       %{name}.sasl
+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: gdbm-devel
-BuildRequires: pam-devel
-Prereq:                /sbin/chkconfig
+%{!?_without_ldap:BuildRequires:       openldap-devel}
+%{!?_without_tls:BuildRequires:        openssl-devel}
+Requires:      m4
+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:     zmailer
-Obsoletes:     qmail
-Obsoletes:     smail
 Obsoletes:     exim
+Obsoletes:     masqmail
+Obsoletes:     omta
 Obsoletes:     postfix
+Obsoletes:     qmail
+Obsoletes:     sendmail-cf
+Obsoletes:     sendmail-doc
+Obsoletes:     smail
+Obsoletes:     zmailer
+
+%define                _sysconfdir     /etc/mail
 
 %description
 The Sendmail program is a very widely used Mail Transport Agent (MTA).
@@ -66,106 +84,29 @@ 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.
 
-%package cf
-Summary:       The files needed to reconfigure Sendmail
-Summary(de):   sendmail-Konfigurationsdateien und m4-Makros 
-Summary(fr):   fichiers de configuration sendmail et macros m4
-Summary(pl):   Pliki potrzebne do rekonfiguracji Sendmaila
-Summary(tr):   sendmail ayar dosyalarý ve makrolarý
-Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
-Requires:      %{name} = %{version}
-Requires:      m4
-
-%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.
-
-%description -l de cf
-Dieses Paket enthält alle Konfigurationsdateien, die zum Erzeugen der
-Sendmail.cf-Datei erforderlich sind, die mit dem Basis- Sendmail-Paket
-geliefert wird. Sie werden darauf nicht verzichten wollen, wenn Sie
-Ihre Sendmail-cf-Datei neu konfigurieren und bauen wollen. Die
-Standard-Sendmail.cf.-Datei ist z.B. nicht für UUCP konfiguriert. Wenn
-Sie also Post über UUCP versenden und empfangen wollen, brauchen Sie
-es für eine Neukonfiguration.
-
-%description -l fr cf
-Ce package contient tous les fichiers de configuration utilisés pour
-générer le fichier sendmail.cf distribué avec le package de base
-sendmail. Vous n'aurez besoin de ce package que pour reconfigurer et
-reconstruire votre fichier sendmail.cf. Par exemple Le sendmail.cf par
-défaut n'est pas configuré pour UUCP. Si vous devez recevoir des mails
-avec UUCP, vous aurez besoin de ce package pour reconfigurer sendmail.
-
-%description -l pl cf
-Ten pakiet zawiera pliki konfiguracyjne, których bêdziesz potrzebowa³,
-by wygenerowaæ plik sendmail.cf, zawarty w pakiecie sendmail. Bêdziesz
-potrzebowa³ pakietu sendmail-cf je¿eli potrzebujesz zrekonfigurowaæ i
-przebudowaæ plik sendmail.cf. Na przyk³ad, domy¶lny sendmail.cf nie
-jest skonfigurowany dla UUCP. Je¿eli kiedy¶ bêdziesz potrzebowa³
-wysy³aæ i odbieraæ porztê po UUCP, bêdziesz musia³ zainstalowaæ pakiet
-sendmail-cf, który pomo¿e ci zrekonfigurowaæ Sendmaila.
-
-%description -l tr cf
-Bu paket, sendmail paketi ile daðýtýlan sendmail.cf dosyasýný
-oluþturmak için kullanýlan tüm ayar dosyalarýný içerir. sendmail.cf
-dosyasýný baþtan ayarlayýp kurmak için kullanýlýr.
-
-%package doc
-Summary:       Documentation about the Sendmail Mail Transport Agent program
-Summary(de):   Sendmail-Dokumentation 
-Summary(fr):   Documentation de sendmail
-Summary(pl):   Dokumentacja do Sendmaila
-Summary(tr):   sendmail belgeleri
-Group:         Documentation
-Group(de):     Dokumentation
-Group(pl):     Dokumentacja
-Requires:      %{name} = %{version}
-
-%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.
-
-%description -l de doc
-Dieses Paket beinhaltet Release-Notes, die häufigsten Fragen und
-Antworten (FAQ) zu Sendmail sowie ein paar Artikel über Sendmail. Die
-letzteren sind sowohl in PostScript als auch in troff verfügbar.
-
-%description -l fr doc
-Paquetage contenant les remarques sur la version, la FAQ sendmail et
-quelques articles sur sendmail. Ces articles sont au format PostScript
-et troff.
-
-%description -l pl doc
-Ten pakiet zawiera dokumentacjê do programu Sendmail Mail Transport
-Agent (MTA). Dokumentacja zwawiera informacje o zmianach w bie¿±cej
-wersji i FAQ - najczêsciej zadawane pytania. Dokumentacja dostêpna
-jest w formacie PostScript(TM) oraz troff.
-
-%description -l tr doc
-Bu paket, sendmail ile ilgili çokça sorulan sorularý ve sendmail
-hakkýnda yazýlmýþ makalelerin bir kýsmýný içermektedir.
+%description -l uk
+Sendmail - ÃÅ Mail Transport Agent, ÐÒÏÇÒÁÍÁ ÝÏ ÐÅÒÅÓÉÌÁ¤ ÐÏÛÔÕ Ú
+ÍÁÛÉÎÉ ÎÁ ÍÁÛÉÎÕ. Sendmail ÎÁÄÁ¤ ÓÔÁÎÄÁÒÔΦ ÚÁÓÏÂɠͦÖÍÅÒÅÖÅ×ϧ
+ÍÁÒÛÒÕÔÉÚÁ槠ÐÏÛÔÉ, aliasing, forwarding, Á×ÔÏÍÁÔÉÞÎÕ ÍÁÒÛÒÕÔÉÚÁæÀ
+ÄÌÑ ÍÅÒÅÖÅ×ÉÈ ÛÌÀڦנÔÁ ÇÎÕÞËÉÊ ÍÅÈÁΦÚÍ ÍÁÒÛÒÕÔÉÚÁæ§.
 
 %prep
 %setup -q
@@ -173,25 +114,31 @@ hakk
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p0
+%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
-
-RPM_OPT_FLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS} \
-       -DUSE_VENDOR_CF_PATH=1 -DNETINET6 -D_FFR_TESTMODE_DROP_PRIVS"
-export RPM_OPT_FLAGS
+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
+%if %{?_without_ldap:0}%{!?_without_ldap:1}
+echo "APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')" >> config.m4
+echo "APPENDDEF(\`confLIBS', \`-lldap -llber')" >> config.m4
+%endif
+%if %{?_without_tls:0}%{!?_without_tls:1}
+echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
+echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
+%endif
 
 cd sendmail    && sh Build -f ../config.m4
 cd ../mailstats        && sh Build -f ../config.m4
@@ -200,23 +147,24 @@ 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
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/{mail,smrsh}
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/etc/sysconfig
-install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_libdir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
-install -d $RPM_BUILD_ROOT/var/log $RPM_BUILD_ROOT/var/spool/mqueue
-install -d $RPM_BUILD_ROOT%{_libdir}/sendmail-cf
+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)
 
 IDNU=`id -nu`
 IDNG=`id -ng`
 SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \
-       UBINOWN=$IDNU UBINGRP=$IDNG MANOWN=$IDNU MANGRP=$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
@@ -225,32 +173,31 @@ SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \
 ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
 %{__make} $SMINSTOPT install -C $OBJDIR/smrsh
 
-# install docs by hand
-install -d $RPM_BUILD_ROOT%{_docdir}/sendmail
-cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_docdir}/sendmail
-cp smrsh/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.smrsh
-cp 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 cf/cf/redhat.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
+# sendmail.{cf,mc}
+install cf/cf/pld.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
 sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} \
-       > $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc
+       > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc
+
+# submit.mc (submit.cf is installed automatically)
+install cf/cf/submit.mc $RPM_BUILD_ROOT%{_sysconfdir}
+
 echo "# local-host-names - include all aliases for your machine here." \
-       > $RPM_BUILD_ROOT%{_sysconfdir}/mail/local-host-names
+       > $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
 
 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}/mail/access
+cat <<EOF > $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
@@ -263,22 +210,47 @@ localhost                 RELAY
 EOF
 
 for map in virtusertable access domaintable mailertable ; do
-  touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}
-  $RPM_BUILD_ROOT%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf hash \
-       $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}
+       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}/mail/aliases
-$RPM_BUILD_ROOT%{_bindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf hash \
-       $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases.db < %{SOURCE3}
+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 %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
-install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mail/Makefile
+install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/Makefile
+install %{SOURCE8} $RPM_BUILD_ROOT/etc/sasl/Sendmail.conf
+
+mv -f smrsh/README README.smrsh
+mv -f cf/README README.cf
+mv -f doc/op/op.me .
+
+gzip -9nf FAQ KNOWNBUGS README* op.me RELEASE_NOTES
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%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
+               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 "Warning: user smmsp haven't 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
+
 %post
 #
 # Convert old format to new
@@ -287,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 /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 /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
+               mv -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
        fi
 done
 
@@ -302,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 /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,12 +306,19 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del sendmail
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       /usr/sbin/userdel smmsp 2>/dev/null
+       /usr/sbin/groupdel smmsp 2>/dev/null
+fi
+
 # removal of compatibility links
 %triggerpostun -- sendmail < 8.10.1
 /sbin/chkconfig --add sendmail
 
 %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
@@ -347,7 +326,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(2755,root,smmsp) %{_sbindir}/sendmail
 %attr(755,root,root) %{_bindir}/newaliases
 %attr(755,root,root) %{_bindir}/mailq
 %attr(755,root,root) %{_sbindir}/smrsh
@@ -362,35 +341,42 @@ 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 %{_sysconfdir}/mail/sendmail.cf
-%config %{_sysconfdir}/mail/sendmail.mc
-%config(noreplace) %{_sysconfdir}/mail/local-host-names
-%config(noreplace) %{_sysconfdir}/mail/aliases
-%attr(0644,root,mail) %ghost %{_sysconfdir}/mail/aliases.db
-%attr(0755,root,mail) %dir /var/spool/mqueue
-%dir %{_sysconfdir}/smrsh
-%dir %{_sysconfdir}/mail
-
-%config %{_sysconfdir}/mail/Makefile
-%ghost %{_sysconfdir}/mail/virtusertable.db
-%config(noreplace) %{_sysconfdir}/mail/virtusertable
-%ghost %{_sysconfdir}/mail/access.db
-%config(noreplace) %{_sysconfdir}/mail/access
-%ghost %{_sysconfdir}/mail/domaintable.db
-%config(noreplace) %{_sysconfdir}/mail/domaintable
-%ghost %{_sysconfdir}/mail/mailertable.db
-%config(noreplace) %{_sysconfdir}/mail/mailertable
-%config(noreplace) %{_sysconfdir}/mail/helpfile
+%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,smmsp) %dir /var/spool/clientmqueue
+%attr(0750,root,mail) %dir /var/spool/mqueue
+
+%config %{_sysconfdir}/Makefile
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access
+%ghost %{_sysconfdir}/access.db
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/domaintable
+%ghost %{_sysconfdir}/domaintable.db
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mailertable
+%ghost %{_sysconfdir}/mailertable.db
+%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
-
-%files cf
-%defattr(644,root,root,755)
-%{_libdir}/sendmail-cf
-
-%files doc
-%defattr(644,root,root,755)
-%{_docdir}/sendmail
+%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
+%{_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
This page took 0.060882 seconds and 4 git commands to generate.