From: Jo-Philipp Wich Date: Tue, 24 May 2011 09:09:58 +0000 (+0000) Subject: [PATCH] tinyproxy: allow to use the bind option X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=391ddecc3aad71b1b425ebce92ef201f57f2d8a0 [PATCH] tinyproxy: allow to use the bind option Attached patch allows to use the 'bind' option even if transparent proxy support is compiled into tinyproxy (which is in openwrt). There are several references related to the bug, but nobody seams to know why this - apparently not needed - check was build in. Regards Mathias SVN-Revision: 26982 --- diff --git a/net/tinyproxy/Makefile b/net/tinyproxy/Makefile index f219a094d9..e3dae22049 100644 --- a/net/tinyproxy/Makefile +++ b/net/tinyproxy/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tinyproxy PKG_VERSION:=1.8.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.banu.com/pub/tinyproxy/1.8/ diff --git a/net/tinyproxy/patches/010-no-docs-and-tests.patch b/net/tinyproxy/patches/010-no-docs-and-tests.patch index 12298e657d..9845c351c2 100644 --- a/net/tinyproxy/patches/010-no-docs-and-tests.patch +++ b/net/tinyproxy/patches/010-no-docs-and-tests.patch @@ -12,7 +12,7 @@ ACLOCAL_AMFLAGS = -I m4macros --- a/Makefile.in +++ b/Makefile.in -@@ -221,9 +221,7 @@ SUBDIRS = \ +@@ -222,9 +222,7 @@ SUBDIRS = \ src \ data \ etc \ diff --git a/net/tinyproxy/patches/020-config_and_pid-path.patch b/net/tinyproxy/patches/020-config_and_pid-path.patch index 2e9f9e48c0..3ab7482a4e 100644 --- a/net/tinyproxy/patches/020-config_and_pid-path.patch +++ b/net/tinyproxy/patches/020-config_and_pid-path.patch @@ -1,7 +1,6 @@ -diff -Nur a/src/main.c b/src/main.c ---- a/src/main.c 2010-07-17 11:57:25.000000000 +0200 -+++ b/src/main.c 2010-07-17 11:58:52.000000000 +0200 -@@ -326,8 +326,8 @@ +--- a/src/main.c ++++ b/src/main.c +@@ -326,8 +326,8 @@ static void initialize_config_defaults ( conf->errorpages = NULL; conf->stathost = safestrdup (TINYPROXY_STATHOST); conf->idletimeout = MAX_IDLE_TIME; @@ -12,4 +11,3 @@ diff -Nur a/src/main.c b/src/main.c } /** - diff --git a/net/tinyproxy/patches/030-allow_bind_in_transparent_mode.patch b/net/tinyproxy/patches/030-allow_bind_in_transparent_mode.patch new file mode 100644 index 0000000000..7d6decda49 --- /dev/null +++ b/net/tinyproxy/patches/030-allow_bind_in_transparent_mode.patch @@ -0,0 +1,22 @@ +--- a/src/conf.c ++++ b/src/conf.c +@@ -857,7 +857,6 @@ static HANDLE_FUNC (handle_deny) + + static HANDLE_FUNC (handle_bind) + { +-#ifndef TRANSPARENT_PROXY + int r = set_string_arg (&conf->bind_address, line, &match[2]); + + if (r) +@@ -865,11 +864,6 @@ static HANDLE_FUNC (handle_bind) + log_message (LOG_INFO, + "Outgoing connections bound to IP %s", conf->bind_address); + return 0; +-#else +- fprintf (stderr, +- "\"Bind\" cannot be used with transparent support enabled.\n"); +- return 1; +-#endif + } + + static HANDLE_FUNC (handle_listen)