From e89f518e9fef5426f4f5bec0526c89d2bf0db269 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 23 Feb 2016 19:12:45 +0100 Subject: [PATCH] www/privoxy: Update to 3.0.26 stable - Use official website as primary master site. - Add option to increase the number of connections Privoxy can serve at the same time. - Quote variables in the rc script more consistently The upstream changes are documented at: https://www.privoxy.org/3.0.26/user-manual/whatsnew.html --- www/privoxy/Makefile | 12 ++++++++---- www/privoxy/distinfo | 5 +++-- www/privoxy/files/privoxy.in | 32 ++++++++++++++++---------------- 3 files changed, 27 insertions(+), 22 deletions(-) diff --git a/www/privoxy/Makefile b/www/privoxy/Makefile index 2865233..e9a35d0 100644 --- a/www/privoxy/Makefile +++ b/www/privoxy/Makefile @@ -2,9 +2,10 @@ # $FreeBSD$ PORTNAME= privoxy -PORTVERSION= 3.0.24 +PORTVERSION= 3.0.26 CATEGORIES= www ipv6 -MASTER_SITES= SF/ijbswa/Sources/${PORTVERSION}%20%28stable%29 +MASTER_SITES= https://www.privoxy.org/sf-download-mirror/Sources/${PORTVERSION}%20(stable)/ \ + SF/ijbswa/Sources/${PORTVERSION}%20%28stable%29 DISTNAME= privoxy-${PORTVERSION}-stable-src MAINTAINER= fk@fabiankeil.de @@ -33,14 +34,15 @@ GROUPS= privoxy CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= ACCEPT_FILTER BROKEN_STRPTIME COMPRESSION DEBUG \ - DOCS EDITOR FORCE PRIVOXY_TOOLS TOGGLE +OPTIONS_DEFINE= ACCEPT_FILTER BROKEN_STRPTIME BUMP_FD_SETSIZE COMPRESSION \ + DEBUG DOCS EDITOR FORCE PRIVOXY_TOOLS TOGGLE ACCEPT_FILTER_DESC= Support for accf_http(9) BROKEN_STRPTIME_DESC= Enable workaround for standards/173421 COMPRESSION_DESC= Support compression of buffered content DOCS_DESC= Let Privoxy serve the user manual EDITOR_DESC= Support use of the web-based action editor +BUMP_FD_SETSIZE_DESC= Support more client connections at the same time FORCE_DESC= Support bypassing of blocks PRIVOXY_TOOLS_DESC= Install Privoxy-Log-Parser, uagen, etc. TOGGLE_DESC= Support for remote toggling @@ -53,6 +55,8 @@ ACCEPT_FILTER_CONFIGURE_ON= --enable-accept-filter BROKEN_STRPTIME_CONFIGURE_ON= --enable-strptime-sanity-checks +BUMP_FD_SETSIZE_CONFIGURE_ON= --with-fdsetsize=8192 + COMPRESSION_CONFIGURE_ON= --enable-compression DEBUG_CONFIGURE_ON= --with-debug diff --git a/www/privoxy/distinfo b/www/privoxy/distinfo index 13b690f..7801b65 100644 --- a/www/privoxy/distinfo +++ b/www/privoxy/distinfo @@ -1,2 +1,3 @@ -SHA256 (privoxy-3.0.24-stable-src.tar.gz) = a381f6dc78f08de0d4a2342d47a5949a6608073ada34b933137184f3ca9fb012 -SIZE (privoxy-3.0.24-stable-src.tar.gz) = 1728265 +TIMESTAMP = 1472287144 +SHA256 (privoxy-3.0.26-stable-src.tar.gz) = 57e415b43ee5dfdca74685cc034053eaae962952fdabd086171551a86abf9cd8 +SIZE (privoxy-3.0.26-stable-src.tar.gz) = 1741772 diff --git a/www/privoxy/files/privoxy.in b/www/privoxy/files/privoxy.in index 98d766c..9518a78 100644 --- a/www/privoxy/files/privoxy.in +++ b/www/privoxy/files/privoxy.in @@ -36,26 +36,26 @@ load_rc_config ${name} : ${privoxy_pidfile="${privoxy_piddir}/privoxy.pid"} privoxy_prestart () { - if [ ! -e ${privoxy_config} ]; then - echo config file not found. Copying the example file to ${privoxy_config}. - cp %%PREFIX%%/share/examples/privoxy/config ${privoxy_config} - chown ${privoxy_user}:${privoxy_user} ${privoxy_config}; + if [ ! -e "${privoxy_config}" ]; then + echo "config file not found. Copying the example file to ${privoxy_config}." + cp %%PREFIX%%/share/examples/privoxy/config "${privoxy_config}" + chown "${privoxy_user}:${privoxy_user}" "${privoxy_config}"; fi actionfile="%%PREFIX%%/etc/privoxy/match-all.action" - if [ ! -e ${actionfile} ]; then - echo ${actionfile} not found. Copying the example file. - cp %%PREFIX%%/share/examples/privoxy/match-all.action ${actionfile} - chown ${privoxy_user}:${privoxy_user} ${actionfile} + if [ ! -e "${actionfile}" ]; then + echo "${actionfile} not found. Copying the example file." + cp %%PREFIX%%/share/examples/privoxy/match-all.action "${actionfile}" + chown "${privoxy_user}:${privoxy_user}" "${actionfile}" fi - if [ ! -e ${privoxy_logdir} ]; then - echo ${privoxy_logdir} not found. Creating ... - mkdir ${privoxy_logdir} - chown ${privoxy_user}:${privoxy_user} ${privoxy_logdir} - chmod 0750 ${privoxy_logdir} + if [ ! -e "${privoxy_logdir}" ]; then + echo "${privoxy_logdir} not found. Creating ..." + mkdir "${privoxy_logdir}" + chown "${privoxy_user}:${privoxy_user}" "${privoxy_logdir}" + chmod 0750 "${privoxy_logdir}" fi - if [ ! -d ${privoxy_piddir} ]; then - mkdir -p ${privoxy_piddir} - chown ${privoxy_user}:${privoxy_user} ${privoxy_piddir} + if [ ! -d "${privoxy_piddir}" ]; then + mkdir -p "${privoxy_piddir}" + chown "${privoxy_user}:${privoxy_user}" "${privoxy_piddir}" fi } -- 2.9.0