Date: Tue, 21 Sep 2010 10:59:21 GMT From: Pavel Pankov <pankov_p@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/150782: [maintainer update][patch]Update port: www/ziproxy to 3.2.0 Message-ID: <201009211059.o8LAxLG3010026@www.freebsd.org> Resent-Message-ID: <201009211100.o8LB0B5n029590@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 150782 >Category: ports >Synopsis: [maintainer update][patch]Update port: www/ziproxy to 3.2.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Sep 21 11:00:11 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Pavel Pankov >Release: 8.1-STABLE >Organization: PKD >Environment: FreeBSD vds4.pankov.pp.ru 8.1-STABLE FreeBSD 8.1-STABLE #0 r23M: Fri Sep 3 14:27:28 IRKST 2010 root@freebsd8-amd64.ispsystem.net:/root/src/sys/amd64/compile/DEBUG amd64 >Description: - Update to 3.2.0 (+ new configure options support) - Echo executed Makefile commands - Fix PORTDOCS installing - Update pkg-descr according to new features >How-To-Repeat: >Fix: Apply the attached patch. Patch attached with submission follows: Index: ports/www/ziproxy/Makefile =================================================================== RCS file: /home/ncvs/ports/www/ziproxy/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- ports/www/ziproxy/Makefile 28 Jul 2010 11:11:25 -0000 1.26 +++ ports/www/ziproxy/Makefile 21 Sep 2010 10:51:15 -0000 @@ -5,7 +5,7 @@ # $FreeBSD: ports/www/ziproxy/Makefile,v 1.26 2010/07/28 11:11:25 nemoliu Exp $ PORTNAME= ziproxy -PORTVERSION= 3.1.3 +PORTVERSION= 3.2.0 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -38,41 +38,43 @@ SUB_FILES+= pkg-message -OPTIONS+= JPEG2000 "Build with JPEG2000 support" on +OPTIONS+= JPEG2000 "Build with JPEG2000 support" on \ + SASL "Build with SASL auth support" on \ + NAMESERVERS "Enable Nameservers config option" on ERROR_FILES= 400.html 403.html 404.html 407.html 408.html 409.html \ 500.html 503.html SAMPLE_CONFIG_FILES= bo_exception.list change_tos.list deny.list http.passwd \ noprocess.list replace.list replace_ct.list \ - ziproxy.conf + ziproxy.conf sasl/ziproxy.conf post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ -e 's|%%DATADIR%%|${DATADIR}|g' \ ${WRKSRC}/etc/ziproxy/ziproxy.conf post-install: - @${MKDIR} ${PREFIX}/etc/ziproxy + ${MKDIR} ${PREFIX}/etc/ziproxy/sasl .for FILE in ${SAMPLE_CONFIG_FILES} - @${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/${FILE} ${PREFIX}/etc/ziproxy/${FILE}.sample + ${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/${FILE} ${PREFIX}/etc/ziproxy/${FILE}.sample .endfor - @if [ ! -f ${PREFIX}/etc/ziproxy/ziproxy.conf ]; then \ + if [ ! -f ${PREFIX}/etc/ziproxy/ziproxy.conf ]; then \ ${CP} -p ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf ; \ fi .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${MKDIR} ${DOCSDIR} .for FILE in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${DOC} + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE} .endfor .endif - @${MKDIR} ${DATADIR}/error + ${MKDIR} ${DATADIR}/error .for FILE in ${ERROR_FILES} - @${INSTALL_DATA} ${WRKSRC}/var/ziproxy/error/${FILE} ${DATADIR}/error/${FILE} + ${INSTALL_DATA} ${WRKSRC}/var/ziproxy/error/${FILE} ${DATADIR}/error/${FILE} .endfor - @${INSTALL_SCRIPT} ${WRKSRC}/src/tools/ziproxy_genhtml_stats.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/src/tools/ziproxy_genhtml_stats.sh ${PREFIX}/bin @${CAT} ${PKGMESSAGE} @@ -81,6 +83,21 @@ .if !defined(WITHOUT_JPEG2000) CONFIGURE_ARGS+= --with-jasper LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper +.else +CONFIGURE_ARGS+= --without-jasper +.endif + +.if !defined(WITHOUT_SASL) +CONFIGURE_ARGS+= --with-sasl2 +LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 +.else +CONFIGURE_ARGS+= --without-sasl2 +.endif + +.if !defined(WITHOUT_NAMESERVERS) +CONFIGURE_ARGS+= --enable-nameservers +.else +CONFIGURE_ARGS+= --disable-nameservers .endif .include <bsd.port.post.mk> Index: ports/www/ziproxy/distinfo =================================================================== RCS file: /home/ncvs/ports/www/ziproxy/distinfo,v retrieving revision 1.19 diff -u -r1.19 distinfo --- ports/www/ziproxy/distinfo 28 Jul 2010 11:11:25 -0000 1.19 +++ ports/www/ziproxy/distinfo 21 Sep 2010 10:51:15 -0000 @@ -1,3 +1,3 @@ -MD5 (ziproxy-3.1.3.tar.bz2) = dd09206461dc9b11833ff2823943ac9f -SHA256 (ziproxy-3.1.3.tar.bz2) = d5cbb42de327c66c76b6332cb06ca294df8c5130481500c6e93788951211b7a2 -SIZE (ziproxy-3.1.3.tar.bz2) = 261227 +MD5 (ziproxy-3.2.0.tar.bz2) = fb5fd0ba0ddd8412cd3a767ac63075ff +SHA256 (ziproxy-3.2.0.tar.bz2) = b2b67ec63169e24e523aac7bf7bd576b20786ae281f0f8b87ae518a093bde87e +SIZE (ziproxy-3.2.0.tar.bz2) = 264466 Index: ports/www/ziproxy/pkg-descr =================================================================== RCS file: /home/ncvs/ports/www/ziproxy/pkg-descr,v retrieving revision 1.2 diff -u -r1.2 pkg-descr --- ports/www/ziproxy/pkg-descr 1 Feb 2008 02:02:45 -0000 1.2 +++ ports/www/ziproxy/pkg-descr 21 Sep 2010 10:51:15 -0000 @@ -2,6 +2,10 @@ 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. +hostname resolution, transparent proxying, IP ToS marking (QoS), Ad-Blocker, +detailed logging and more. +Ziproxy does not require a client software and provides acceleration for any +web browser, any operational system. + WWW: http://ziproxy.sourceforge.net/ Index: ports/www/ziproxy/pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/ziproxy/pkg-plist,v retrieving revision 1.8 diff -u -r1.8 pkg-plist --- ports/www/ziproxy/pkg-plist 2 Jun 2010 11:24:45 -0000 1.8 +++ ports/www/ziproxy/pkg-plist 21 Sep 2010 10:51:15 -0000 @@ -1,7 +1,7 @@ bin/ziproxy bin/ziproxylogtool bin/ziproxy_genhtml_stats.sh -@exec mkdir -p %D/etc/ziproxy +@exec mkdir -p %D/etc/ziproxy/sasl etc/ziproxy/bo_exception.list.sample etc/ziproxy/change_tos.list.sample etc/ziproxy/deny.list.sample @@ -12,6 +12,8 @@ @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 +etc/ziproxy/sasl/ziproxy.conf.sample +@dirrmtry etc/ziproxy/sasl @dirrmtry etc/ziproxy %%DATADIR%%/error/400.html %%DATADIR%%/error/403.html Index: ports/www/ziproxy/files/patch-ziproxy.conf =================================================================== RCS file: /home/ncvs/ports/www/ziproxy/files/patch-ziproxy.conf,v retrieving revision 1.7 diff -u -r1.7 patch-ziproxy.conf --- ports/www/ziproxy/files/patch-ziproxy.conf 2 May 2010 16:52:11 -0000 1.7 +++ ports/www/ziproxy/files/patch-ziproxy.conf 21 Sep 2010 10:51:15 -0000 @@ -1,5 +1,5 @@ ---- etc/ziproxy/ziproxy.conf.orig 2010-03-08 12:23:20.000000000 +0300 -+++ etc/ziproxy/ziproxy.conf 2010-03-12 23:51:38.000000000 +0300 +--- etc/ziproxy/ziproxy.conf.orig 2010-09-04 06:06:15.000000000 +0400 ++++ etc/ziproxy/ziproxy.conf 2010-09-10 00:52:13.000000000 +0400 @@ -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. @@ -24,16 +24,25 @@ ## This is the content-type list of data that should ## have their traffic "differentiated" -@@ -261,7 +261,7 @@ - ## HTTP auth file - ## Should contain user:pass pairs, lines no longer than 128 chars - ## Password is unencrypted --# PasswdFile="/etc/ziproxy/http.passwd" -+# PasswdFile="%%PREFIX%%/etc/ziproxy/http.passwd" +@@ -279,7 +279,7 @@ + ## + ## Default: (undefined) + ## See also: AuthMode +-# AuthPasswdFile = "/etc/ziproxy/http.passwd" ++# AuthPasswdFile = "%%PREFIX%%/etc/ziproxy/http.passwd" + + ## Path to Ziproxy's SASL configuration file, where + ## a file named "ziproxy.conf" (not related to this one) +@@ -288,7 +288,7 @@ + ## + ## Default: (default SASL setting, OS-dependent, may be /etc/sasl2/) + ## See also: AuthMode +-# AuthSASLConfPath = "/etc/ziproxy/sasl/" ++# AuthSASLConfPath = "%%PREFIX%%/etc/ziproxy/sasl/" ## Forward everything to another proxy server. ## Modifications/compression is still applied. -@@ -299,7 +299,7 @@ +@@ -330,7 +330,7 @@ ## This option has no effect if BindOutgoing is not used. ## Default: empty, no hosts are exempted. ## See also: BindOutgoingExAddr @@ -42,7 +51,7 @@ ## Defines a specific IP to be bound to for hosts specified in BindOutgoingExList. ## As with BindOutgoing, this IP must be a local IP from the server running Ziproxy. -@@ -664,7 +664,7 @@ +@@ -702,7 +702,7 @@ ## *** THIS IS NOT SUPPOSED TO BE A DEFINITIVE SOLUTION TO INCOMPATIBILITIES *** ## ## Default: empty (no file specified, inactive) @@ -51,7 +60,7 @@ ## This option specifies a file containing a list of URLs which its ## data should be intercepted and replaced by another. -@@ -683,7 +683,7 @@ +@@ -721,7 +721,7 @@ ## ## Default: empty (no file specified, inactive) ## See also: URLReplaceDataCT @@ -60,7 +69,7 @@ ## Same as URLReplaceData, except it will only replace the data ## from matching URLs if the content-type matches -@@ -697,7 +697,7 @@ +@@ -735,7 +735,7 @@ ## ## Default: empty (no file specified, inactive) ## See also: URLReplaceDataCTList, URLReplaceData @@ -69,7 +78,7 @@ ## List of content-types to use with the URLReplaceDataCT option. ## This option is required by URLReplaceDataCT. -@@ -723,7 +723,7 @@ +@@ -761,7 +761,7 @@ ## A "access denied" 403 error will be returned when trying to access ## one of those URLs. ## Default: empty (no file specified, inactive) @@ -78,7 +87,7 @@ ## Custom HTTP Error Messages ## Define here the full path to the HTML file which should be -@@ -731,21 +731,21 @@ +@@ -769,21 +769,21 @@ ## Note: The internal defaults give more precise error messages. ## ## 400 - Bad request (malformed URL, or unknown URL type) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009211059.o8LAxLG3010026>