summaryrefslogtreecommitdiffstats
path: root/meta-webserver
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-01-12 16:52:45 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-03-06 12:12:14 +0000
commit50f28a183f30c82280510988ad456f456e2c82ea (patch)
tree0055c7fdd9bda2fa91f592a2b7e8b92e003911f5 /meta-webserver
parent279ebafb9dfcc3bd5095f4880e16a2e9401e38f7 (diff)
downloadmeta-openembedded-50f28a183f30c82280510988ad456f456e2c82ea.tar.gz
apache2: update to 2.4.7
* LIC_FILES_CHKSUM changed because of the introduction of an extra blank line in the LICENSE file (!) * Refreshed TLS Next Protocol Negotiation support patch for conflict with 2.4.7. Thanks to Hongxu Jia for doing this work. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2-native_2.4.7.bb (renamed from meta-webserver/recipes-httpd/apache2/apache2-native_2.4.6.bb)6
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/apache-configure_perlbin.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-configure_perlbin.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/apache-ssl-ltmain-rpath.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-ssl-ltmain-rpath.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/fix-libtool-name.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/fix-libtool-name.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-corelimit.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-corelimit.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-selinux.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-selinux.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.4-export.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-export.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/npn-patch-2.4.7.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-r1332643.patch)111
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/replace-lynx-to-curl-in-apachectl-script.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/replace-lynx-to-curl-in-apachectl-script.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2/server-makefile.patch (renamed from meta-webserver/recipes-httpd/apache2/apache2-2.4.6/server-makefile.patch)0
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.7.bb (renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb)8
11 files changed, 77 insertions, 48 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-native_2.4.6.bb b/meta-webserver/recipes-httpd/apache2/apache2-native_2.4.7.bb
index 6efd469e1..bd935ebc5 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-native_2.4.6.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2-native_2.4.7.bb
@@ -12,9 +12,9 @@ SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2"
12 12
13S = "${WORKDIR}/httpd-${PV}" 13S = "${WORKDIR}/httpd-${PV}"
14 14
15LIC_FILES_CHKSUM = "file://LICENSE;md5=eff226ae95d0516d6210ed77dfdf2dcc" 15LIC_FILES_CHKSUM = "file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"
16SRC_URI[md5sum] = "ea5e361ca37b8d7853404419dd502efe" 16SRC_URI[md5sum] = "170d7fb6fe5f28b87d1878020a9ab94e"
17SRC_URI[sha256sum] = "dc9f3625ebc08bea55eeb0d16e71fba656f252e6cd0aa244ee7806dc3b022fea" 17SRC_URI[sha256sum] = "64368d8301836815ae237f2b62d909711c896c1bd34573771e0ee5ad808ce71b"
18 18
19do_configure () { 19do_configure () {
20 ./configure --with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \ 20 ./configure --with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-configure_perlbin.patch b/meta-webserver/recipes-httpd/apache2/apache2/apache-configure_perlbin.patch
index baa739fd4..baa739fd4 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-configure_perlbin.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/apache-configure_perlbin.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-ssl-ltmain-rpath.patch b/meta-webserver/recipes-httpd/apache2/apache2/apache-ssl-ltmain-rpath.patch
index 3a59fb079..3a59fb079 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/apache-ssl-ltmain-rpath.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/apache-ssl-ltmain-rpath.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/fix-libtool-name.patch b/meta-webserver/recipes-httpd/apache2/apache2/fix-libtool-name.patch
index 027af04c3..027af04c3 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/fix-libtool-name.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/fix-libtool-name.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-corelimit.patch b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-corelimit.patch
index 18e4107ec..18e4107ec 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-corelimit.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-corelimit.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-selinux.patch b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-selinux.patch
index 873328d9b..873328d9b 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.1-selinux.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.1-selinux.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-export.patch b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.4-export.patch
index afbed8e55..afbed8e55 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-export.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/httpd-2.4.4-export.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-r1332643.patch b/meta-webserver/recipes-httpd/apache2/apache2/npn-patch-2.4.7.patch
index ba282319d..a4f185501 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/httpd-2.4.4-r1332643.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/npn-patch-2.4.7.patch
@@ -9,7 +9,7 @@ Add support for TLS Next Protocol Negotiation:
9* modules/ssl/ssl_engine_io.c (ssl_io_filter_input): Invoke 9* modules/ssl/ssl_engine_io.c (ssl_io_filter_input): Invoke
10 next-protocol discovery hook. 10 next-protocol discovery hook.
11 11
12* modules/ssl/ssl_engine_kernel.c (ssl_callback_AdvertiseNextProtos): 12* modules/ssl/ssl_engine_kernel.c (ssl_callback_AdvertiseNextProtos):
13 New callback. 13 New callback.
14 14
15* modules/ssl/ssl_private.h: Add prototype. 15* modules/ssl/ssl_private.h: Add prototype.
@@ -17,37 +17,36 @@ Add support for TLS Next Protocol Negotiation:
17Submitted by: Matthew Steele <mdsteele google.com> 17Submitted by: Matthew Steele <mdsteele google.com>
18 with slight tweaks by jorton 18 with slight tweaks by jorton
19 19
20https://bugzilla.redhat.com//show_bug.cgi?id=809599
21
22http://svn.apache.org/viewvc?view=revision&revision=1332643 20http://svn.apache.org/viewvc?view=revision&revision=1332643
23 21https://bugzilla.redhat.com//show_bug.cgi?id=809599
24Upstream-Status: Backport 22Upstream-Status: Backport
23Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
24---
25 CHANGES | 2 +
26 modules/ssl/mod_ssl.c | 12 ++++++
27 modules/ssl/mod_ssl.h | 21 +++++++++++
28 modules/ssl/ssl_engine_init.c | 5 +++
29 modules/ssl/ssl_engine_io.c | 24 ++++++++++++
30 modules/ssl/ssl_engine_kernel.c | 82 +++++++++++++++++++++++++++++++++++++++++
31 modules/ssl/ssl_private.h | 6 +++
32 7 files changed, 152 insertions(+)
25 33
26--- httpd-2.4.4/modules/ssl/ssl_private.h 34diff --git a/CHANGES b/CHANGES
27+++ httpd-2.4.4/modules/ssl/ssl_private.h 35--- a/CHANGES
28@@ -139,6 +139,11 @@ 36+++ b/CHANGES
29 #define HAVE_FIPS 37@@ -1,6 +1,8 @@
30 #endif 38 -*- coding: utf-8 -*-
31 39
32+#if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_NEXTPROTONEG) \ 40 Changes with Apache 2.4.7
33+ && !defined(OPENSSL_NO_TLSEXT) 41+ *) mod_ssl: Add support for TLS Next Protocol Negotiation. PR 52210.
34+#define HAVE_TLS_NPN 42+ [Matthew Steele <mdsteele google.com>]
35+#endif
36+
37 #if (OPENSSL_VERSION_NUMBER >= 0x10000000)
38 #define MODSSL_SSL_CIPHER_CONST const
39 #define MODSSL_SSL_METHOD_CONST const
40@@ -840,6 +845,7 @@ int ssl_callback_ServerNameIndication(SSL *, int *, modssl_ctx_t *);
41 int ssl_callback_SessionTicket(SSL *, unsigned char *, unsigned char *,
42 EVP_CIPHER_CTX *, HMAC_CTX *, int);
43 #endif
44+int ssl_callback_AdvertiseNextProtos(SSL *ssl, const unsigned char **data, unsigned int *len, void *arg);
45 43
46 /** Session Cache Support */ 44 *) APR 1.5.0 or later is now required for the event MPM.
47 void ssl_scache_init(server_rec *, apr_pool_t *); 45
48--- httpd-2.4.4/modules/ssl/mod_ssl.c 46diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c
49+++ httpd-2.4.4/modules/ssl/mod_ssl.c 47--- a/modules/ssl/mod_ssl.c
50@@ -272,6 +272,18 @@ static const command_rec ssl_config_cmds[] = { 48+++ b/modules/ssl/mod_ssl.c
49@@ -275,6 +275,18 @@ static const command_rec ssl_config_cmds[] = {
51 AP_END_CMD 50 AP_END_CMD
52 }; 51 };
53 52
@@ -66,8 +65,9 @@ Upstream-Status: Backport
66 /* 65 /*
67 * the various processing hooks 66 * the various processing hooks
68 */ 67 */
69--- httpd-2.4.4/modules/ssl/mod_ssl.h 68diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h
70+++ httpd-2.4.4/modules/ssl/mod_ssl.h 69--- a/modules/ssl/mod_ssl.h
70+++ b/modules/ssl/mod_ssl.h
71@@ -63,5 +63,26 @@ APR_DECLARE_OPTIONAL_FN(int, ssl_proxy_enable, (conn_rec *)); 71@@ -63,5 +63,26 @@ APR_DECLARE_OPTIONAL_FN(int, ssl_proxy_enable, (conn_rec *));
72 72
73 APR_DECLARE_OPTIONAL_FN(int, ssl_engine_disable, (conn_rec *)); 73 APR_DECLARE_OPTIONAL_FN(int, ssl_engine_disable, (conn_rec *));
@@ -95,10 +95,11 @@ Upstream-Status: Backport
95+ 95+
96 #endif /* __MOD_SSL_H__ */ 96 #endif /* __MOD_SSL_H__ */
97 /** @} */ 97 /** @} */
98--- httpd-2.4.4/modules/ssl/ssl_engine_init.c 98diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
99+++ httpd-2.4.4/modules/ssl/ssl_engine_init.c 99--- a/modules/ssl/ssl_engine_init.c
100@@ -725,6 +725,11 @@ static void ssl_init_ctx_callbacks(server_rec *s, 100+++ b/modules/ssl/ssl_engine_init.c
101 #endif 101@@ -546,6 +546,11 @@ static void ssl_init_ctx_callbacks(server_rec *s,
102 SSL_CTX_set_tmp_dh_callback(ctx, ssl_callback_TmpDH);
102 103
103 SSL_CTX_set_info_callback(ctx, ssl_callback_Info); 104 SSL_CTX_set_info_callback(ctx, ssl_callback_Info);
104+ 105+
@@ -109,8 +110,9 @@ Upstream-Status: Backport
109 } 110 }
110 111
111 static void ssl_init_ctx_verify(server_rec *s, 112 static void ssl_init_ctx_verify(server_rec *s,
112--- httpd-2.4.4/modules/ssl/ssl_engine_io.c 113diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c
113+++ httpd-2.4.4/modules/ssl/ssl_engine_io.c 114--- a/modules/ssl/ssl_engine_io.c
115+++ b/modules/ssl/ssl_engine_io.c
114@@ -28,6 +28,7 @@ 116@@ -28,6 +28,7 @@
115 core keeps dumping.'' 117 core keeps dumping.''
116 -- Unknown */ 118 -- Unknown */
@@ -127,7 +129,7 @@ Upstream-Status: Backport
127 } bio_filter_in_ctx_t; 129 } bio_filter_in_ctx_t;
128 130
129 /* 131 /*
130@@ -1385,6 +1387,27 @@ static apr_status_t ssl_io_filter_input(ap_filter_t *f, 132@@ -1412,6 +1414,27 @@ static apr_status_t ssl_io_filter_input(ap_filter_t *f,
131 APR_BRIGADE_INSERT_TAIL(bb, bucket); 133 APR_BRIGADE_INSERT_TAIL(bb, bucket);
132 } 134 }
133 135
@@ -155,7 +157,7 @@ Upstream-Status: Backport
155 return APR_SUCCESS; 157 return APR_SUCCESS;
156 } 158 }
157 159
158@@ -1866,6 +1889,7 @@ static void ssl_io_input_add_filter(ssl_filter_ctx_t *filter_ctx, conn_rec *c, 160@@ -1893,6 +1916,7 @@ static void ssl_io_input_add_filter(ssl_filter_ctx_t *filter_ctx, conn_rec *c,
159 inctx->block = APR_BLOCK_READ; 161 inctx->block = APR_BLOCK_READ;
160 inctx->pool = c->pool; 162 inctx->pool = c->pool;
161 inctx->filter_ctx = filter_ctx; 163 inctx->filter_ctx = filter_ctx;
@@ -163,8 +165,9 @@ Upstream-Status: Backport
163 } 165 }
164 166
165 /* The request_rec pointer is passed in here only to ensure that the 167 /* The request_rec pointer is passed in here only to ensure that the
166--- httpd-2.4.4/modules/ssl/ssl_engine_kernel.c 168diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
167+++ httpd-2.4.4/modules/ssl/ssl_engine_kernel.c 169--- a/modules/ssl/ssl_engine_kernel.c
170+++ b/modules/ssl/ssl_engine_kernel.c
168@@ -29,6 +29,7 @@ 171@@ -29,6 +29,7 @@
169 time I was too famous.'' 172 time I was too famous.''
170 -- Unknown */ 173 -- Unknown */
@@ -173,10 +176,10 @@ Upstream-Status: Backport
173 #include "util_md5.h" 176 #include "util_md5.h"
174 177
175 static void ssl_configure_env(request_rec *r, SSLConnRec *sslconn); 178 static void ssl_configure_env(request_rec *r, SSLConnRec *sslconn);
176@@ -2186,3 +2187,84 @@ int ssl_callback_SRPServerParams(SSL *ssl, int *ad, void *arg) 179@@ -2139,3 +2140,84 @@ int ssl_callback_SRPServerParams(SSL *ssl, int *ad, void *arg)
177 } 180 }
178 181
179 #endif /* OPENSSL_NO_SRP */ 182 #endif /* HAVE_SRP */
180+ 183+
181+#ifdef HAVE_TLS_NPN 184+#ifdef HAVE_TLS_NPN
182+/* 185+/*
@@ -257,4 +260,30 @@ Upstream-Status: Backport
257+ *size_out = size; 260+ *size_out = size;
258+ return SSL_TLSEXT_ERR_OK; 261+ return SSL_TLSEXT_ERR_OK;
259+} 262+}
263+#endif /* HAVE_TLS_NPN */
264diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h
265--- a/modules/ssl/ssl_private.h
266+++ b/modules/ssl/ssl_private.h
267@@ -123,6 +123,11 @@
268 #define MODSSL_SSL_METHOD_CONST
269 #endif
270
271+#if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_NEXTPROTONEG) \
272+ && !defined(OPENSSL_NO_TLSEXT)
273+#define HAVE_TLS_NPN
260+#endif 274+#endif
275+
276 #if defined(OPENSSL_FIPS)
277 #define HAVE_FIPS
278 #endif
279@@ -800,6 +805,7 @@ int ssl_callback_ServerNameIndication(SSL *, int *, modssl_ctx_t *);
280 int ssl_callback_SessionTicket(SSL *, unsigned char *, unsigned char *,
281 EVP_CIPHER_CTX *, HMAC_CTX *, int);
282 #endif
283+int ssl_callback_AdvertiseNextProtos(SSL *ssl, const unsigned char **data, unsigned int *len, void *arg);
284
285 /** Session Cache Support */
286 void ssl_scache_init(server_rec *, apr_pool_t *);
287--
2881.8.1.2
289
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/replace-lynx-to-curl-in-apachectl-script.patch b/meta-webserver/recipes-httpd/apache2/apache2/replace-lynx-to-curl-in-apachectl-script.patch
index 584ddc8d9..584ddc8d9 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/replace-lynx-to-curl-in-apachectl-script.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/replace-lynx-to-curl-in-apachectl-script.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/server-makefile.patch b/meta-webserver/recipes-httpd/apache2/apache2/server-makefile.patch
index f1349cb6a..f1349cb6a 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2-2.4.6/server-makefile.patch
+++ b/meta-webserver/recipes-httpd/apache2/apache2/server-makefile.patch
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.7.bb
index cc88fac9e..3c038a956 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.7.bb
@@ -11,17 +11,17 @@ SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
11 file://httpd-2.4.1-corelimit.patch \ 11 file://httpd-2.4.1-corelimit.patch \
12 file://httpd-2.4.4-export.patch \ 12 file://httpd-2.4.4-export.patch \
13 file://httpd-2.4.1-selinux.patch \ 13 file://httpd-2.4.1-selinux.patch \
14 file://httpd-2.4.4-r1332643.patch \
15 file://apache-configure_perlbin.patch \ 14 file://apache-configure_perlbin.patch \
16 file://replace-lynx-to-curl-in-apachectl-script.patch \ 15 file://replace-lynx-to-curl-in-apachectl-script.patch \
17 file://apache-ssl-ltmain-rpath.patch \ 16 file://apache-ssl-ltmain-rpath.patch \
18 file://httpd-2.4.3-fix-race-issue-of-dir-install.patch \ 17 file://httpd-2.4.3-fix-race-issue-of-dir-install.patch \
18 file://npn-patch-2.4.7.patch \
19 file://init \ 19 file://init \
20 file://apache2-volatile.conf" 20 file://apache2-volatile.conf"
21 21
22LIC_FILES_CHKSUM = "file://LICENSE;md5=eff226ae95d0516d6210ed77dfdf2dcc" 22LIC_FILES_CHKSUM = "file://LICENSE;md5=dbff5a2b542fa58854455bf1a0b94b83"
23SRC_URI[md5sum] = "ea5e361ca37b8d7853404419dd502efe" 23SRC_URI[md5sum] = "170d7fb6fe5f28b87d1878020a9ab94e"
24SRC_URI[sha256sum] = "dc9f3625ebc08bea55eeb0d16e71fba656f252e6cd0aa244ee7806dc3b022fea" 24SRC_URI[sha256sum] = "64368d8301836815ae237f2b62d909711c896c1bd34573771e0ee5ad808ce71b"
25 25
26S = "${WORKDIR}/httpd-${PV}" 26S = "${WORKDIR}/httpd-${PV}"
27 27