Wed Feb 24 23:22:45 2010 UTC ()
Update to privoxy 3.0.16 stable.

This is the first stable release since 3.0.12.
It introduces IPv6 support, improved keep-alive support and a bunch of
minor improvements.


(mjl)
diff -r1.42 -r1.43 pkgsrc/www/privoxy/Makefile
diff -r1.8 -r1.9 pkgsrc/www/privoxy/PLIST
diff -r1.14 -r1.15 pkgsrc/www/privoxy/distinfo
diff -r1.5 -r1.6 pkgsrc/www/privoxy/patches/patch-ab
diff -r1.2 -r1.3 pkgsrc/www/privoxy/patches/patch-ag

cvs diff -r1.42 -r1.43 pkgsrc/www/privoxy/Makefile (expand / switch to unified diff)

--- pkgsrc/www/privoxy/Makefile 2010/02/09 20:18:43 1.42
+++ pkgsrc/www/privoxy/Makefile 2010/02/24 23:22:45 1.43
@@ -1,19 +1,18 @@ @@ -1,19 +1,18 @@
1# $NetBSD: Makefile,v 1.42 2010/02/09 20:18:43 joerg Exp $ 1# $NetBSD: Makefile,v 1.43 2010/02/24 23:22:45 mjl Exp $
2# 2#
3 3
4DISTNAME= ${PKGNAME_NOREV}-stable-src 4DISTNAME= ${PKGNAME_NOREV}-stable-src
5PKGNAME= privoxy-3.0.12 5PKGNAME= privoxy-3.0.16
6PKGREVISION= 1 
7CATEGORIES= www 6CATEGORIES= www
8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/}
9 8
10MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.privoxy.org/ 10HOMEPAGE= http://www.privoxy.org/
12COMMENT= Web proxy with advanced filtering capabilities 11COMMENT= Web proxy with advanced filtering capabilities
13 12
14PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
15 14
16.include "../../mk/bsd.prefs.mk" 15.include "../../mk/bsd.prefs.mk"
17 16
18PRIVOXY_USER?= privoxy 17PRIVOXY_USER?= privoxy
19PRIVOXY_GROUP?= privoxy 18PRIVOXY_GROUP?= privoxy
@@ -23,27 +22,28 @@ PKG_USERS_VARS+= PRIVOXY_USER @@ -23,27 +22,28 @@ PKG_USERS_VARS+= PRIVOXY_USER
23PKG_SYSCONFSUBDIR?= privoxy 22PKG_SYSCONFSUBDIR?= privoxy
24 23
25RCD_SCRIPTS= privoxy 24RCD_SCRIPTS= privoxy
26PKG_GROUPS= ${PRIVOXY_GROUP} 25PKG_GROUPS= ${PRIVOXY_GROUP}
27PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP} 26PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP}
28 27
29EGDIR= ${PREFIX}/share/examples/privoxy 28EGDIR= ${PREFIX}/share/examples/privoxy
30 29
31CPPFLAGS+= -Dunix 30CPPFLAGS+= -Dunix
32 31
33WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable 32WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable
34 33
35USE_FEATURES= snprintf 34USE_FEATURES= snprintf
36USE_TOOLS+= autoconf213 gmake mktemp 35USE_TOOLS+= gmake mktemp autoconf autoheader
 36BUILD_DEFS+= VARBASE
37MAKE_FILE= GNUmakefile 37MAKE_FILE= GNUmakefile
38 38
39USE_TOOLS+= perl 39USE_TOOLS+= perl
40 40
41PTHREAD_AUTO_VARS= yes 41PTHREAD_AUTO_VARS= yes
42PTHREAD_OPTS+= require 42PTHREAD_OPTS+= require
43 43
44GNU_CONFIGURE= YES 44GNU_CONFIGURE= YES
45CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} 45CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
46CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q} 46CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q}
47CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q} 47CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q}
48CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q} 48CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q}
49 49

