- Update to 2.5.0

- Changes:
- image.c:
	JP2 component bitdepth set as !=8 would make
	the process crash. Fixed.
- cfgfile.c:
	Certain defaults were unoptimal. Fixed.
- ziproxy.conf:
	Reorganized example configuration file,
	clearer to read now.

PR:		ports/120196
Submitted by:	Pankov Pavel <pankov_p@mail.ru> (maintainer)
This commit is contained in:
Beech Rintoul 2008-02-01 02:02:45 +00:00
parent 9fcf7c41ac
commit 3321ddea24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206535
7 changed files with 46 additions and 44 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= ziproxy
PORTVERSION= 2.4.3
PORTVERSION= 2.5.0
CATEGORIES= www
MASTER_SITES= SF
@ -26,12 +26,15 @@ ERRORFILES= 400.html 404.html 408.html 500.html 503.html
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cfgfile="${PREFIX}/etc/ziproxy.conf"
CONFIGURE_ARGS+= --with-cfgfile="${PREFIX}/etc/ziproxy/ziproxy.conf"
.if !defined(NOPORTDOCS)
PORTDOCS= README
.endif
MAN1= ziproxy.1 ziproxylogtool.1
MANCOMPRESSED= no
USE_RC_SUBR= ziproxy
SUB_FILES+= pkg-message
@ -41,16 +44,13 @@ OPTIONS+= JPEG2000 "Build with JPEG2000 support" on
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/etc/ziproxy.conf
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
${WRKSRC}/etc/ziproxy/ziproxy.conf
post-install:
@${MKDIR} ${PREFIX}/etc
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy.conf ${PREFIX}/etc/ziproxy.conf.sample
@if [ ! -f ${PREFIX}/etc/ziproxy.conf ]; then \
${CP} -p ${WRKSRC}/etc/ziproxy.conf ${PREFIX}/etc/ziproxy.conf ; \
@${MKDIR} ${PREFIX}/etc/ziproxy
@${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf.sample
@if [ ! -f ${PREFIX}/etc/ziproxy/ziproxy.conf ]; then \
${CP} -p ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf ; \
fi
.if !defined(NOPORTDOCS)

View File

@ -1,3 +1,3 @@
MD5 (ziproxy-2.4.3.tar.bz2) = ae174253ac582f6e2554b9325849de02
SHA256 (ziproxy-2.4.3.tar.bz2) = 784cf1bc95190383af698719f505716f6bc66f8548011ac80460364d59231cfc
SIZE (ziproxy-2.4.3.tar.bz2) = 177422
MD5 (ziproxy-2.5.0.tar.bz2) = fc923195ef8dbb199d0d4b7e6061cf99
SHA256 (ziproxy-2.5.0.tar.bz2) = 498fccdcdaa368a707b5f9780350db016a3dba90b4c1f764b0d00e0ae84d5765
SIZE (ziproxy-2.5.0.tar.bz2) = 211216

View File

@ -1,6 +1,6 @@
--- etc/ziproxy.conf.orig 2007-09-06 07:51:42.000000000 +0400
+++ etc/ziproxy.conf 2007-09-15 13:31:16.000000000 +0400
@@ -11,12 +11,12 @@
--- etc/ziproxy/ziproxy.conf.orig Thu Jan 24 20:41:01 2008
+++ etc/ziproxy/ziproxy.conf Fri Feb 1 00:34:04 2008
@@ -12,12 +12,12 @@
## If you have more than one network interface,
## it's useful for restricting to which interface you want to bind to.
## By default Ziproxy binds to all interfaces.
@ -13,18 +13,27 @@
-# OnlyFrom = "127.0.0.1"
+OnlyFrom = "127.0.0.1"
# Inactivity timeout before closing the daemon (0 = no timeout)
NetdTimeout = 0
@@ -50,7 +50,7 @@
## Inactivity timeout before closing the daemon (0 = no timeout)
## default: 0 (no timeout)
@@ -67,7 +67,7 @@
## HTTP auth file
## Should contain user:pass pairs, lines no longer than 128 chars
## Password is unencrypted
-# PasswdFile="/usr/local/ziproxy/ziproxy.passwd"
+# PasswdFile="%%PREFIX%%/etc/ziproxy.passwd"
-# PasswdFile="/etc/ziproxy/http.passwd"
+# PasswdFile="%%PREFIX%%/etc/ziproxy/http.passwd"
## Forward everything to another proxy server.
## Modifications/compression is still applied.
@@ -263,13 +263,13 @@
@@ -371,7 +371,7 @@
## *** THIS IS NOT SUPPOSED TO BE A DEFINITIVE SOLUTION TO INCOMPATIBILITIES ***
##
## Defauly: empty (no file specified, inactive)
-# URLNoProcessing = "/etc/ziproxy/noprocess.list"
+# URLNoProcessing = "%%PREFIX%%/etc/ziproxy/noprocess.list"
## Custom HTTP Error Messages
## Define here the full path to the HTML file which should be
@@ -379,15 +379,15 @@
## Note: The internal defaults give more precise error messages.
##
## 400 - Bad request (malformed URL, or unknown URL type)
@ -43,3 +52,5 @@
-# CustomError503="/var/ziproxy/error/503.html"
+# CustomError503="%%DATADIR%%/error/503.html"

View File

@ -1,14 +1,2 @@
By default ziproxy is configured to accept connections on localhost only.
Edit %%PREFIX%%/etc/ziproxy.conf to allow remote access.
There is no man page yet, but information can be found in
%%DOCSDIR%%/README.
ziproxy can be started the following ways:
o daemon mode:
* add ziproxy_enable="YES" to your /etc/rc.conf
* use rc(8) script %%PREFIX%%/etc/rc.d/ziproxy.sh
o inetd mode:
* add ``http-proxy 8080/tcp #HTTP Proxy'' to /etc/services
* add ``http-proxy stream tcp nowait nobody /usr/local/bin/ziproxy ziproxy -i'' to your /etc/inetd.conf
* reload inetd(8) config files by doing `/etc/rc.d/inetd reload`
Edit %%PREFIX%%/etc/ziproxy/ziproxy.conf to allow remote access.

View File

@ -8,7 +8,7 @@
#
# ziproxy_enable (bool): Set to NO by default.
# Set it to YES to enable ziproxy.
# ziproxy_config (path): Set to %%PREFIX%%/etc/ziproxy.conf
# ziproxy_config (path): Set to %%PREFIX%%/etc/ziproxy/ziproxy.conf
# by default.
#
@ -23,7 +23,7 @@ pidfile=/var/run/${name}.pid
load_rc_config $name
: ${ziproxy_enable="NO"}
: ${ziproxy_config="%%PREFIX%%/etc/ziproxy.conf"}
: ${ziproxy_config="%%PREFIX%%/etc/ziproxy/ziproxy.conf"}
command_args="-d -c ${ziproxy_config} > ${pidfile}"

View File

@ -1,6 +1,7 @@
Ziproxy is forwarding, non-caching, compressing proxy server. It
squeezes images by converting them to low quality jpegs and
optionally can also gzip HTML and other text-like data. It is
intended to free bandwidth on dialup connections.
Ziproxy is forwarding, non-caching, compressing HTTP proxy server.
Basically it squeezes images by converting them to lower quality JPEGs or
JPEG 2000 and compresses (gzip) HTML and other text-like data.
It also provides other features such as: HTML/JS/CSS optimization, preemptive
hostname resolution, transparent proxying and more.
WWW: http://ziproxy.sourceforge.net/

View File

@ -1,9 +1,11 @@
bin/ziproxy
bin/ziproxylogtool
bin/ziproxy_genhtml_stats.sh
@unexec if cmp -s %D/etc/ziproxy.conf.sample %D/etc/ziproxy.conf; then rm -f %D/etc/ziproxy.conf; fi
@exec if [ ! -f %D/etc/ziproxy.conf ] ; then cp -p %D/%F %B/ziproxy.conf; fi
etc/ziproxy.conf.sample
@exec mkdir -p %D/etc/ziproxy
@unexec if cmp -s %D/etc/ziproxy/ziproxy.conf.sample %D/etc/ziproxy/ziproxy.conf; then rm -f %D/etc/ziproxy/ziproxy.conf; fi
@exec if [ ! -f %D/etc/ziproxy/ziproxy.conf ] ; then cp -p %D/%F %B/ziproxy.conf; fi
etc/ziproxy/ziproxy.conf.sample
@dirrmtry etc/ziproxy
%%DATADIR%%/error/400.html
%%DATADIR%%/error/404.html
%%DATADIR%%/error/408.html