I was wondering if anyone had compiled an ipkg of TinyProxy 1.7, or knew of an existing one. Google, unfortunately, has turned up nothing.
Topic: TinyProxy 1.7
The content of this topic has been archived on 11 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
You can always upgrade the package and compile it by yourself...
I tried compiling it as an ipkg, but got a compiler error. I'm not sure if it is an issue with my build environment (Ubuntu 8.04 on VMWare Fusion), but I keep getting build errors. I've also tried compiling on the router itself, (It's a ASUS WL700GE, so it's actually powerful enough to handle such things,) but to no avail. I'm having trouble building all of the appropriate packages to support building stuff. I had kinda been hoping for an easier solution. If no such solution exists, I'll figure something out.
With the one below you can choose between the stable and devel version of Tinyproxy in menuconfig.
$ cd ~/
$ svn checkout https://svn.openwrt.org/openwrt/trunk/ ~/trunk
$ cd ~/trunk/
$ ./scripts/feeds update packages
$ patch -p0 < ~/tinyproxy.diff
$ ./scripts/feeds install tinyproxy
$ make menuconfig
In menuconfig change:
- Target System: Broadcom BCM947xx/953xx [2.4]
- Target Profile: ...
- Network
- tinyproxy: M
- Tinyproxy version: STABLE 1.6.3 or DEVEL 1.7.0
$ make world
~/tinyproxy.diff
Index: feeds/packages/net/tinyproxy/patches/100-fix_typo.patch
===================================================================
--- feeds/packages/net/tinyproxy/patches/100-fix_typo.patch (Revision 12442)
+++ feeds/packages/net/tinyproxy/patches/100-fix_typo.patch (Arbeitskopie)
@@ -1,6 +1,5 @@
-diff -urN tinyproxy-1.6.3/src/reqs.c tinyproxy-1.6.3.new/src/reqs.c
---- tinyproxy-1.6.3/src/reqs.c 2004-08-06 18:56:55.000000000 +0200
-+++ tinyproxy-1.6.3.new/src/reqs.c 2007-08-30 16:50:31.000000000 +0200
+--- a/src/reqs.c
++++ b/src/reqs.c
@@ -726,7 +726,7 @@
request->host);
Index: feeds/packages/net/tinyproxy/Config.in
===================================================================
--- feeds/packages/net/tinyproxy/Config.in (Revision 0)
+++ feeds/packages/net/tinyproxy/Config.in (Revision 0)
@@ -0,0 +1,15 @@
+# Tinyproxy configuration
+
+choice
+ prompt "Tinyproxy version"
+ depends on PACKAGE_tinyproxy
+ default TINYPROXY_STABLE
+
+config TINYPROXY_STABLE
+ bool "STABLE v1.6.3"
+
+config TINYPROXY_DEVEL
+ bool "DEVEL v1.7.0"
+
+endchoice
+
Index: feeds/packages/net/tinyproxy/Makefile
===================================================================
--- feeds/packages/net/tinyproxy/Makefile (Revision 12442)
+++ feeds/packages/net/tinyproxy/Makefile (Arbeitskopie)
@@ -9,13 +9,27 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=tinyproxy
-PKG_VERSION:=1.6.3
-PKG_RELEASE:=1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=@SF/tinyproxy
-PKG_MD5SUM:=bd14d029b12621bcfd7ee71b2f4893da
+ifneq ($(CONFIG_TINYPROXY_STABLE),)
+ PKG_VERSION:=1.6.3
+ PKG_RELEASE:=1
+ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+ PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+ PKG_MD5SUM:=bd14d029b12621bcfd7ee71b2f4893da
+else
+ PKG_VERSION:=1.7.0
+ PKG_RELEASE:=1
+
+ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+ PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+ PKG_MD5SUM:=ccacdd9cb093202886b6c7c9e453a804
+
+ PATCH_DIR=./patches-devel
+endif
+
+PKG_FIXUP = libtool
+
include $(INCLUDE_DIR)/package.mk
define Package/tinyproxy
@@ -29,6 +43,14 @@
/etc/tinyproxy/tinyproxy.conf
endef
+define Package/tinyproxy/config
+ source "$(SOURCE)/Config.in"
+endef
+
+ifneq ($(CONFIG_TINYPROXY_DEVEL),)
+ CONFIGURE_ARGS += tinyproxy_cv_regex_broken=no
+endif
+
define Build/Configure
$(call Build/Configure/Default,\
--enable-filter \
Thank you very much for the help. I will try it when I get home this evening. Just one thing, your tinyproxy.diff file looks like it was cut off a little short. Is there more to it, or should I just add the closing bracket at the end?
you can search on google that Ubuntu`s shell isn`t normal we used.
So, everything worked. Thanks for the help!
As a matter of interest, if I built a binary of tinyurl for OpenWrt, would it run on tomato?
The discussion might have continued from here.