auto-import sendmail-8.12.8-5.90 from sendmail-8.12.8-5.90.src.rpm
This commit is contained in:
parent
a8c67fe6ee
commit
ccd56be140
@ -11,13 +11,13 @@ CFFILES = sendmail.cf submit.cf
|
|||||||
|
|
||||||
all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
|
all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
|
||||||
|
|
||||||
userdb.db : userdb
|
userdb.db: userdb
|
||||||
@makemap btree $@ < $<
|
@makemap btree $@ < $<
|
||||||
|
|
||||||
%.db : %
|
%.db: %
|
||||||
@makemap hash $@ < $<
|
@makemap hash $@ < $<
|
||||||
|
|
||||||
%.cf : %.mc
|
%.cf: %.mc
|
||||||
@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
|
@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
|
||||||
mv -f $@ $@.bak; \
|
mv -f $@ $@.bak; \
|
||||||
m4 $< > $@; \
|
m4 $< > $@; \
|
||||||
@ -26,3 +26,12 @@ userdb.db : userdb
|
|||||||
clean:
|
clean:
|
||||||
rm -f *.db *~
|
rm -f *.db *~
|
||||||
|
|
||||||
|
start:
|
||||||
|
service sendmail start
|
||||||
|
|
||||||
|
stop:
|
||||||
|
service sendmail stop
|
||||||
|
|
||||||
|
restart:
|
||||||
|
service sendmail restart
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ start() {
|
|||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
/usr/bin/newaliases > /dev/null 2>&1
|
/usr/bin/newaliases > /dev/null 2>&1
|
||||||
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
|
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
|
||||||
make -C /etc/mail -s
|
make all -C /etc/mail -s
|
||||||
else
|
else
|
||||||
for i in virtusertable access domaintable mailertable ; do
|
for i in virtusertable access domaintable mailertable ; do
|
||||||
if [ -f /etc/mail/$i ] ; then
|
if [ -f /etc/mail/$i ] ; then
|
||||||
|
@ -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 100
|
%define errata 90
|
||||||
%define release 4
|
%define release 5
|
||||||
|
|
||||||
%if %{errata} <= 70
|
%if %{errata} <= 70
|
||||||
%define sendmailcf usr/lib/sendmail-cf
|
%define sendmailcf usr/lib/sendmail-cf
|
||||||
@ -46,22 +46,21 @@ Patch5: sendmail-8.12.2-movefiles.patch
|
|||||||
Patch7: sendmail-8.12.5-pid.patch
|
Patch7: sendmail-8.12.5-pid.patch
|
||||||
Patch9: sendmail-8.12.7-hesiod.patch
|
Patch9: sendmail-8.12.7-hesiod.patch
|
||||||
Patch10: sendmail-8.12.7-manpage.patch
|
Patch10: sendmail-8.12.7-manpage.patch
|
||||||
|
Patch11: sendmail-8.12.8-security.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
%if %{errata} > 62
|
%if %{errata} > 62
|
||||||
%if %{errata} <= 70
|
# RHL7.0 only had cyrus-sasl, but an errata also provides cyrus-sasl-devel
|
||||||
BuildRequires: cyrus-sasl
|
BuildRequires: openldap-devel, openssl-devel, tcp_wrappers, cyrus-sasl-devel
|
||||||
%else
|
%endif
|
||||||
BuildRequires: cyrus-sasl-devel
|
%if %{errata} <= 73
|
||||||
|
BuildRequires: db3-devel
|
||||||
|
%endif
|
||||||
|
%if %{errata} >= 80
|
||||||
|
BuildRequires: db4-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{errata} >= 73
|
%if %{errata} >= 73
|
||||||
BuildRequires: hesiod-devel
|
BuildRequires: hesiod-devel
|
||||||
%else
|
|
||||||
BuildRequires: db3-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: openldap-devel, openssl-devel, tcp_wrappers
|
|
||||||
%endif
|
|
||||||
%if %{errata} >= 73
|
|
||||||
Prereq: /usr/sbin/alternatives
|
Prereq: /usr/sbin/alternatives
|
||||||
Provides: %{_sbindir}/sendmail %{_bindir}/mailq %{_bindir}/newaliases
|
Provides: %{_sbindir}/sendmail %{_bindir}/mailq %{_bindir}/newaliases
|
||||||
Provides: %{_bindir}/rmail %{_mandir}/man1/mailq.1.gz
|
Provides: %{_bindir}/rmail %{_mandir}/man1/mailq.1.gz
|
||||||
@ -131,14 +130,20 @@ fi
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
|
%patch11 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
export RPM_OPT_FLAGS="-O1"
|
export RPM_OPT_FLAGS="-O1"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
if test %{errata} -gt 72 ; then
|
||||||
sed -e 's,%%{_libdir},%{_libdir},g' \
|
sed -e 's,%%{_libdir},%{_libdir},g' \
|
||||||
-e 's,%%{_lib},%{_lib},g' redhat.config.m4.in > redhat.config.m4
|
-e 's,%%{_lib},%{_lib},g' redhat.config.m4.in > redhat.config.m4
|
||||||
|
fi
|
||||||
|
if test %{errata} = 73 ; then
|
||||||
|
perl -pi -e 's,-ldb-4.0,-ldb,g' redhat.config.m4
|
||||||
|
fi
|
||||||
|
|
||||||
for i in libmilter libsmutil sendmail mailstats rmail praliases \
|
for i in libmilter libsmutil sendmail mailstats rmail praliases \
|
||||||
smrsh makemap ; do
|
smrsh makemap ; do
|
||||||
@ -495,6 +500,16 @@ exit 0
|
|||||||
%{_docdir}/sendmail
|
%{_docdir}/sendmail
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 26 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- call make with the target "all" #86005
|
||||||
|
- add start/stop/restart as Makefile targets
|
||||||
|
- add another security patch
|
||||||
|
|
||||||
|
* Wed Mar 05 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- add correct db4-devel requirements for newer releases
|
||||||
|
- completely re-do many ifdef code in the spec-file
|
||||||
|
- fix some issues building for older RHL releases
|
||||||
|
|
||||||
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
|
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user