auto-import sendmail-8.11.6-14 from sendmail-8.11.6-14.src.rpm
This commit is contained in:
parent
ba33a54bac
commit
05fa9f4e85
@ -8,6 +8,9 @@ dnl
|
|||||||
include(`@@PATH@@/m4/cf.m4')
|
include(`@@PATH@@/m4/cf.m4')
|
||||||
VERSIONID(`linux setup for Red Hat Linux')dnl
|
VERSIONID(`linux setup for Red Hat Linux')dnl
|
||||||
OSTYPE(`linux')
|
OSTYPE(`linux')
|
||||||
|
dnl Uncomment and edit the following line if your mail needs to be sent out
|
||||||
|
dnl through an external mail server:
|
||||||
|
dnl define(`SMART_HOST',`smtp.your.provider')
|
||||||
define(`confDEF_USER_ID',``8:12'')dnl
|
define(`confDEF_USER_ID',``8:12'')dnl
|
||||||
undefine(`UUCP_RELAY')dnl
|
undefine(`UUCP_RELAY')dnl
|
||||||
undefine(`BITNET_RELAY')dnl
|
undefine(`BITNET_RELAY')dnl
|
||||||
|
@ -10,9 +10,6 @@ POSSIBLE += $(shell test -f userdb && echo userdb.db)
|
|||||||
|
|
||||||
all: ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
|
all: ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
|
||||||
|
|
||||||
virtusertable.db : virtusertable
|
|
||||||
@makemap -f hash $@ < $<
|
|
||||||
|
|
||||||
userdb.db : userdb
|
userdb.db : userdb
|
||||||
@makemap btree $@ < $<
|
@makemap btree $@ < $<
|
||||||
|
|
||||||
|
151
sendmail.spec
151
sendmail.spec
@ -2,8 +2,8 @@
|
|||||||
# If you want to build this on older Red Hat Linux releases, this defines
|
# If you want to build this on older Red Hat Linux releases, this defines
|
||||||
# the version number to build on. Supported should be 62 70 71 72 for
|
# the version number to build on. Supported should be 62 70 71 72 for
|
||||||
# Red Hat Linux 6.2 up to 7.2 and "100" for the current rawhide version.
|
# Red Hat Linux 6.2 up to 7.2 and "100" for the current rawhide version.
|
||||||
%define errata 72
|
%define errata 100
|
||||||
%define release 9
|
%define release 14
|
||||||
|
|
||||||
%if %{errata} <= 70
|
%if %{errata} <= 70
|
||||||
%define sendmailcf usr/lib/sendmail-cf
|
%define sendmailcf usr/lib/sendmail-cf
|
||||||
@ -17,9 +17,9 @@ Version: 8.11.6
|
|||||||
%if %{errata} == 100
|
%if %{errata} == 100
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
%else
|
%else
|
||||||
Release: %{release}.%{errata}.2
|
Release: %{release}.%{errata}
|
||||||
%endif
|
%endif
|
||||||
Copyright: BSD
|
License: BSD
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Provides: smtpdaemon
|
Provides: smtpdaemon
|
||||||
Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/sendmail.%{version}.tar.gz
|
Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/sendmail.%{version}.tar.gz
|
||||||
@ -35,6 +35,7 @@ Patch1: sendmail-8.11.0-redhat.patch2
|
|||||||
Patch2: sendmail-8.10.0-makemapman.patch
|
Patch2: sendmail-8.10.0-makemapman.patch
|
||||||
Patch3: sendmail-8.10.0-smrsh-paths.patch
|
Patch3: sendmail-8.10.0-smrsh-paths.patch
|
||||||
Patch4: sendmail-8.10.1-movefiles.patch
|
Patch4: sendmail-8.10.1-movefiles.patch
|
||||||
|
Patch5: sendmail-8.12.2-unix.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
%if %{errata} > 62
|
%if %{errata} > 62
|
||||||
@ -43,15 +44,20 @@ BuildRequires: cyrus-sasl
|
|||||||
%else
|
%else
|
||||||
BuildRequires: cyrus-sasl-devel
|
BuildRequires: cyrus-sasl-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{errata} == 100
|
|
||||||
BuildRequires: db4-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: db3-devel
|
BuildRequires: db3-devel
|
||||||
%endif
|
|
||||||
BuildRequires: openldap-devel tcp_wrappers
|
BuildRequires: openldap-devel tcp_wrappers
|
||||||
%endif
|
%endif
|
||||||
Prereq: /sbin/chkconfig /usr/sbin/useradd
|
%if %{errata} == 100
|
||||||
|
Prereq: /usr/sbin/alternatives
|
||||||
|
Provides: %{_sbindir}/sendmail %{_bindir}/mailq %{_bindir}/newaliases %{_bindir}/rmail %{_mandir}/man1/mailq.1.gz %{_mandir}/man1/newaliases.1.gz %{_mandir}/man5/aliases.5.gz
|
||||||
|
Prereq: chkconfig >= 1.3
|
||||||
|
%else
|
||||||
|
Prereq: /sbin/chkconfig
|
||||||
|
%endif
|
||||||
|
Prereq: /usr/sbin/useradd /bin/mktemp fileutils gawk sed sh-utils
|
||||||
|
%if %{errata} < 100
|
||||||
Conflicts: postfix exim
|
Conflicts: postfix exim
|
||||||
|
%endif
|
||||||
Requires: procmail
|
Requires: procmail
|
||||||
%if %{errata} > 62
|
%if %{errata} > 62
|
||||||
Requires: bash >= 2.0
|
Requires: bash >= 2.0
|
||||||
@ -106,35 +112,40 @@ your sendmail.cf file.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd libmilter
|
pushd libmilter
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
cd sendmail
|
#pushd libsmutil
|
||||||
sh Build -f ../redhat.config.m4
|
#sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
#popd
|
||||||
|
|
||||||
cd mailstats
|
pushd sendmail
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
cd rmail
|
pushd mailstats
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
cd makemap
|
pushd rmail
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
cd praliases
|
pushd praliases
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
cd smrsh
|
pushd smrsh
|
||||||
sh Build -f ../redhat.config.m4
|
sh Build -f ../redhat.config.m4
|
||||||
cd ..
|
popd
|
||||||
|
|
||||||
|
pushd makemap
|
||||||
|
sh Build -f ../redhat.config.m4
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -142,7 +153,7 @@ mkdir -p $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
cd $RPM_BUILD_ROOT
|
cd $RPM_BUILD_ROOT
|
||||||
mkdir -p etc/sysconfig $RPM_BUILD_ROOT%{initdir} etc/pam.d
|
mkdir -p etc/sysconfig $RPM_BUILD_ROOT%{initdir} etc/pam.d
|
||||||
mkdir -p usr/bin usr/include usr/lib .%{_mandir}/man{1,5,8} usr/sbin var/log
|
mkdir -p usr/bin usr/include/libmilter usr/lib .%{_mandir}/man{1,5,8} usr/sbin var/log
|
||||||
mkdir -p var/spool %{sendmailcf}
|
mkdir -p var/spool %{sendmailcf}
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
@ -167,10 +178,10 @@ make $XX INCOWN=`id -nu` INCGRP=`id -ng` LIBOWN=`id -nu` LIBGRP=`id -ng` \
|
|||||||
DOC=$RPM_BUILD_ROOT%{_docdir}/sendmail
|
DOC=$RPM_BUILD_ROOT%{_docdir}/sendmail
|
||||||
mkdir -p $DOC
|
mkdir -p $DOC
|
||||||
cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $DOC
|
cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $DOC
|
||||||
cp sendmail/README $DOC/README.sendmail
|
cp sendmail/README $DOC/README.sendmail
|
||||||
cp smrsh/README $DOC/README.smrsh
|
cp smrsh/README $DOC/README.smrsh
|
||||||
cp libmilter/README $DOC/README.libmilter
|
cp libmilter/README $DOC/README.libmilter
|
||||||
cp cf/README $DOC/README.cf
|
cp cf/README $DOC/README.cf
|
||||||
|
|
||||||
# install the cf files
|
# install the cf files
|
||||||
pushd cf
|
pushd cf
|
||||||
@ -250,6 +261,18 @@ install -m 755 -d $RPM_BUILD_ROOT%{_libdir}
|
|||||||
install -m 644 $OBJDIR/libmilter/libmilter.a $RPM_BUILD_ROOT%{_libdir}
|
install -m 644 $OBJDIR/libmilter/libmilter.a $RPM_BUILD_ROOT%{_libdir}
|
||||||
install -m 644 $OBJDIR/libsmutil/libsmutil.a $RPM_BUILD_ROOT%{_libdir}
|
install -m 644 $OBJDIR/libsmutil/libsmutil.a $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
|
||||||
|
%if %{errata} == 100
|
||||||
|
mv $RPM_BUILD_ROOT%{_sbindir}/sendmail $RPM_BUILD_ROOT%{_sbindir}/sendmail.sendmail
|
||||||
|
for i in mailq newaliases rmail; do
|
||||||
|
mv $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/$i.sendmail
|
||||||
|
done
|
||||||
|
mv $RPM_BUILD_ROOT%{_mandir}/man1/mailq.1 $RPM_BUILD_ROOT%{_mandir}/man1/mailq.sendmail.1
|
||||||
|
mv $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.1 $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.sendmail.1
|
||||||
|
mv $RPM_BUILD_ROOT%{_mandir}/man5/aliases.5 $RPM_BUILD_ROOT%{_mandir}/man5/aliases.sendmail.5
|
||||||
|
%endif
|
||||||
|
|
||||||
|
mv $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_includedir}/libmilter
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -281,6 +304,23 @@ for oldfile in relay_allow ip_allow name_allow ; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
/sbin/chkconfig --add sendmail
|
||||||
|
|
||||||
|
%if %{errata} == 100
|
||||||
|
#
|
||||||
|
# Set up the alternatives files for MTAs.
|
||||||
|
#
|
||||||
|
/usr/sbin/alternatives --install %{_sbindir}/sendmail mta %{_sbindir}/sendmail.sendmail 90 \
|
||||||
|
--slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.sendmail \
|
||||||
|
--slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.sendmail \
|
||||||
|
--slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.sendmail \
|
||||||
|
--slave %{_mandir}/man1/mailq.1.gz mta-mailqman %{_mandir}/man1/mailq.sendmail.1.gz \
|
||||||
|
--slave %{_mandir}/man1/newaliases.1.gz mta-newaliasesman %{_mandir}/man1/newaliases.sendmail.1.gz \
|
||||||
|
--slave %{_mandir}/man5/aliases.5.gz mta-aliasesman %{_mandir}/man5/aliases.sendmail.5.gz \
|
||||||
|
--initscript sendmail
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Oops, these files moved
|
# Oops, these files moved
|
||||||
#
|
#
|
||||||
@ -309,23 +349,39 @@ fi
|
|||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{initdir}/sendmail stop >/dev/null 2>&1
|
%{initdir}/sendmail stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del sendmail
|
/sbin/chkconfig --del sendmail
|
||||||
|
%if %{errata} == 100
|
||||||
|
/usr/sbin/alternatives --remove mta %{_sbindir}/sendmail.sendmail
|
||||||
|
%endif
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
%triggerpostun -- sendmail < 8.10.0
|
%triggerpostun -- sendmail < 8.10.0
|
||||||
/sbin/chkconfig --add sendmail
|
/sbin/chkconfig --add sendmail
|
||||||
|
|
||||||
|
%if %{errata} == 100
|
||||||
|
%triggerpostun -- sendmail < 8.11.6-11
|
||||||
|
/usr/sbin/alternatives --auto mta
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/sbin/mailstats
|
/usr/sbin/mailstats
|
||||||
/usr/sbin/praliases
|
/usr/sbin/praliases
|
||||||
/usr/bin/hoststat
|
/usr/bin/hoststat
|
||||||
/usr/bin/purgestat
|
/usr/bin/purgestat
|
||||||
/usr/bin/rmail
|
|
||||||
/usr/bin/makemap
|
/usr/bin/makemap
|
||||||
/usr/sbin/makemap
|
/usr/sbin/makemap
|
||||||
|
%if %{errata} == 100
|
||||||
|
/usr/bin/rmail.sendmail
|
||||||
|
/usr/sbin/sendmail.sendmail
|
||||||
|
/usr/bin/newaliases.sendmail
|
||||||
|
/usr/bin/mailq.sendmail
|
||||||
|
%else
|
||||||
|
/usr/bin/rmail
|
||||||
/usr/sbin/sendmail
|
/usr/sbin/sendmail
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
/usr/bin/mailq
|
/usr/bin/mailq
|
||||||
|
%endif
|
||||||
/usr/sbin/smrsh
|
/usr/sbin/smrsh
|
||||||
/usr/lib/sendmail
|
/usr/lib/sendmail
|
||||||
|
|
||||||
@ -335,9 +391,15 @@ fi
|
|||||||
%{_mandir}/man8/makemap.8*
|
%{_mandir}/man8/makemap.8*
|
||||||
%{_mandir}/man8/sendmail.8*
|
%{_mandir}/man8/sendmail.8*
|
||||||
%{_mandir}/man8/smrsh.8*
|
%{_mandir}/man8/smrsh.8*
|
||||||
|
%if %{errata} == 100
|
||||||
|
%{_mandir}/man5/aliases.sendmail.5*
|
||||||
|
%{_mandir}/man1/newaliases.sendmail.1*
|
||||||
|
%{_mandir}/man1/mailq.sendmail.1*
|
||||||
|
%else
|
||||||
%{_mandir}/man5/aliases.5*
|
%{_mandir}/man5/aliases.5*
|
||||||
%{_mandir}/man1/newaliases.1*
|
%{_mandir}/man1/newaliases.1*
|
||||||
%{_mandir}/man1/mailq.1*
|
%{_mandir}/man1/mailq.1*
|
||||||
|
%endif
|
||||||
|
|
||||||
%config(noreplace) /etc/mail/statistics
|
%config(noreplace) /etc/mail/statistics
|
||||||
%config(noreplace) /etc/sendmail.cf
|
%config(noreplace) /etc/sendmail.cf
|
||||||
@ -380,20 +442,35 @@ fi
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/include/*.h
|
%{_includedir}/libmilter/*.h
|
||||||
/usr/lib/libmilter.a
|
%{_libdir}/libmilter.a
|
||||||
/usr/lib/libsmutil.a
|
%{_libdir}/libsmutil.a
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_docdir}/sendmail
|
%{_docdir}/sendmail
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri May 03 2002 Philip Copeland <bryce@redhat.com> 8.11.6-9.72.2
|
* Wed Mar 27 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
- rebuild for alpha
|
- backport from 8.12.2 rpm:
|
||||||
|
- no special virtusertable entry in /etc/mail/Makefile
|
||||||
|
- some additions to sendmail.mc file
|
||||||
|
- add sendmail-8.12.2-unix.patch
|
||||||
|
- alternatives fixes
|
||||||
|
|
||||||
* Mon Mar 25 2002 Nalin Dahyabhai <nalin@redhat.com> 8.11.6-9.72.1
|
* Wed Feb 20 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
- rebuild
|
- add proper ifdefs around new alternative stuff to also be able
|
||||||
|
to build this for older releases
|
||||||
|
|
||||||
|
* Fri Feb 1 2002 Bill Nottingham <notting@redhat.com> 8.11.6-12
|
||||||
|
- %triggerpostun on older versions to make sure alternatives work on
|
||||||
|
upgrades
|
||||||
|
|
||||||
|
* Thu Jan 31 2002 Bill Nottingham <notting@redhat.com> 8.11.6-11
|
||||||
|
- clean up alternatives somewhat, provide /usr/sbin/sendmail & friends
|
||||||
|
|
||||||
|
* Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 8.11.6-10
|
||||||
|
- Use alternatives
|
||||||
|
|
||||||
* Tue Jan 22 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
* Tue Jan 22 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
- fix quotation in spec-file
|
- fix quotation in spec-file
|
||||||
|
Loading…
Reference in New Issue
Block a user