summaryrefslogtreecommitdiff
path: root/package/squid
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-06 11:25:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-06 11:25:40 +0200
commit8a29e4cd5bf5a218b1d03347ff908aa8718b3e0c (patch)
tree1e86a6cc016fe60ddac8719d3122dad750174d85 /package/squid
parentd4a90e3b6d23543ff45f8e0f37d37b5da329aba5 (diff)
update squid to latest upstream version
Diffstat (limited to 'package/squid')
-rw-r--r--package/squid/Makefile6
-rw-r--r--package/squid/patches/patch-configure207
-rw-r--r--package/squid/patches/patch-helpers_basic_auth_LDAP_config_test6
-rw-r--r--package/squid/patches/patch-helpers_external_acl_file_userip_config_test4
-rw-r--r--package/squid/patches/patch-src_Makefile_in8
5 files changed, 219 insertions, 12 deletions
diff --git a/package/squid/Makefile b/package/squid/Makefile
index f2f906a50..c9a069491 100644
--- a/package/squid/Makefile
+++ b/package/squid/Makefile
@@ -4,15 +4,15 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= squid
-PKG_VERSION:= 3.2.3
+PKG_VERSION:= 3.3.9
PKG_RELEASE:= 1
-PKG_MD5SUM:= 4190f04b57b98e3207d3eccc84db003d
+PKG_MD5SUM:= 1c550c02a041f77ed6ac96568ca36f26
PKG_DESCR:= squid web and cache proxy
PKG_SECTION:= proxy
PKG_DEPENDS:= libopenssl libpthread libstdcxx libltdl
PKG_BUILDDEP:= openssl libtool
PKG_URL:= http://www.squid-cache.org/
-PKG_SITES:= http://www.squid-cache.org/Versions/v3/3.2/
+PKG_SITES:= http://www.squid-cache.org/Versions/v3/3.3/
PKG_MULTI:= 1
PKG_NEED_CXX:= 1
diff --git a/package/squid/patches/patch-configure b/package/squid/patches/patch-configure
new file mode 100644
index 000000000..5fa463a30
--- /dev/null
+++ b/package/squid/patches/patch-configure
@@ -0,0 +1,207 @@
+--- 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
index 7bcdcb33b..0420a5d71 100644
--- a/package/squid/patches/patch-helpers_basic_auth_LDAP_config_test
+++ b/package/squid/patches/patch-helpers_basic_auth_LDAP_config_test
@@ -1,8 +1,8 @@
---- squid-3.2.3.orig/helpers/basic_auth/LDAP/config.test 2012-10-20 14:39:49.000000000 +0200
-+++ squid-3.2.3/helpers/basic_auth/LDAP/config.test 2013-07-18 11:45:46.000000000 +0200
+--- 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 ]; then
+-if [ -f /usr/include/ldap.h -o -f /usr/local/include/ldap.h ]; then
- exit 0
-fi
-if [ -f /usr/include/winldap.h ]; then
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
index 6b9d5aaa3..594990b4c 100644
--- a/package/squid/patches/patch-helpers_external_acl_file_userip_config_test
+++ b/package/squid/patches/patch-helpers_external_acl_file_userip_config_test
@@ -1,5 +1,5 @@
---- squid-3.2.3.orig/helpers/external_acl/file_userip/config.test 2012-10-20 14:39:49.000000000 +0200
-+++ squid-3.2.3/helpers/external_acl/file_userip/config.test 2013-07-18 11:50:54.000000000 +0200
+--- 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
diff --git a/package/squid/patches/patch-src_Makefile_in b/package/squid/patches/patch-src_Makefile_in
index 64ae13836..c3b64c017 100644
--- a/package/squid/patches/patch-src_Makefile_in
+++ b/package/squid/patches/patch-src_Makefile_in
@@ -1,9 +1,9 @@
---- squid-3.2.3.orig/src/Makefile.in 2012-10-20 14:40:18.000000000 +0200
-+++ squid-3.2.3/src/Makefile.in 2013-07-18 11:37:59.000000000 +0200
-@@ -6573,7 +6573,7 @@ cache_cf.o: cf_parser.cci
+--- 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
# cf_gen builds the configuration files.
- cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
+ cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
- $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
+ $(CXX_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src