]> git.pld-linux.org Git - packages/exim.git/commitdiff
- fix building with recent openssl
authorMarcin Krol <hawk@tld-linux.org>
Mon, 1 Jun 2015 08:11:56 +0000 (08:11 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 1 Jun 2015 08:11:56 +0000 (08:11 +0000)
exim.spec
openssl_build_fix.patch [new file with mode: 0644]

index 7515d59345b8be51caa04f085c70ef244e650f66..78c4f2cdab501d6073447660dcaecdb8d2691492 100644 (file)
--- a/exim.spec
+++ b/exim.spec
@@ -22,7 +22,7 @@ Summary(pl.UTF-8):    Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR.UTF-8):  Servidor de correio eletrônico exim
 Name:          exim
 Version:       4.85
-Release:       2
+Release:       3
 Epoch:         2
 License:       GPL
 Group:         Networking/Daemons/SMTP
@@ -42,7 +42,6 @@ Source9:      %{name}.aliases
 Source10:      newaliases
 Source11:      %{name}.logrotate
 Source12:      %{name}.sysconfig
-
 Source14:      ftp://ftp.exim.org/pub/exim/exim4/old/config.samples.tar.bz2
 # Source14-md5:        4b93321938a800caa6127c48ad60a42b
 Source15:      %{name}4-smtp.pamd
@@ -54,11 +53,10 @@ Patch3:             exim-defs.patch
 Patch4:                %{name}4-Makefile-Default.patch
 # http://marc.merlins.org/linux/exim/files/sa-exim-cvs/localscan_dlopen_exim_4.20_or_better.patch
 Patch5:                localscan_dlopen_%{name}_4.20_or_better.patch
-
 Patch8:                %{name}-spam-timeout.patch
-
 Patch10:       %{name}-force-sigalrm.patch
-Patch11:       %{name}4-disableSSLv3.patch
+Patch11:       openssl_build_fix.patch
+Patch20:       %{name}4-disableSSLv3.patch
 URL:           http://www.exim.org/
 %{?with_sasl:BuildRequires:    cyrus-sasl-devel >= 2.1.0}
 BuildRequires: db-devel
@@ -173,13 +171,12 @@ Pliki nagłówkowe dla Exima.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-
 %patch8 -p1
-
 %patch10 -p1
+%patch11 -p1
 install %{SOURCE4} exim4.conf
 install %{SOURCE14} doc/config.samples.tar.bz2
-%patch11 -p1
+%patch20 -p1
 install -d Local
 cat << 'EOF' >> Local/Makefile-Linux
 CC=%{__cc}
diff --git a/openssl_build_fix.patch b/openssl_build_fix.patch
new file mode 100644 (file)
index 0000000..e9e6230
--- /dev/null
@@ -0,0 +1,35 @@
+From 740f36d42bb3f61fdbaf53a68380a9a96096c229 Mon Sep 17 00:00:00 2001
+From: Jeremy Harris <jgh146exb@wizmail.org>
+Date: Wed, 25 Mar 2015 17:11:56 +0000
+Subject: [PATCH] Fix recent-openssl compile
+
+---
+ src/tls-openssl.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/tls-openssl.c b/src/tls-openssl.c
+index 96ac72c..65d6089 100644
+--- a/src/tls-openssl.c
++++ b/src/tls-openssl.c
+@@ -380,7 +380,7 @@ else
+       /* client, wanting hostname check */
+     {
+-# if EXIM_HAVE_OPENSSL_CHECKHOST
++# ifdef EXIM_HAVE_OPENSSL_CHECKHOST
+ #  ifndef X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS
+ #   define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0
+ #  endif
+@@ -394,7 +394,8 @@ else
+     while ((name = string_nextinlist(&list, &sep, NULL, 0)))
+       if ((rc = X509_check_host(cert, name, 0,
+                 X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS
+-                | X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS)))
++                | X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS,
++                NULL)))
+       {
+       if (rc < 0)
+         {
+-- 
+1.9.1
+
This page took 1.040243 seconds and 4 git commands to generate.