Date: 18 Mar 2002 08:06:57 -0000 From: Mitsuru Yoshida <mitsuru@riken.go.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36039: upgrade tinyproxy port Message-ID: <20020318080657.77327.qmail@zebu.riken.go.jp>
next in thread | raw e-mail | index | archive | help
>Number: 36039 >Category: ports >Synopsis: upgrade tinyproxy port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Mar 18 00:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mitsuru Yoshida >Release: FreeBSD 4.5-STABLE i386 >Organization: RIKEN >Environment: System: FreeBSD 4.5-STABLE >Description: upgrade tinyproxy port to 1.4.3 >How-To-Repeat: >Fix: diff -ruN tinyproxy.old/Makefile tinyproxy/Makefile --- tinyproxy.old/Makefile Mon Mar 18 16:54:46 2002 +++ tinyproxy/Makefile Mon Mar 18 16:56:37 2002 @@ -6,19 +6,27 @@ # PORTNAME= tinyproxy -PORTVERSION= 1.3.3b +PORTVERSION= 1.4.3 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= mitsuru@riken.go.jp -BUILD_DEPENDS= ${LOCALBASE}/lib/libadns.a:${PORTSDIR}/net/adns - GNU_CONFIGURE= yes USE_GMAKE= yes -CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --with-log-file=/var/log/tinyproxy.log --with-port=8080 --with-user=nobody --with-adns-include=${LOCALBASE}/include --with-adns-lib=${LOCALBASE}/lib +CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --with-config=${PREFIX}/etc/tinyproxy/tinyproxy.conf MAN8= tinyproxy.8 + +post-patch: + @cd ${WRKSRC}/doc; f=tinyproxy.8; \ + ${MV} $$f $$f.orig; \ + ${SED} -e s:/etc/tinyproxy/tinyproxy.conf:${PREFIX}/etc/tinyproxy/tinyproxy.conf: \ + < $$f.orig > $$f + +post-install: + ${MKDIR} ${PREFIX}/etc/tinyproxy + ${INSTALL_DATA} ${WRKSRC}/doc/tinyproxy.conf ${PREFIX}/etc/tinyproxy/tinyproxy.conf.sample .include <bsd.port.mk> diff -ruN tinyproxy.old/distinfo tinyproxy/distinfo --- tinyproxy.old/distinfo Mon Mar 18 16:54:46 2002 +++ tinyproxy/distinfo Mon Feb 4 17:04:03 2002 @@ -1 +1 @@ -MD5 (tinyproxy-1.3.3b.tar.gz) = bd60ff82019c63abc67491c261e9d351 +MD5 (tinyproxy-1.4.3.tar.gz) = d8b35d99e739023e8442ece2e3546398 diff -ruN tinyproxy.old/files/patch-aa tinyproxy/files/patch-aa --- tinyproxy.old/files/patch-aa Thu Jan 1 09:00:00 1970 +++ tinyproxy/files/patch-aa Thu Feb 7 18:35:00 2002 @@ -0,0 +1,11 @@ +--- src/sock.c.dist Tue Nov 13 06:10:29 2001 ++++ src/sock.c Thu Feb 7 18:33:24 2002 +@@ -259,7 +259,7 @@ + + for (n = 1; n < maxlen; n++) { + again: +- if ((rc = recv(fd, &c, 1, MSG_NOSIGNAL)) == 1) { ++ if ((rc = recv(fd, &c, 1, 0)) == 1) { + *ptr++ = c; + if (c == '\n') + break; diff -ruN tinyproxy.old/files/patch-ab tinyproxy/files/patch-ab --- tinyproxy.old/files/patch-ab Thu Jan 1 09:00:00 1970 +++ tinyproxy/files/patch-ab Thu Feb 7 18:35:14 2002 @@ -0,0 +1,22 @@ +--- src/tinyproxy.h.dist Fri Oct 26 02:27:17 2001 ++++ src/tinyproxy.h Thu Feb 7 18:34:32 2002 +@@ -27,9 +27,6 @@ + * Include standard headers which are used through-out tinyproxy + */ + #include <sys/types.h> +-#ifdef HAVE_SYS_RESOURCE_H +-# include <sys/resource.h> +-#endif + #ifdef HAVE_SYS_SELECT_H + # include <sys/select.h> + #endif +@@ -44,6 +41,9 @@ + # else + # include <time.h> + # endif ++#endif ++#ifdef HAVE_SYS_RESOURCE_H ++# include <sys/resource.h> + #endif + #include <sys/uio.h> + #include <netinet/in.h> diff -ruN tinyproxy.old/pkg-descr tinyproxy/pkg-descr --- tinyproxy.old/pkg-descr Mon Mar 18 16:54:46 2002 +++ tinyproxy/pkg-descr Mon Mar 18 16:33:00 2002 @@ -1,10 +1,12 @@ -Tinyproxy is a lightweight, non-caching,optionally anonymizing http proxy. -It is designed to consume a minimum of system resources. -It listens on a given TCP port and handles HTTP proxy requests. +tinyproxy is a GPLed, lightweight HTTP proxy. Designed from the ground up to be +fast and yet small, it is an ideal solution for sites where a full-featured +HTTP proxy is required, but the system resources required to run a more +demanding HTTP proxy are unavailable. tinyproxy is fully compatible with all +existing web browsers, and has a number of useful features including +anonymous mode. -Note that tinyproxy requires commandline arguments to run in anonymizing -mode. For most people, "/usr/local/sbin/tinyproxy -a Host: -a Authorization:" -is sufficient for an anonymizing proxy. +Note that tinyproxy requires configuration to run in anonymizing +mode. See tinyproxy.conf.sample for detail. WWW: http://tinyproxy.sourceforge.net/ diff -ruN tinyproxy.old/pkg-plist tinyproxy/pkg-plist --- tinyproxy.old/pkg-plist Mon Mar 18 16:54:46 2002 +++ tinyproxy/pkg-plist Mon Mar 18 16:52:45 2002 @@ -1 +1,3 @@ sbin/tinyproxy +etc/tinyproxy/tinyproxy.conf.sample +@dirrm etc/tinyproxy >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020318080657.77327.qmail>