cvs diff -r1.8 -r1.9 pkgsrc/www/privoxy/PLIST (expand / switch to unified diff)

--- pkgsrc/www/privoxy/PLIST 2009/06/14 22:00:31 1.8
+++ pkgsrc/www/privoxy/PLIST 2010/02/24 23:22:45 1.9
@@ -1,29 +1,28 @@ @@ -1,29 +1,28 @@
1@comment $NetBSD: PLIST,v 1.8 2009/06/14 22:00:31 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.9 2010/02/24 23:22:45 mjl Exp $
2man/man1/privoxy.1 2man/man1/privoxy.1
3sbin/privoxy 3sbin/privoxy
4share/doc/privoxy/AUTHORS 4share/doc/privoxy/AUTHORS
5share/doc/privoxy/ChangeLog 5share/doc/privoxy/ChangeLog
6share/doc/privoxy/LICENSE 6share/doc/privoxy/LICENSE
7share/doc/privoxy/README 7share/doc/privoxy/README
8share/doc/privoxy/developer-manual/coding.html 8share/doc/privoxy/developer-manual/coding.html
9share/doc/privoxy/developer-manual/contact.html 9share/doc/privoxy/developer-manual/contact.html
10share/doc/privoxy/developer-manual/copyright.html 10share/doc/privoxy/developer-manual/copyright.html
11share/doc/privoxy/developer-manual/cvs.html 11share/doc/privoxy/developer-manual/cvs.html
12share/doc/privoxy/developer-manual/documentation.html 12share/doc/privoxy/developer-manual/documentation.html
13share/doc/privoxy/developer-manual/index.html 13share/doc/privoxy/developer-manual/index.html
14share/doc/privoxy/developer-manual/introduction.html 14share/doc/privoxy/developer-manual/introduction.html
15share/doc/privoxy/developer-manual/newrelease.html 15share/doc/privoxy/developer-manual/newrelease.html
16share/doc/privoxy/developer-manual/quickstart.html 
17share/doc/privoxy/developer-manual/seealso.html 16share/doc/privoxy/developer-manual/seealso.html
18share/doc/privoxy/developer-manual/testing.html 17share/doc/privoxy/developer-manual/testing.html
19share/doc/privoxy/developer-manual/webserver-update.html 18share/doc/privoxy/developer-manual/webserver-update.html
20share/doc/privoxy/faq/configuration.html 19share/doc/privoxy/faq/configuration.html
21share/doc/privoxy/faq/contact.html 20share/doc/privoxy/faq/contact.html
22share/doc/privoxy/faq/copyright.html 21share/doc/privoxy/faq/copyright.html
23share/doc/privoxy/faq/general.html 22share/doc/privoxy/faq/general.html
24share/doc/privoxy/faq/index.html 23share/doc/privoxy/faq/index.html
25share/doc/privoxy/faq/installation.html 24share/doc/privoxy/faq/installation.html
26share/doc/privoxy/faq/misc.html 25share/doc/privoxy/faq/misc.html
27share/doc/privoxy/faq/trouble.html 26share/doc/privoxy/faq/trouble.html
28share/doc/privoxy/index.html 27share/doc/privoxy/index.html
29share/doc/privoxy/man-page/privoxy-man-page.html 28share/doc/privoxy/man-page/privoxy-man-page.html
@@ -36,33 +35,34 @@ share/doc/privoxy/user-manual/contact.ht @@ -36,33 +35,34 @@ share/doc/privoxy/user-manual/contact.ht
36share/doc/privoxy/user-manual/copyright.html 35share/doc/privoxy/user-manual/copyright.html
37share/doc/privoxy/user-manual/files-in-use.jpg 36share/doc/privoxy/user-manual/files-in-use.jpg
38share/doc/privoxy/user-manual/filter-file.html 37share/doc/privoxy/user-manual/filter-file.html
39share/doc/privoxy/user-manual/index.html 38share/doc/privoxy/user-manual/index.html
40share/doc/privoxy/user-manual/installation.html 39share/doc/privoxy/user-manual/installation.html
41share/doc/privoxy/user-manual/introduction.html 40share/doc/privoxy/user-manual/introduction.html
42share/doc/privoxy/user-manual/p_doc.css 41share/doc/privoxy/user-manual/p_doc.css
43share/doc/privoxy/user-manual/proxy2.jpg 42share/doc/privoxy/user-manual/proxy2.jpg
44share/doc/privoxy/user-manual/proxy_setup.jpg 43share/doc/privoxy/user-manual/proxy_setup.jpg
45share/doc/privoxy/user-manual/quickstart.html 44share/doc/privoxy/user-manual/quickstart.html
46share/doc/privoxy/user-manual/seealso.html 45share/doc/privoxy/user-manual/seealso.html
47share/doc/privoxy/user-manual/startup.html 46share/doc/privoxy/user-manual/startup.html
48share/doc/privoxy/user-manual/templates.html 47share/doc/privoxy/user-manual/templates.html
49share/doc/privoxy/user-manual/upgradersnote.html 
50share/doc/privoxy/user-manual/whatsnew.html 48share/doc/privoxy/user-manual/whatsnew.html
51share/examples/privoxy/templates/url-info-osd.xml 49share/examples/privoxy/templates/url-info-osd.xml
52share/examples/privoxy/config 50share/examples/privoxy/config
53share/examples/privoxy/default.action 51share/examples/privoxy/default.action
54share/examples/privoxy/default.filter 52share/examples/privoxy/default.filter
55share/examples/privoxy/match-all.action 53share/examples/privoxy/match-all.action
 54share/examples/privoxy/templates/connection-timeout
 55share/examples/privoxy/templates/no-server-data
56share/examples/privoxy/templates/blocked 56share/examples/privoxy/templates/blocked
57share/examples/privoxy/templates/cgi-error-404 57share/examples/privoxy/templates/cgi-error-404
58share/examples/privoxy/templates/cgi-error-bad-param 58share/examples/privoxy/templates/cgi-error-bad-param
59share/examples/privoxy/templates/cgi-error-disabled 59share/examples/privoxy/templates/cgi-error-disabled
60share/examples/privoxy/templates/cgi-error-file 60share/examples/privoxy/templates/cgi-error-file
61share/examples/privoxy/templates/cgi-error-file-read-only 61share/examples/privoxy/templates/cgi-error-file-read-only
62share/examples/privoxy/templates/cgi-error-modified 62share/examples/privoxy/templates/cgi-error-modified
63share/examples/privoxy/templates/cgi-error-parse 63share/examples/privoxy/templates/cgi-error-parse
64share/examples/privoxy/templates/cgi-style.css 64share/examples/privoxy/templates/cgi-style.css
65share/examples/privoxy/templates/connect-failed 65share/examples/privoxy/templates/connect-failed
66share/examples/privoxy/templates/default 66share/examples/privoxy/templates/default
67share/examples/privoxy/templates/edit-actions-add-url-form 67share/examples/privoxy/templates/edit-actions-add-url-form
68share/examples/privoxy/templates/edit-actions-for-url 68share/examples/privoxy/templates/edit-actions-for-url

cvs diff -r1.14 -r1.15 pkgsrc/www/privoxy/distinfo (expand / switch to unified diff)

--- pkgsrc/www/privoxy/distinfo 2010/02/09 20:18:43 1.14
+++ pkgsrc/www/privoxy/distinfo 2010/02/24 23:22:45 1.15
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.14 2010/02/09 20:18:43 joerg Exp $ 1$NetBSD: distinfo,v 1.15 2010/02/24 23:22:45 mjl Exp $
2 2
3SHA1 (privoxy-3.0.12-stable-src.tar.gz) = 1118d6a7b4980f26c9ad0902c0e6af5aaaf1a640 3SHA1 (privoxy-3.0.16-stable-src.tar.gz) = 2c9c44034ff0509c124fac98cb741a2c2572edcd
4RMD160 (privoxy-3.0.12-stable-src.tar.gz) = 32509b897e073f1cc100b8a4a157d19a219b51cd 4RMD160 (privoxy-3.0.16-stable-src.tar.gz) = 36723f0269f9a03394c959eb6587b57fdb7eb713
5Size (privoxy-3.0.12-stable-src.tar.gz) = 1811124 bytes 5Size (privoxy-3.0.16-stable-src.tar.gz) = 1656721 bytes
6SHA1 (patch-aa) = c263d2a4b9522a33613f82ab2bc18d5c2b554b21 6SHA1 (patch-aa) = c263d2a4b9522a33613f82ab2bc18d5c2b554b21
7SHA1 (patch-ab) = 2e16792661d12d74231cb2deef2f343ae2dc1d66 7SHA1 (patch-ab) = aa54264ea32954be4cba3fcf5ed4d08919179fb9
8SHA1 (patch-ac) = e39ffe694462b952c5ad66ac577a0acbee0a1d9f 8SHA1 (patch-ac) = e39ffe694462b952c5ad66ac577a0acbee0a1d9f
9SHA1 (patch-ag) = fea1c2ef70a99ab6da3feab22c69f3b98c0e75d0 9SHA1 (patch-ag) = 79d1d09122b52617d4abededcbfdc38b1f6caf8f

cvs diff -r1.5 -r1.6 pkgsrc/www/privoxy/patches/patch-ab (expand / switch to unified diff)

--- pkgsrc/www/privoxy/patches/patch-ab 2010/02/09 20:18:43 1.5
+++ pkgsrc/www/privoxy/patches/patch-ab 2010/02/24 23:22:45 1.6
@@ -1,44 +1,44 @@ @@ -1,44 +1,44 @@
1$NetBSD: patch-ab,v 1.5 2010/02/09 20:18:43 joerg Exp $ 1$NetBSD: patch-ab,v 1.6 2010/02/24 23:22:45 mjl Exp $
2 2
3--- GNUmakefile.in.orig 2009-02-28 08:28:14.000000000 +0000 3--- GNUmakefile.in.orig 2009-12-16 09:15:42.000000000 +0100
4+++ GNUmakefile.in 4+++ GNUmakefile.in 2010-02-24 20:15:48.000000000 +0100
5@@ -87,7 +87,7 @@ INSTALL = @INSTALL@ 5@@ -85,7 +85,7 @@
6 # Binaries 6 # Binaries
7 BIN_MODE = 0755 7 BIN_MODE = 0755
8 # Support files, docs, etc. 8 # Support files, docs, etc.
9-RA_MODE = 0664 9-RA_MODE = 0664
10+RA_MODE = 0644 10+RA_MODE = 0644
11 # Directory 11 # Directory
12 DIR_MODE = 0755 12 DIR_MODE = 0755
13 # Files daemon writes to. 13 # Files daemon writes to.
14@@ -1029,16 +1029,6 @@ install-strip: 14@@ -787,16 +787,6 @@
15 # Perhaps the whole user/group validation should be done here, and simplified. 15 # Perhaps the whole user/group validation should be done here, and simplified.
16 PROGRAM_V = Privoxy $(VERSION) $(CODE_STATUS) 16 PROGRAM_V = Privoxy $(VERSION) $(CODE_STATUS)
17 install: CONF_DEST LOG_DEST PID_DEST check_doc GROUP_T 17 install: CONF_DEST LOG_DEST PID_DEST check_doc GROUP_T
18- @# Quick test for valid USER. 18- @# Quick test for valid USER.
19- @if [ -n "$(USER)" ]; then \ 19- @if [ -n "$(USER)" ]; then \
20- $(ID) $(USER) >/dev/null || exit 1;\ 20- $(ID) $(USER) >/dev/null || exit 1;\
21- fi 21- fi
22- @# Test for valid group. FIXME. USER does not have to belong to GROUP  22- @# Test for valid group. FIXME. USER does not have to belong to GROUP
23- @# for file ownership purposes. 23- @# for file ownership purposes.
24-# if [ -n "$(GROUP_T)" ] && [ -n "$(USER)" ] && ! $(GROUPS) $(USER) | $(GREP) "\<$(GROUP_T)\>" >/dev/null; then \ 24-# if [ -n "$(GROUP_T)" ] && [ -n "$(USER)" ] && ! $(GROUPS) $(USER) | $(GREP) "\<$(GROUP_T)\>" >/dev/null; then \
25-# $(ECHO) Group $(GROUP_T) for User $(USER) is invalid && exit 1 ;\ 25-# $(ECHO) Group $(GROUP_T) for User $(USER) is invalid && exit 1 ;\
26-# fi 26-# fi
27- 27-
28 @$(ECHO) "Creating directories, and preparing $(PROGRAM_V) installation" 28 @$(ECHO) "Creating directories, and preparing $(PROGRAM_V) installation"
29 $(CHMOD) $(DIR_MODE) $(MKDIR) 29 $(CHMOD) $(DIR_MODE) $(MKDIR)
30 @$(MKDIR) $(DESTDIR)$(SBIN_DEST) $(DESTDIR)$(prefix) $(DESTDIR)$(CONF_DEST) \ 30 @$(MKDIR) $(DESTDIR)$(SBIN_DEST) $(DESTDIR)$(prefix) $(DESTDIR)$(CONF_DEST) \
31@@ -1106,41 +1096,6 @@ install: CONF_DEST LOG_DEST PID_DEST che 31@@ -864,41 +854,6 @@
32 $(INSTALL) $(INSTALL_T) $$i $(DESTDIR)$(CONF_DEST)/templates ;\ 32 $(INSTALL) $(INSTALL_T) $$i $(DESTDIR)$(CONF_DEST)/templates ;\
33 done 33 done
34  34
35- @# FIXME: group/user validation is overly convoluted. 35- @# FIXME: group/user validation is overly convoluted.
36- @# If superuser install ... we require a minimum of group ownership 36- @# If superuser install ... we require a minimum of group ownership
37- @# of those files the daemon writes to, to be non-root owned. 37- @# of those files the daemon writes to, to be non-root owned.
38- @if [ "`$(ID) |sed 's/(.*//' |sed 's/.*=//'`" = "0" ] ;then\ 38- @if [ "`$(ID) |sed 's/(.*//' |sed 's/.*=//'`" = "0" ] ;then\
39- if [ x$(USER) = x ] || [ $(USER) = root ]; then \ 39- if [ x$(USER) = x ] || [ $(USER) = root ]; then \
40- if [ x$(GROUP) = x ] || [ $(GROUP) = root ]; then \ 40- if [ x$(GROUP) = x ] || [ $(GROUP) = root ]; then \
41- if [ "`$(ID) privoxy`" ] && \ 41- if [ "`$(ID) privoxy`" ] && \
42- $(GROUPS) privoxy | $(SED) 's/^.*://' |$(GREP) "\<privoxy\>" >/dev/null; then \ 42- $(GROUPS) privoxy | $(SED) 's/^.*://' |$(GREP) "\<privoxy\>" >/dev/null; then \
43- $(ECHO) "Warning: Setting group owner to privoxy";\ 43- $(ECHO) "Warning: Setting group owner to privoxy";\
44- GROUP_T=privoxy ;\ 44- GROUP_T=privoxy ;\
@@ -60,59 +60,50 @@ $NetBSD: patch-ab,v 1.5 2010/02/09 20:18 @@ -60,59 +60,50 @@ $NetBSD: patch-ab,v 1.5 2010/02/09 20:18
60- INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\ 60- INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\
61- GROUP_T=$(GROUP_T) ;\ 61- GROUP_T=$(GROUP_T) ;\
62- fi ;\ 62- fi ;\
63- else \ 63- else \
64- if [ ! "`id $(USER)`" = "`id`" ] ;then \ 64- if [ ! "`id $(USER)`" = "`id`" ] ;then \
65- $(ECHO) "** WARNING ** current install user different from configured user!!" ;\ 65- $(ECHO) "** WARNING ** current install user different from configured user!!" ;\
66- $(ECHO) "Edit may fail." ;\ 66- $(ECHO) "Edit may fail." ;\
67- fi ;\ 67- fi ;\
68- INSTALL_CONF="$(INSTALL_R)" ;\ 68- INSTALL_CONF="$(INSTALL_R)" ;\
69- fi ;\ 69- fi ;\
70 $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\ 70 $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\
71 for i in $(CONFIGS); do \ 71 for i in $(CONFIGS); do \
72 if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] ; then \ 72 if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] ; then \
73@@ -1159,45 +1114,6 @@ install: CONF_DEST LOG_DEST PID_DEST che 73@@ -917,36 +872,6 @@
74 $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\ 74 $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\
75 $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\ 75 $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\
76 fi ;\ 76 fi ;\
77- [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \ 77- [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \
78- $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\ 78- $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\
79- $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\ 79- $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\
80- if [ x$$USER != x ]; then \ 80- if [ x$$USER != x ]; then \
81- $(CHOWN) $$USER $(DESTDIR)$(LOG_DEST)/logfile || \ 81- $(CHOWN) $$USER $(DESTDIR)$(LOG_DEST)/logfile || \
82- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\ 82- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
83- fi ;\ 83- fi ;\
84- if [ x$$GROUP_T != x ]; then \ 84- if [ x$$GROUP_T != x ]; then \
85- $(CHGRP) $$GROUP_T $(DESTDIR)$(LOG_DEST)/logfile || \ 85- $(CHGRP) $$GROUP_T $(DESTDIR)$(LOG_DEST)/logfile || \
86- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\ 86- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
87- fi ;\ 87- fi ;\
88- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\ 88- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\
89- if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \ 89- if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
90- if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \ 90- if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \
91- $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \ 91- $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \
92- $(SED) 's+%SBIN_DEST%+$(SBIN_DEST)+' | \ 92- $(SED) 's+%SBIN_DEST%+$(SBIN_DEST)+' | \
93- $(SED) 's+%CONF_DEST%+$(CONF_DEST)+' | \ 93- $(SED) 's+%CONF_DEST%+$(CONF_DEST)+' | \
94- $(SED) 's+%USER%+$(USER)+' | \ 94- $(SED) 's+%USER%+$(USER)+' | \
95- $(SED) 's+%GROUP%+$(GROUP_T)+' >slackware/rc.privoxy ;\ 95- $(SED) 's+%GROUP%+$(GROUP_T)+' >slackware/rc.privoxy ;\
96- $(INSTALL) $(INSTALL_P) slackware/rc.privoxy $(DESTDIR)/etc/rc.d/ ;\ 96- $(INSTALL) $(INSTALL_P) slackware/rc.privoxy $(DESTDIR)/etc/rc.d/ ;\
97- $(ECHO) "Installing for Slackware." ;\ 97- $(ECHO) "Installing for Slackware." ;\
98- $(ECHO) "Dont forget to add the rc.privoxy to rc.local if you want it started at every boot" ;\ 98- $(ECHO) "Dont forget to add the rc.privoxy to rc.local if you want it started at every boot" ;\
99- elif [ -f /etc/redhat-release ] && [ -d /etc/rc.d/init.d/ ] && [ -w /etc/rc.d/init.d/ ] ; then \ 
100- $(ECHO) "Installing init script to /etc/rc.d/init.d/privoxy" ;\ 
101- $(SED) 's,^PRIVOXY_BIN=.*,PRIVOXY_BIN="/usr/local/sbin/$(PROGRAM)",' privoxy.init |\ 
102- $(SED) 's,^PRIVOXY_CONF=.*,PRIVOXY_CONF="$(CONF_DEST)/config",' |\ 
103- $(SED) "s,^PRIVOXY_USER=.*,PRIVOXY_USER=$$USER," > init.tmp ;\ 
104- $(INSTALL) $(INSTALL_P) init.tmp $(DESTDIR)/etc/rc.d/init.d/privoxy && $(RM) init.tmp;\ 
105- $(MKDIR) $(DESTDIR)/etc/logrotate.d/ ;\ 
106- $(ECHO) "Installing logrotate script to $(DESTDIR)/etc/logrotate.d/" ;\ 
107- $(INSTALL) -m 0644 privoxy.logrotate $(DESTDIR)/etc/logrotate.d/privoxy ;\ 
108- elif [ -d $(DESTDIR)/etc/init.d ] && [ -w $(DESTDIR)/etc/init.d ] ; then \ 99- elif [ -d $(DESTDIR)/etc/init.d ] && [ -w $(DESTDIR)/etc/init.d ] ; then \
109- $(ECHO) "Installing generic init script to $(DESTDIR)/etc/init.d/privoxy" ;\ 100- $(ECHO) "Installing generic init script to $(DESTDIR)/etc/init.d/privoxy" ;\
110- $(ECHO) "Please check that the PATHs are correct, and edit if needed." ;\ 101- $(ECHO) "Please check that the PATHs are correct, and edit if needed." ;\
111- $(INSTALL) $(INSTALL_P) privoxy-generic.init $(DESTDIR)/etc/init.d/privoxy ;\ 102- $(INSTALL) $(INSTALL_P) privoxy-generic.init $(DESTDIR)/etc/init.d/privoxy ;\
112- fi ;\ 103- fi ;\
113- else \ 104- else \
114- $(ECHO) "No init script installed, install it manually if needed" ;\ 105- $(ECHO) "No init script installed, install it manually if needed" ;\
115- fi 106- fi
116 $(RM) config.base config.tmp 107 $(RM) config.base config.tmp
117 @# mmmmm, good. 108 @# mmmmm, good.
118 @$(ECHO) "$(PROGRAM_V) installation succeeded!" 109 @$(ECHO) "$(PROGRAM_V) installation succeeded!"

cvs diff -r1.2 -r1.3 pkgsrc/www/privoxy/patches/patch-ag (expand / switch to unified diff)

--- pkgsrc/www/privoxy/patches/patch-ag 2009/04/07 14:02:06 1.2
+++ pkgsrc/www/privoxy/patches/patch-ag 2010/02/24 23:22:45 1.3
@@ -1,33 +1,33 @@ @@ -1,33 +1,33 @@
1$NetBSD: patch-ag,v 1.2 2009/04/07 14:02:06 mjl Exp $ 1$NetBSD: patch-ag,v 1.3 2010/02/24 23:22:45 mjl Exp $
2 2
3--- jbsockets.c.orig 2008-12-20 15:53:55.000000000 +0100 3--- jbsockets.c.orig 2009-10-04 18:38:26.000000000 +0200
4+++ jbsockets.c 2009-04-07 15:54:10.000000000 +0200 4+++ jbsockets.c 2009-10-19 23:16:53.000000000 +0200
5@@ -945,6 +945,14 @@ 5@@ -1097,6 +1097,14 @@
6 struct sockaddr_in inaddr; 6 struct sockaddr_in inaddr;
7 struct hostent *hostp; 7 struct hostent *hostp;
8 unsigned int dns_retries = 0; 8 unsigned int dns_retries = 0;
9+#if defined(__NetBSD__) 9+#if defined(__NetBSD__)
10+ struct hostent result; 10+ struct hostent result;
11+ struct sockaddr_in raddr; 11+ struct sockaddr_in raddr;
12+ struct sockaddr_in *rlist[2]; 12+ struct sockaddr_in *rlist[2];
13+ 13+
14+ memset(&result, '\0', sizeof(struct hostent)); 14+ memset(&result, '\0', sizeof(struct hostent));
15+#endif 15+#endif
16+ 16+
17 #if defined(HAVE_GETHOSTBYNAME_R_6_ARGS) || defined(HAVE_GETHOSTBYNAME_R_5_ARGS) || defined(HAVE_GETHOSTBYNAME_R_3_ARGS) 17 #if defined(HAVE_GETHOSTBYNAME_R_6_ARGS) || defined(HAVE_GETHOSTBYNAME_R_5_ARGS) || defined(HAVE_GETHOSTBYNAME_R_3_ARGS)
18 struct hostent result; 18 struct hostent result;
19 #if defined(HAVE_GETHOSTBYNAME_R_6_ARGS) || defined(HAVE_GETHOSTBYNAME_R_5_ARGS) 19 #if defined(HAVE_GETHOSTBYNAME_R_6_ARGS) || defined(HAVE_GETHOSTBYNAME_R_5_ARGS)
20@@ -995,6 +1003,39 @@ 20@@ -1147,6 +1155,39 @@
21 { 21 {
22 hostp = NULL; 22 hostp = NULL;
23 } 23 }
24+#elif defined(__NetBSD__) 24+#elif defined(__NetBSD__)
25+ /* mjl */ 25+ /* mjl */
26+ { 26+ {
27+ struct addrinfo *resp = NULL; 27+ struct addrinfo *resp = NULL;
28+ struct addrinfo hints; 28+ struct addrinfo hints;
29+ 29+
30+ hostp = NULL; 30+ hostp = NULL;
31+ memset(&hints, '\0', sizeof(struct addrinfo)); 31+ memset(&hints, '\0', sizeof(struct addrinfo));
32+ hints.ai_family = AF_INET; 32+ hints.ai_family = AF_INET;
33+ 33+
@@ -44,16 +44,16 @@ $NetBSD: patch-ag,v 1.2 2009/04/07 14:02 @@ -44,16 +44,16 @@ $NetBSD: patch-ag,v 1.2 2009/04/07 14:02
44+ result.h_addrtype = resp->ai_family; 44+ result.h_addrtype = resp->ai_family;
45+ memcpy(&raddr, &((struct sockaddr_in *) resp->ai_addr) 45+ memcpy(&raddr, &((struct sockaddr_in *) resp->ai_addr)
46+ ->sin_addr, sizeof(struct sockaddr_in)); 46+ ->sin_addr, sizeof(struct sockaddr_in));
47+ /* set up fake hostent */ 47+ /* set up fake hostent */
48+ rlist[0] = &raddr; 48+ rlist[0] = &raddr;
49+ rlist[1] = NULL; 49+ rlist[1] = NULL;
50+ result.h_addr_list = (char **)rlist; 50+ result.h_addr_list = (char **)rlist;
51+ hostp = &result; 51+ hostp = &result;
52+ 52+
53+ freeaddrinfo(resp); 53+ freeaddrinfo(resp);
54+ } 54+ }
55+ } 55+ }
56+ 56+
57 #elif FEATURE_PTHREAD 57 #elif defined(MUTEX_LOCKS_AVAILABLE)
58 privoxy_mutex_lock(&resolver_mutex); 58 privoxy_mutex_lock(&resolver_mutex);
59 while (NULL == (hostp = gethostbyname(host)) 59 while (NULL == (hostp = gethostbyname(host))