]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- release 4.
[packages/sendmail.git] / sendmail.spec
index 08401dc0c9545e3af77b8c54b39c352ab81d2489..38fd86ca52d20cf9beecdf93a7f9c5a94cb3b103 100644 (file)
@@ -12,22 +12,23 @@ Summary(tr):        Elektronik posta hizmetleri sunucusu
 Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
 Version:       8.12.3
-Release:       3
+Release:       4
 License:       BSD
 Group:         Networking/Daemons
 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
+Source2:       %{name}.sysconfig
 Source3:       %{name}.aliases
-Source4:       %{name}.sysconfig
+# From http://doc.phpauction.org/sendmail/examples/
+Source4:       %{name}-examples.tar.bz2
 Source5:       %{name}-etc-mail-Makefile
 Source6:       %{name}.mc
 Source7:       %{name}-config.m4
 Source8:       %{name}.sasl
-Source9:       %{name}-access-sample
-Source10:      %{name}-mailertable-sample
-Source11:      %{name}-virtusertable-sample
-Source12:      %{name}-domaintable-sample
+Source9:       %{name}.access
+Source10:      %{name}.mailertable
+Source11:      %{name}.virtusertable
+Source12:      %{name}.domaintable
 Source13:      %{name}-smtp.pamd
 Patch0:                %{name}-makemapman.patch
 Patch1:                %{name}-smrsh-paths.patch
@@ -123,9 +124,6 @@ Sendmail - 
 %patch5 -p1
 %patch6 -p1
 
-# seems to be obsoleted...
-#tar xf %{SOURCE2} -C cf
-
 sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc
 
 install %{SOURCE7} config.m4
@@ -203,17 +201,6 @@ for f in hoststat mailq newaliases purgestat ; do
        ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
 done
 
-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
-# package.
-#
-# by default we allow relaying from localhost...
-localhost.localdomain          RELAY
-localhost                      RELAY
-127.0.0.1                      RELAY
-EOF
 
 for map in virtusertable access domaintable mailertable ; do
        touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
@@ -225,21 +212,22 @@ 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 %{SOURCE2} $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
 install %{SOURCE13} $RPM_BUILD_ROOT/etc/pam.d/smtp
-
-cp -f %{SOURCE9} ./access.sample
-cp -f %{SOURCE10} ./mailertable.sample
-cp -f %{SOURCE11} ./virtusertable.sample
-cp -f %{SOURCE12} ./domaintable.sample
+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
 
 mv -f smrsh/README README.smrsh
 mv -f cf/README README.cf
 mv -f doc/op/op.me .
 
+bzip2 -dc %{SOURCE4} | tar xf -
+
 gzip -9nf FAQ KNOWNBUGS README* op.me RELEASE_NOTES
 
 %clean
@@ -330,7 +318,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz *.sample
+%doc *.gz examples/
 %attr(755,root,root) %{_sbindir}/mailstats
 %attr(755,root,root) %{_sbindir}/praliases
 %attr(755,root,root) %{_bindir}/hoststat
@@ -362,10 +350,10 @@ 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
-%attr(0644,root,mail) %ghost %{_sysconfdir}/aliases.db
-%attr(0770,root,smmsp) %dir /var/spool/clientmqueue
-%attr(0750,root,mail) %dir /var/spool/mqueue
-%attr(0755,root,root) %dir /etc/pam.d
+%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(755,root,root) %dir /etc/pam.d
 
 %config %{_sysconfdir}/Makefile
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/access
This page took 0.034656 seconds and 4 git commands to generate.