diff options
Diffstat (limited to 'package/squid')
-rw-r--r-- | package/squid/Makefile | 10 | ||||
-rw-r--r-- | package/squid/files/autotool.patch | 37 | ||||
-rw-r--r-- | package/squid/files/squid.conf | 4 | ||||
-rw-r--r-- | package/squid/patches/patch-acinclude_lib-checks_m4 | 72 | ||||
-rw-r--r-- | package/squid/patches/patch-configure | 207 | ||||
-rw-r--r-- | package/squid/patches/patch-helpers_basic_auth_LDAP_config_test | 12 | ||||
-rw-r--r-- | package/squid/patches/patch-helpers_external_acl_file_userip_config_test | 9 | ||||
-rw-r--r-- | package/squid/patches/patch-src_Makefile_am (renamed from package/squid/patches/patch-src_Makefile_in) | 6 |
8 files changed, 82 insertions, 275 deletions
diff --git a/package/squid/Makefile b/package/squid/Makefile index 84e8b30f1..f8e6aaf72 100644 --- a/package/squid/Makefile +++ b/package/squid/Makefile @@ -4,13 +4,13 @@ include ${TOPDIR}/rules.mk PKG_NAME:= squid -PKG_VERSION:= 3.4.1 -PKG_RELEASE:= 1 -PKG_MD5SUM:= da9f30aeff856bc8348494da2730f94e +PKG_VERSION:= 3.4.4 +PKG_RELEASE:= 2 +PKG_MD5SUM:= b36ab3696485a86b43d9194ac9b6b7fe PKG_DESCR:= squid web and cache proxy PKG_SECTION:= proxy PKG_DEPENDS:= libopenssl libpthread libstdcxx libltdl -PKG_BUILDDEP:= openssl libtool +PKG_BUILDDEP:= autotool openssl libtool PKG_URL:= http://www.squid-cache.org/ PKG_SITES:= http://www.squid-cache.org/Versions/v3/3.4/ PKG_MULTI:= 1 @@ -95,6 +95,7 @@ $(eval $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_LDAP_GROUP,ldap_auth)) $(eval $(call PKG_mod_template,SQUID_MOD_EXTERNAL_ACL_UNIX_GROUP,ext_unix_group_acl)) $(eval $(call PKG_mod_template,SQUID_MOD_NTLM_AUTH_FAKE,ntlm_fake_auth)) +AUTOTOOL_STYLE:= autoreconf TARGET_LDFLAGS+= -lpthread CONFIGURE_ENV+= ac_cv_sizeof_void_p=4 \ ac_cv_sizeof_short=2 \ @@ -120,6 +121,7 @@ CONFIGURE_ENV+= ac_cv_sizeof_void_p=4 \ squid_cv_pf_inet6=yes \ ac_cv_have_squid=yes XAKE_FLAGS+= MKDIR_P="mkdir -p" +XAKE_FLAGS+= GCC_HONOUR_COPTS=s CONFIGURE_ARGS+= --datadir=/usr/share/squid \ --libexecdir=/usr/lib/squid \ --sysconfdir=/etc/squid \ diff --git a/package/squid/files/autotool.patch b/package/squid/files/autotool.patch deleted file mode 100644 index 151e22879..000000000 --- a/package/squid/files/autotool.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -Nur squid-3.1.11.orig/configure.ac squid-3.1.11/configure.ac ---- squid-3.1.11.orig/configure.ac 2011-02-08 05:07:06.000000000 +0100 -+++ squid-3.1.11/configure.ac 2011-03-04 23:03:25.000000000 +0100 -@@ -3913,6 +3913,9 @@ - fi - AC_SUBST(XTRA_LIBS) - -+CXX_FOR_BUILD="g++" -+AC_SUBST(CXX_FOR_BUILD) -+ - dnl Clean up after OSF/1 core dump bug - rm -f core - -diff -Nur squid-3.1.11.orig/src/Makefile.am squid-3.1.11/src/Makefile.am ---- squid-3.1.11.orig/src/Makefile.am 2011-02-08 05:05:51.000000000 +0100 -+++ squid-3.1.11/src/Makefile.am 2011-03-04 23:16:39.000000000 +0100 -@@ -732,6 +732,8 @@ - # Make location configure settings available to the code - DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\" - -+CXX_FOR_BUILD ?= @CXX_FOR_BUILD@ -+ - snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h - - globals.cc: globals.h mk-globals-c.pl -@@ -753,6 +755,11 @@ - squid.conf.default squid.conf.documented: cf_parser.cci - true - -+cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) -+ $(CXX_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \ -+ $(top_srcdir)/lib/util.c $(top_srcdir)/compat/assert.cc \ -+ -DNDEBUG -DBUILD_HOST_TOOL ${INCLUDES} ${CXXFLAGS_FOR_BUILD} -+ - cf_parser.cci: cf.data cf_gen$(EXEEXT) - ./cf_gen cf.data $(srcdir)/cf.data.depend - diff --git a/package/squid/files/squid.conf b/package/squid/files/squid.conf index f6539b791..78ab2978a 100644 --- a/package/squid/files/squid.conf +++ b/package/squid/files/squid.conf @@ -1,4 +1,4 @@ -visible_hostname linux +visible_hostname openadk # for transparent proxy use following # http_port 3128 transparent http_port 3128 @@ -10,7 +10,5 @@ cache_log /var/log/squid-cache.log # security cache_effective_user squid cache_effective_group squid -# cache dir -cache_dir ufs /var/squid/cache 10M 16 256 # allow all http_access allow all 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 |