Compare commits

...

10 Commits

Author SHA1 Message Date
Mohan Boddu d8de59fa1e Rebuilt for IMA sigs, glibc 2.34, aarch64 flags 2023-05-19 09:41:38 +00:00
Mohan Boddu ce5b2b2039 Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-06-16 03:38:20 +00:00
Jaroslav Škarvada 451c00e0ec Added gating.yaml 2021-05-24 21:33:07 +02:00
Jaroslav Škarvada 1f4cacb5f0 Added gating.yaml 2021-05-24 21:27:33 +02:00
Jaroslav Škarvada 51261b1943 Added gating.yaml 2021-05-20 18:39:10 +02:00
Jaroslav Škarvada 0145d93bac Added support for openssl-3.0
Resolves: rhbz#1953504
2021-05-07 21:40:54 +02:00
Mohan Boddu 1256e05d41 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 05:35:22 +00:00
DistroBaker 7e2ceaeb02 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/sendmail.git#39fb928d58db7a4171f825a5367d8325e41bb7e5
2021-03-29 18:35:41 +00:00
DistroBaker 885fdb7262 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/sendmail.git#eec6562285f47dac11e399608987c7fb37d9a7cf
2021-02-03 04:59:26 +00:00
DistroBaker 68a97c3f2b Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/sendmail.git#79073ed54370fd70db774f9eea4ff7329ed5f942
2020-12-16 22:22:29 +00:00
4 changed files with 70 additions and 3 deletions

1
.sendmail.metadata Normal file
View File

@ -0,0 +1 @@
748b6dfc47dfbb83ebfdd2e334c87032c4698eab sendmail.8.16.1.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tedude.validation}

View File

@ -0,0 +1,19 @@
diff --git a/sendmail/tls.c b/sendmail/tls.c
index 696d32f..b8527c4 100644
--- a/sendmail/tls.c
+++ b/sendmail/tls.c
@@ -29,7 +29,13 @@ SM_RCSID("@(#)$Id: tls.c,v 8.127 2013-11-27 02:51:11 gshapiro Exp $")
# ERROR: OpenSSL version OPENSSL_VERSION_NUMBER is unsupported.
# endif
-# if OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L
+/*
+ ** *SSL version numbers:
+ ** OpenSSL 0.9 - 1.1 (so far), 3.0 (in alpha)
+ ** LibreSSL 2.0 (0x20000000L - part of "These will never change")
+ */
+
+# if (OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L) || OPENSSL_VERSION_NUMBER >= 0x30000000L
# define MTA_HAVE_DH_set0_pqg 1
# define MTA_HAVE_DSA_GENERATE_EX 1

View File

@ -3,6 +3,11 @@
%global with_sasl2 yes
%global with_milter yes
%global with_ldap yes
%if 0%{?rhel} < 9
%global with_nis yes
%else
%global with_nis no
%endif
%global enable_pie yes
%global sendmailcf %{_datadir}/sendmail-cf
@ -16,10 +21,15 @@
# hardened build if not overridden
%{!?_hardened_build:%global _hardened_build 1}
%if "%{with_nis}" == "yes"
%global nis_cflags -DNIS
%global nis_ldadd -lnsl
%endif
Summary: A widely used Mail Transport Agent (MTA)
Name: sendmail
Version: 8.16.1
Release: 3%{?dist}
Release: 10%{?dist}
License: Sendmail
URL: http://www.sendmail.org/
@ -84,9 +94,13 @@ Patch23: sendmail-8.16.1-sasl2-in-etc.patch
# upstream reserved option ID 0xe7 for testing of this new feature, #576643
Patch25: sendmail-8.16.1-qos.patch
Patch26: sendmail-8.16.1-libmilter-socket-activation.patch
Patch27: sendmail-8.16.1-openssl-3.0-fix.patch
BuildRequires: make
BuildRequires: libdb-devel
%if "%{with_nis}" == "yes"
BuildRequires: libnsl2-devel
%endif
BuildRequires: tinycdb-devel
BuildRequires: groff
BuildRequires: ghostscript
@ -191,6 +205,7 @@ cp devtools/M4/UNIX/{,shared}library.m4
%patch23 -p1 -b .sasl2-in-etc
%patch25 -p1 -b .qos
%patch26 -p1 -b .libmilter-socket-activation
%patch27 -p1 -b .openssl-3.0-fix
for f in RELEASE_NOTES contrib/etrn.0; do
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
@ -202,11 +217,11 @@ sed -i 's|/usr/local/bin/perl|%{_bindir}/perl|' contrib/*.pl
%build
# generate redhat config file
cat > redhat.config.m4 << EOF
define(\`confMAPDEF', \`-DNEWDB -DCDB -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
define(\`confMAPDEF', \`-DNEWDB -DCDB %{?nis_cflags} -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
define(\`confENVDEF', \`-I%{_includedir}/libdb -I%{_prefix}/kerberos/include -Wall -DXDEBUG=0 -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_LINUX_MHNL -D_FFR_QOS -D_FILE_OFFSET_BITS=64 -DHAS_GETHOSTBYNAME2')
define(\`confLIBDIRS', \`-L%{_prefix}/kerberos/%{_lib}')
define(\`confLIBS', \`-lnsl -lcrypt -ldb -lcdb -lresolv')
define(\`confLIBS', \`%{?nis_ldadd} -lcrypt -ldb -lcdb -lresolv')
%{?_hardened_build:define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')}
define(\`confMANOWN', \`root')
define(\`confMANGRP', \`root')
@ -694,6 +709,31 @@ exit 0
%changelog
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-10
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-9
- Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
* Fri May 7 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-8
- Added support for openssl-3.0
Resolves: rhbz#1953504
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Thu Mar 25 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-6
- Disable NIS support for RHEL9+
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 8.16.1-5
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.16.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Dec 2 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-3
- Enabled CDB map support
Related: rhbz#1781181