summaryrefslogtreecommitdiff
path: root/package/squid/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-12 20:34:01 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-12 20:34:01 +0100
commitd2bda1cfddccdd4c553a15e775a037de3bbb0570 (patch)
tree965914462125326d3166287f4567ceae50bf7914 /package/squid/patches
parent22db207e5c13ad254ff488b8be2601792aae8586 (diff)
parentd07bf77e221876d0c9d6f9813ef165265b67c15e (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/squid/patches')
-rw-r--r--package/squid/patches/patch-acinclude_lib-checks_m472
-rw-r--r--package/squid/patches/patch-configure207
-rw-r--r--package/squid/patches/patch-helpers_basic_auth_LDAP_config_test12
-rw-r--r--package/squid/patches/patch-helpers_external_acl_file_userip_config_test9
-rw-r--r--package/squid/patches/patch-src_Makefile_am (renamed from package/squid/patches/patch-src_Makefile_in)6
5 files changed, 75 insertions, 231 deletions
diff --git a/package/squid/patches/patch-acinclude_lib-checks_m4 b/package/squid/patches/patch-acinclude_lib-checks_m4
new file mode 100644
index 000000000..b44b4eb27
--- /dev/null
+++ b/package/squid/patches/patch-acinclude_lib-checks_m4
@@ -0,0 +1,72 @@
+--- squid-3.4.4.orig/acinclude/lib-checks.m4 2014-03-09 10:40:56.000000000 +0100
++++ squid-3.4.4/acinclude/lib-checks.m4 2014-03-11 19:44:28.088928982 +0100
+@@ -95,69 +95,6 @@ AC_DEFUN([SQUID_CHECK_LIBIPHLPAPI],[
+ SQUID_STATE_ROLLBACK(iphlpapi)
+ ])
+
+-dnl Checks whether the OpenSSL SSL_get_certificate crashes squid and if a
+-dnl workaround can be used instead of using the SSL_get_certificate
+-AC_DEFUN([SQUID_CHECK_OPENSSL_GETCERTIFICATE_WORKS],[
+- AH_TEMPLATE(SQUID_SSLGETCERTIFICATE_BUGGY, "Define to 1 if the SSL_get_certificate crashes squid")
+- AH_TEMPLATE(SQUID_USE_SSLGETCERTIFICATE_HACK, "Define to 1 to use squid workaround for SSL_get_certificate")
+- SQUID_STATE_SAVE(check_SSL_get_certificate)
+- LIBS="$SSLLIB $LIBS"
+- if test "x$SSLLIBDIR" != "x"; then
+- LIBS="$LIBS -Wl,-rpath -Wl,$SSLLIBDIR"
+- fi
+-
+- AC_MSG_CHECKING(whether the SSL_get_certificate is buggy)
+- AC_RUN_IFELSE([
+- AC_LANG_PROGRAM(
+- [
+- #include <openssl/ssl.h>
+- #include <openssl/err.h>
+- ],
+- [
+- SSLeay_add_ssl_algorithms();
+- SSL_CTX *sslContext = SSL_CTX_new(SSLv3_method());
+- SSL *ssl = SSL_new(sslContext);
+- X509* cert = SSL_get_certificate(ssl);
+- return 0;
+- ])
+- ],
+- [
+- AC_MSG_RESULT([no])
+- ],
+- [
+- AC_DEFINE(SQUID_SSLGETCERTIFICATE_BUGGY, 1)
+- AC_MSG_RESULT([yes])
+- ],
+- [])
+-
+- AC_MSG_CHECKING(whether the workaround for SSL_get_certificate works)
+- AC_RUN_IFELSE([
+- AC_LANG_PROGRAM(
+- [
+- #include <openssl/ssl.h>
+- #include <openssl/err.h>
+- ],
+- [
+- SSLeay_add_ssl_algorithms();
+- SSL_CTX *sslContext = SSL_CTX_new(SSLv3_method());
+- X509 ***pCert = (X509 ***)sslContext->cert;
+- X509 *sslCtxCert = pCert && *pCert ? **pCert : (X509 *)0x1;
+- if (sslCtxCert != NULL)
+- return 1;
+- return 0;
+- ])
+- ],
+- [
+- AC_MSG_RESULT([yes])
+- AC_DEFINE(SQUID_USE_SSLGETCERTIFICATE_HACK, 1)
+- ],
+- [
+- AC_MSG_RESULT([no])
+- ],
+-[])
+-
+-SQUID_STATE_ROLLBACK(check_SSL_get_certificate)
+-])
+
+ dnl Checks whether the SSL_CTX_new and similar functions require
+ dnl a const 'SSL_METHOD *' argument
diff --git a/package/squid/patches/patch-configure b/package/squid/patches/patch-configure
deleted file mode 100644
index 5fa463a30..000000000
--- a/package/squid/patches/patch-configure
+++ /dev/null
@@ -1,207 +0,0 @@
---- squid-3.3.9.orig/configure 2013-09-11 06:09:44.000000000 +0200
-+++ squid-3.3.9/configure 2013-10-05 21:38:15.000000000 +0200
-@@ -18948,52 +18948,9 @@ unset squid_tmp_define
- # to be used by sub-commands
- export enable_inline
-
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU atomic operations support" >&5
--$as_echo_n "checking for GNU atomic operations support... " >&6; }
--if test "$cross_compiling" = yes; then :
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--
-- int n = 0;
--
--int
--main ()
--{
--
-- __sync_add_and_fetch(&n, 10); // n becomes 10
-- __sync_fetch_and_add(&n, 20); // n becomes 30
-- __sync_sub_and_fetch(&n, 15); // n becomes 15
-- __sync_bool_compare_and_swap(&n, 15, 201); // n becomes 201
-- __sync_fetch_and_and(&n, 200); // n becomes 200
-- return (n == 200) ? 0 : -1;
--
-- ;
-- return 0;
--}
--_ACEOF
--if ac_fn_cxx_try_run "$LINENO"; then :
--
-
- $as_echo "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
-
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
--$as_echo "yes" >&6; }
--
--else
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--$as_echo "no" >&6; }
--
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-- conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
--
-
-
- # Check whether --enable-debug-cbdata was given.
-@@ -21049,151 +21006,6 @@ if test "x$with_openssl" = "xyes"; then
-
-
-
--# save state, key is check_SSL_get_certificate
--check_SSL_get_certificate_CFLAGS="${CFLAGS}"
--check_SSL_get_certificate_CXXFLAGS="${CXXFLAGS}"
--check_SSL_get_certificate_LDFLAGS="${LDFLAGS}"
--check_SSL_get_certificate_LIBS="${LIBS}"
--check_SSL_get_certificate_CC="${CC}"
--check_SSL_get_certificate_CXX="${CXX}"
--check_SSL_get_certificate_squid_saved_vars=""
--for squid_util_var_tosave in $check_SSL_get_certificate_squid_saved_vars
--do
-- squid_util_var_tosave2="check_SSL_get_certificate_${squid_util_var_tosave}"
-- eval "${squid_util_var_tosave2}=\"${squid_util_var_tosave}\""
--done
--
-- LIBS="$SSLLIB $LIBS"
-- if test "x$SSLLIBDIR" != "x"; then
-- LIBS="$LIBS -Wl,-rpath -Wl,$SSLLIBDIR"
-- fi
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the SSL_get_certificate is buggy" >&5
--$as_echo_n "checking whether the SSL_get_certificate is buggy... " >&6; }
-- if test "$cross_compiling" = yes; then :
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--
--
-- #include <openssl/ssl.h>
-- #include <openssl/err.h>
--
--int
--main ()
--{
--
-- SSLeay_add_ssl_algorithms();
-- SSL_CTX *sslContext = SSL_CTX_new(SSLv3_method());
-- SSL *ssl = SSL_new(sslContext);
-- X509* cert = SSL_get_certificate(ssl);
-- return 0;
--
-- ;
-- return 0;
--}
--
--_ACEOF
--if ac_fn_cxx_try_run "$LINENO"; then :
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--$as_echo "no" >&6; }
--
--else
--
-- $as_echo "#define SQUID_SSLGETCERTIFICATE_BUGGY 1" >>confdefs.h
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
--$as_echo "yes" >&6; }
--
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-- conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
--
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the workaround for SSL_get_certificate works" >&5
--$as_echo_n "checking whether the workaround for SSL_get_certificate works... " >&6; }
-- if test "$cross_compiling" = yes; then :
-- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--
--
-- #include <openssl/ssl.h>
-- #include <openssl/err.h>
--
--int
--main ()
--{
--
-- SSLeay_add_ssl_algorithms();
-- SSL_CTX *sslContext = SSL_CTX_new(SSLv3_method());
-- X509 ***pCert = (X509 ***)sslContext->cert;
-- X509 *sslCtxCert = pCert && *pCert ? **pCert : (X509 *)0x1;
-- if (sslCtxCert != NULL)
-- return 1;
-- return 0;
--
-- ;
-- return 0;
--}
--
--_ACEOF
--if ac_fn_cxx_try_run "$LINENO"; then :
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
--$as_echo "yes" >&6; }
-- $as_echo "#define SQUID_USE_SSLGETCERTIFICATE_HACK 1" >>confdefs.h
--
--
--else
--
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--$as_echo "no" >&6; }
--
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-- conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
--
--
--
--# rollback state, key is check_SSL_get_certificate
--CFLAGS="${check_SSL_get_certificate_CFLAGS}"
--CXXFLAGS="${check_SSL_get_certificate_CXXFLAGS}"
--LDFLAGS="${check_SSL_get_certificate_LDFLAGS}"
--LIBS="${check_SSL_get_certificate_LIBS}"
--CC="${check_SSL_get_certificate_CC}"
--CXX="${check_SSL_get_certificate_CXX}"
--for squid_util_var_tosave in $check_SSL_get_certificate_squid_saved_vars
--do
-- squid_util_var_tosave2="\$check_SSL_get_certificate_${squid_util_var_tosave}"
-- eval "$squid_util_var_tosave=\"${squid_util_var_tosave2}\""
--done
--
--# commit state, key is check_SSL_get_certificate
--unset check_SSL_get_certificate_CFLAGS
--unset check_SSL_get_certificate_CXXFLAGS
--unset check_SSL_get_certificate_LDFLAGS
--unset check_SSL_get_certificate_LIBS
--unset check_SSL_get_certificate_CC
--unset check_SSL_get_certificate_CXX
--for squid_util_var_tosave in $check_SSL_get_certificate_squid_saved_vars
--do
-- unset ${squid_util_var_tosave}
--done
--
--
--
-
-
-
diff --git a/package/squid/patches/patch-helpers_basic_auth_LDAP_config_test b/package/squid/patches/patch-helpers_basic_auth_LDAP_config_test
deleted file mode 100644
index 0420a5d71..000000000
--- a/package/squid/patches/patch-helpers_basic_auth_LDAP_config_test
+++ /dev/null
@@ -1,12 +0,0 @@
---- squid-3.3.9.orig/helpers/basic_auth/LDAP/config.test 2013-09-11 06:08:38.000000000 +0200
-+++ squid-3.3.9/helpers/basic_auth/LDAP/config.test 2013-10-06 11:00:22.000000000 +0200
-@@ -1,8 +1,2 @@
- #!/bin/sh
--if [ -f /usr/include/ldap.h -o -f /usr/local/include/ldap.h ]; then
-- exit 0
--fi
--if [ -f /usr/include/winldap.h ]; then
-- exit 0
--fi
--exit 1
-+exit 0
diff --git a/package/squid/patches/patch-helpers_external_acl_file_userip_config_test b/package/squid/patches/patch-helpers_external_acl_file_userip_config_test
deleted file mode 100644
index 594990b4c..000000000
--- a/package/squid/patches/patch-helpers_external_acl_file_userip_config_test
+++ /dev/null
@@ -1,9 +0,0 @@
---- squid-3.3.9.orig/helpers/external_acl/file_userip/config.test 2013-09-11 06:08:38.000000000 +0200
-+++ squid-3.3.9/helpers/external_acl/file_userip/config.test 2013-10-06 11:01:02.000000000 +0200
-@@ -1,5 +1,2 @@
- #!/bin/sh
--if [ -f /usr/include/sys/socket.h ]; then
-- exit 0
--fi
--exit 1
-+exit 0
diff --git a/package/squid/patches/patch-src_Makefile_in b/package/squid/patches/patch-src_Makefile_am
index c3b64c017..9aec4eca3 100644
--- a/package/squid/patches/patch-src_Makefile_in
+++ b/package/squid/patches/patch-src_Makefile_am
@@ -1,6 +1,6 @@
---- squid-3.3.9.orig/src/Makefile.in 2013-09-11 06:09:23.000000000 +0200
-+++ squid-3.3.9/src/Makefile.in 2013-10-05 21:42:09.000000000 +0200
-@@ -7295,7 +7295,7 @@ cache_cf.o: cf_parser.cci
+--- squid-3.4.4.orig/src/Makefile.am 2014-03-09 10:40:56.000000000 +0100
++++ squid-3.4.4/src/Makefile.am 2014-03-12 09:46:23.001434141 +0100
+@@ -981,7 +981,7 @@ cache_cf.o: cf_parser.cci
# cf_gen builds the configuration files.
cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci