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.diff -r1.42 -r1.43 pkgsrc/www/privoxy/Makefile
(mjl)
@@ -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 | |||
4 | DISTNAME= ${PKGNAME_NOREV}-stable-src | 4 | DISTNAME= ${PKGNAME_NOREV}-stable-src | |
5 | PKGNAME= privoxy-3.0.12 | 5 | PKGNAME= privoxy-3.0.16 | |
6 | PKGREVISION= 1 | |||
7 | CATEGORIES= www | 6 | CATEGORIES= www | |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/} | |
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.privoxy.org/ | 10 | HOMEPAGE= http://www.privoxy.org/ | |
12 | COMMENT= Web proxy with advanced filtering capabilities | 11 | COMMENT= Web proxy with advanced filtering capabilities | |
13 | 12 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 14 | |||
16 | .include "../../mk/bsd.prefs.mk" | 15 | .include "../../mk/bsd.prefs.mk" | |
17 | 16 | |||
18 | PRIVOXY_USER?= privoxy | 17 | PRIVOXY_USER?= privoxy | |
19 | PRIVOXY_GROUP?= privoxy | 18 | PRIVOXY_GROUP?= privoxy | |
@@ -23,27 +22,28 @@ PKG_USERS_VARS+= PRIVOXY_USER | @@ -23,27 +22,28 @@ PKG_USERS_VARS+= PRIVOXY_USER | |||
23 | PKG_SYSCONFSUBDIR?= privoxy | 22 | PKG_SYSCONFSUBDIR?= privoxy | |
24 | 23 | |||
25 | RCD_SCRIPTS= privoxy | 24 | RCD_SCRIPTS= privoxy | |
26 | PKG_GROUPS= ${PRIVOXY_GROUP} | 25 | PKG_GROUPS= ${PRIVOXY_GROUP} | |
27 | PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP} | 26 | PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP} | |
28 | 27 | |||
29 | EGDIR= ${PREFIX}/share/examples/privoxy | 28 | EGDIR= ${PREFIX}/share/examples/privoxy | |
30 | 29 | |||
31 | CPPFLAGS+= -Dunix | 30 | CPPFLAGS+= -Dunix | |
32 | 31 | |||
33 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable | 32 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable | |
34 | 33 | |||
35 | USE_FEATURES= snprintf | 34 | USE_FEATURES= snprintf | |
36 | USE_TOOLS+= autoconf213 gmake mktemp | 35 | USE_TOOLS+= gmake mktemp autoconf autoheader | |
36 | BUILD_DEFS+= VARBASE | |||
37 | MAKE_FILE= GNUmakefile | 37 | MAKE_FILE= GNUmakefile | |
38 | 38 | |||
39 | USE_TOOLS+= perl | 39 | USE_TOOLS+= perl | |
40 | 40 | |||
41 | PTHREAD_AUTO_VARS= yes | 41 | PTHREAD_AUTO_VARS= yes | |
42 | PTHREAD_OPTS+= require | 42 | PTHREAD_OPTS+= require | |
43 | 43 | |||
44 | GNU_CONFIGURE= YES | 44 | GNU_CONFIGURE= YES | |
45 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | 45 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | |
46 | CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q} | 46 | CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q} | |
47 | CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q} | 47 | CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q} | |
48 | CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q} | 48 | CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q} | |
49 | 49 |
@@ -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 $ | |
2 | man/man1/privoxy.1 | 2 | man/man1/privoxy.1 | |
3 | sbin/privoxy | 3 | sbin/privoxy | |
4 | share/doc/privoxy/AUTHORS | 4 | share/doc/privoxy/AUTHORS | |
5 | share/doc/privoxy/ChangeLog | 5 | share/doc/privoxy/ChangeLog | |
6 | share/doc/privoxy/LICENSE | 6 | share/doc/privoxy/LICENSE | |
7 | share/doc/privoxy/README | 7 | share/doc/privoxy/README | |
8 | share/doc/privoxy/developer-manual/coding.html | 8 | share/doc/privoxy/developer-manual/coding.html | |
9 | share/doc/privoxy/developer-manual/contact.html | 9 | share/doc/privoxy/developer-manual/contact.html | |
10 | share/doc/privoxy/developer-manual/copyright.html | 10 | share/doc/privoxy/developer-manual/copyright.html | |
11 | share/doc/privoxy/developer-manual/cvs.html | 11 | share/doc/privoxy/developer-manual/cvs.html | |
12 | share/doc/privoxy/developer-manual/documentation.html | 12 | share/doc/privoxy/developer-manual/documentation.html | |
13 | share/doc/privoxy/developer-manual/index.html | 13 | share/doc/privoxy/developer-manual/index.html | |
14 | share/doc/privoxy/developer-manual/introduction.html | 14 | share/doc/privoxy/developer-manual/introduction.html | |
15 | share/doc/privoxy/developer-manual/newrelease.html | 15 | share/doc/privoxy/developer-manual/newrelease.html | |
16 | share/doc/privoxy/developer-manual/quickstart.html | |||
17 | share/doc/privoxy/developer-manual/seealso.html | 16 | share/doc/privoxy/developer-manual/seealso.html | |
18 | share/doc/privoxy/developer-manual/testing.html | 17 | share/doc/privoxy/developer-manual/testing.html | |
19 | share/doc/privoxy/developer-manual/webserver-update.html | 18 | share/doc/privoxy/developer-manual/webserver-update.html | |
20 | share/doc/privoxy/faq/configuration.html | 19 | share/doc/privoxy/faq/configuration.html | |
21 | share/doc/privoxy/faq/contact.html | 20 | share/doc/privoxy/faq/contact.html | |
22 | share/doc/privoxy/faq/copyright.html | 21 | share/doc/privoxy/faq/copyright.html | |
23 | share/doc/privoxy/faq/general.html | 22 | share/doc/privoxy/faq/general.html | |
24 | share/doc/privoxy/faq/index.html | 23 | share/doc/privoxy/faq/index.html | |
25 | share/doc/privoxy/faq/installation.html | 24 | share/doc/privoxy/faq/installation.html | |
26 | share/doc/privoxy/faq/misc.html | 25 | share/doc/privoxy/faq/misc.html | |
27 | share/doc/privoxy/faq/trouble.html | 26 | share/doc/privoxy/faq/trouble.html | |
28 | share/doc/privoxy/index.html | 27 | share/doc/privoxy/index.html | |
29 | share/doc/privoxy/man-page/privoxy-man-page.html | 28 | share/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 | |||
36 | share/doc/privoxy/user-manual/copyright.html | 35 | share/doc/privoxy/user-manual/copyright.html | |
37 | share/doc/privoxy/user-manual/files-in-use.jpg | 36 | share/doc/privoxy/user-manual/files-in-use.jpg | |
38 | share/doc/privoxy/user-manual/filter-file.html | 37 | share/doc/privoxy/user-manual/filter-file.html | |
39 | share/doc/privoxy/user-manual/index.html | 38 | share/doc/privoxy/user-manual/index.html | |
40 | share/doc/privoxy/user-manual/installation.html | 39 | share/doc/privoxy/user-manual/installation.html | |
41 | share/doc/privoxy/user-manual/introduction.html | 40 | share/doc/privoxy/user-manual/introduction.html | |
42 | share/doc/privoxy/user-manual/p_doc.css | 41 | share/doc/privoxy/user-manual/p_doc.css | |
43 | share/doc/privoxy/user-manual/proxy2.jpg | 42 | share/doc/privoxy/user-manual/proxy2.jpg | |
44 | share/doc/privoxy/user-manual/proxy_setup.jpg | 43 | share/doc/privoxy/user-manual/proxy_setup.jpg | |
45 | share/doc/privoxy/user-manual/quickstart.html | 44 | share/doc/privoxy/user-manual/quickstart.html | |
46 | share/doc/privoxy/user-manual/seealso.html | 45 | share/doc/privoxy/user-manual/seealso.html | |
47 | share/doc/privoxy/user-manual/startup.html | 46 | share/doc/privoxy/user-manual/startup.html | |
48 | share/doc/privoxy/user-manual/templates.html | 47 | share/doc/privoxy/user-manual/templates.html | |
49 | share/doc/privoxy/user-manual/upgradersnote.html | |||
50 | share/doc/privoxy/user-manual/whatsnew.html | 48 | share/doc/privoxy/user-manual/whatsnew.html | |
51 | share/examples/privoxy/templates/url-info-osd.xml | 49 | share/examples/privoxy/templates/url-info-osd.xml | |
52 | share/examples/privoxy/config | 50 | share/examples/privoxy/config | |
53 | share/examples/privoxy/default.action | 51 | share/examples/privoxy/default.action | |
54 | share/examples/privoxy/default.filter | 52 | share/examples/privoxy/default.filter | |
55 | share/examples/privoxy/match-all.action | 53 | share/examples/privoxy/match-all.action | |
54 | share/examples/privoxy/templates/connection-timeout | |||
55 | share/examples/privoxy/templates/no-server-data | |||
56 | share/examples/privoxy/templates/blocked | 56 | share/examples/privoxy/templates/blocked | |
57 | share/examples/privoxy/templates/cgi-error-404 | 57 | share/examples/privoxy/templates/cgi-error-404 | |
58 | share/examples/privoxy/templates/cgi-error-bad-param | 58 | share/examples/privoxy/templates/cgi-error-bad-param | |
59 | share/examples/privoxy/templates/cgi-error-disabled | 59 | share/examples/privoxy/templates/cgi-error-disabled | |
60 | share/examples/privoxy/templates/cgi-error-file | 60 | share/examples/privoxy/templates/cgi-error-file | |
61 | share/examples/privoxy/templates/cgi-error-file-read-only | 61 | share/examples/privoxy/templates/cgi-error-file-read-only | |
62 | share/examples/privoxy/templates/cgi-error-modified | 62 | share/examples/privoxy/templates/cgi-error-modified | |
63 | share/examples/privoxy/templates/cgi-error-parse | 63 | share/examples/privoxy/templates/cgi-error-parse | |
64 | share/examples/privoxy/templates/cgi-style.css | 64 | share/examples/privoxy/templates/cgi-style.css | |
65 | share/examples/privoxy/templates/connect-failed | 65 | share/examples/privoxy/templates/connect-failed | |
66 | share/examples/privoxy/templates/default | 66 | share/examples/privoxy/templates/default | |
67 | share/examples/privoxy/templates/edit-actions-add-url-form | 67 | share/examples/privoxy/templates/edit-actions-add-url-form | |
68 | share/examples/privoxy/templates/edit-actions-for-url | 68 | share/examples/privoxy/templates/edit-actions-for-url |
@@ -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 | |||
3 | SHA1 (privoxy-3.0.12-stable-src.tar.gz) = 1118d6a7b4980f26c9ad0902c0e6af5aaaf1a640 | 3 | SHA1 (privoxy-3.0.16-stable-src.tar.gz) = 2c9c44034ff0509c124fac98cb741a2c2572edcd | |
4 | RMD160 (privoxy-3.0.12-stable-src.tar.gz) = 32509b897e073f1cc100b8a4a157d19a219b51cd | 4 | RMD160 (privoxy-3.0.16-stable-src.tar.gz) = 36723f0269f9a03394c959eb6587b57fdb7eb713 | |
5 | Size (privoxy-3.0.12-stable-src.tar.gz) = 1811124 bytes | 5 | Size (privoxy-3.0.16-stable-src.tar.gz) = 1656721 bytes | |
6 | SHA1 (patch-aa) = c263d2a4b9522a33613f82ab2bc18d5c2b554b21 | 6 | SHA1 (patch-aa) = c263d2a4b9522a33613f82ab2bc18d5c2b554b21 | |
7 | SHA1 (patch-ab) = 2e16792661d12d74231cb2deef2f343ae2dc1d66 | 7 | SHA1 (patch-ab) = aa54264ea32954be4cba3fcf5ed4d08919179fb9 | |
8 | SHA1 (patch-ac) = e39ffe694462b952c5ad66ac577a0acbee0a1d9f | 8 | SHA1 (patch-ac) = e39ffe694462b952c5ad66ac577a0acbee0a1d9f | |
9 | SHA1 (patch-ag) = fea1c2ef70a99ab6da3feab22c69f3b98c0e75d0 | 9 | SHA1 (patch-ag) = 79d1d09122b52617d4abededcbfdc38b1f6caf8f |
@@ -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!" |
@@ -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)) |