summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkim <kim>2003-06-16 03:02:04 +0000
committerkim <kim>2003-06-16 03:02:04 +0000
commitee6c1400afdd96b96572a1df666544d9cd32cf40 (patch)
treead3ac4def7217bb6a0701f0d89afc6dc85886627
parentd46cc5c59769106293cb047ad9a2d79a71a09d11 (diff)
downloadpkgsrc-ee6c1400afdd96b96572a1df666544d9cd32cf40.tar.gz
privoxy-3.0.2 (stable)
Privoxy is a web proxy with advanced filtering capabilities for protecting privacy, filtering web page content, managing cookies, controlling access, and removing ads, banners, pop-ups and other obnoxious Internet junk. Privoxy has a very flexible configuration and can be customized to suit individual needs and tastes. Privoxy has application for both stand-alone systems and multi-user networks.
-rw-r--r--www/privoxy/DESCR6
-rw-r--r--www/privoxy/INSTALL16
-rw-r--r--www/privoxy/Makefile75
-rw-r--r--www/privoxy/PLIST95
-rw-r--r--www/privoxy/distinfo6
-rwxr-xr-xwww/privoxy/files/privoxy.sh21
-rw-r--r--www/privoxy/patches/patch-aa22
-rw-r--r--www/privoxy/patches/patch-ab38
8 files changed, 279 insertions, 0 deletions
diff --git a/www/privoxy/DESCR b/www/privoxy/DESCR
new file mode 100644
index 00000000000..08c14f7668c
--- /dev/null
+++ b/www/privoxy/DESCR
@@ -0,0 +1,6 @@
+Privoxy is a web proxy with advanced filtering capabilities for protecting
+privacy, filtering web page content, managing cookies, controlling access,
+and removing ads, banners, pop-ups and other obnoxious Internet junk.
+Privoxy has a very flexible configuration and can be customized to suit
+individual needs and tastes. Privoxy has application for both stand-alone
+systems and multi-user networks.
diff --git a/www/privoxy/INSTALL b/www/privoxy/INSTALL
new file mode 100644
index 00000000000..751404e374c
--- /dev/null
+++ b/www/privoxy/INSTALL
@@ -0,0 +1,16 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+
+EGDIR="@EGDIR@"
+
+case "${STAGE}" in
+POST-INSTALL)
+ cd ${PKG_SYSCONFDIR} &&
+ ${LN} -s ${EGDIR}/templates
+ ;;
+DEINSTALL)
+ cd ${PKG_SYSCONFDIR} &&
+ ${RM} -f templates
+ ;;
+esac
diff --git a/www/privoxy/Makefile b/www/privoxy/Makefile
new file mode 100644
index 00000000000..ad3c436dbf1
--- /dev/null
+++ b/www/privoxy/Makefile
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+#
+
+DISTNAME= ${PKGNAME}-stable-src
+PKGNAME= privoxy-3.0.2
+WRKSRC= ${WRKDIR}/${PKGNAME}-stable
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/}
+
+MAINTAINER= kim@tac.nyc.ny.us
+HOMEPAGE= http://www.privoxy.org/
+COMMENT= web proxy with advanced filtering capabilities
+
+.include "../../mk/bsd.prefs.mk"
+
+PRIVOXY_USER?= privoxy
+PRIVOXY_GROUP?= privoxy
+BUILD_DEFS+= PRIVOXY_USER PRIVOXY_GROUP
+
+PKG_SYSCONFSUBDIR?= privoxy
+
+USE_PKGINSTALL= YES
+PKG_GROUPS= ${PRIVOXY_GROUP}
+PKG_USERS= ${PRIVOXY_USER}:${PRIVOXY_GROUP}::Privoxy\\ user
+RCD_SCRIPTS= privoxy
+
+EGDIR= ${PREFIX}/share/examples/privoxy
+
+AUTOCONF_REQD= 2.13
+CPPFLAGS+= -Dunix
+
+USE_BUILDLINK2= YES
+
+USE_GMAKE= YES
+MAKEFILE= GNUmakefile
+
+USE_PERL5= build
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --localstatedir=/var
+CONFIGURE_ARGS+= --sysconfdir=${EGDIR}
+CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER}
+CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP}
+
+USER_GROUP= ${PRIVOXY_USER} ${PRIVOXY_GROUP}
+
+.for i in \
+ config trust default.action standard.action user.action default.filter
+CONF_FILES_PERMS+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i} ${USER_GROUP} 0660
+.endfor
+
+OWN_DIRS_PERMS+= /var/log/privoxy ${USER_GROUP} 0775
+
+DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
+INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
+
+FILES_SUBST+= EGDIR=${EGDIR}
+FILES_SUBST+= PRIVOXY_USER=${PRIVOXY_USER}
+
+pre-configure:
+ @cd ${WRKSRC} && \
+ ( ${AUTOHEADER} && ${AUTOCONF} ; \
+ ${MV} config config.bak && \
+ ${SED} ${FILES_SUBST_SED} <config.bak >config && \
+ ${RM} -f config.bak \
+ )
+
+post-install:
+ ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${EGDIR}
+ ${CHMOD} -R a+r ${EGDIR}
+
+.include "../../devel/pcre/buildlink2.mk"
+
+.include "../../mk/autoconf.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/privoxy/PLIST b/www/privoxy/PLIST
new file mode 100644
index 00000000000..0cff626e699
--- /dev/null
+++ b/www/privoxy/PLIST
@@ -0,0 +1,95 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+etc/rc.d/privoxy
+man/man1/privoxy.1
+sbin/privoxy
+share/doc/privoxy/AUTHORS
+share/doc/privoxy/ChangeLog
+share/doc/privoxy/LICENSE
+share/doc/privoxy/README
+share/doc/privoxy/developer-manual/coding.html
+share/doc/privoxy/developer-manual/contact.html
+share/doc/privoxy/developer-manual/copyright.html
+share/doc/privoxy/developer-manual/cvs.html
+share/doc/privoxy/developer-manual/documentation.html
+share/doc/privoxy/developer-manual/index.html
+share/doc/privoxy/developer-manual/introduction.html
+share/doc/privoxy/developer-manual/newrelease.html
+share/doc/privoxy/developer-manual/quickstart.html
+share/doc/privoxy/developer-manual/seealso.html
+share/doc/privoxy/developer-manual/testing.html
+share/doc/privoxy/developer-manual/webserver-update.html
+share/doc/privoxy/faq/configuration.html
+share/doc/privoxy/faq/contact.html
+share/doc/privoxy/faq/copyright.html
+share/doc/privoxy/faq/general.html
+share/doc/privoxy/faq/index.html
+share/doc/privoxy/faq/installation.html
+share/doc/privoxy/faq/misc.html
+share/doc/privoxy/faq/trouble.html
+share/doc/privoxy/images/files-in-use.jpg
+share/doc/privoxy/images/proxy_setup.jpg
+share/doc/privoxy/index.html
+share/doc/privoxy/man-page/privoxy-man-page.html
+share/doc/privoxy/p_doc.css
+share/doc/privoxy/user-manual/actions-file.html
+share/doc/privoxy/user-manual/appendix.html
+share/doc/privoxy/user-manual/config.html
+share/doc/privoxy/user-manual/configuration.html
+share/doc/privoxy/user-manual/contact.html
+share/doc/privoxy/user-manual/copyright.html
+share/doc/privoxy/user-manual/filter-file.html
+share/doc/privoxy/user-manual/index.html
+share/doc/privoxy/user-manual/installation.html
+share/doc/privoxy/user-manual/introduction.html
+share/doc/privoxy/user-manual/quickstart.html
+share/doc/privoxy/user-manual/seealso.html
+share/doc/privoxy/user-manual/startup.html
+share/doc/privoxy/user-manual/templates.html
+share/doc/privoxy/user-manual/upgradersnote.html
+share/examples/privoxy/config
+share/examples/privoxy/default.action
+share/examples/privoxy/default.filter
+share/examples/privoxy/standard.action
+share/examples/privoxy/templates/blocked
+share/examples/privoxy/templates/cgi-error-404
+share/examples/privoxy/templates/cgi-error-bad-param
+share/examples/privoxy/templates/cgi-error-disabled
+share/examples/privoxy/templates/cgi-error-file
+share/examples/privoxy/templates/cgi-error-file-read-only
+share/examples/privoxy/templates/cgi-error-modified
+share/examples/privoxy/templates/cgi-error-parse
+share/examples/privoxy/templates/cgi-style.css
+share/examples/privoxy/templates/connect-failed
+share/examples/privoxy/templates/default
+share/examples/privoxy/templates/edit-actions-add-url-form
+share/examples/privoxy/templates/edit-actions-for-url
+share/examples/privoxy/templates/edit-actions-for-url-filter
+share/examples/privoxy/templates/edit-actions-list
+share/examples/privoxy/templates/edit-actions-list-button
+share/examples/privoxy/templates/edit-actions-list-section
+share/examples/privoxy/templates/edit-actions-list-url
+share/examples/privoxy/templates/edit-actions-remove-url-form
+share/examples/privoxy/templates/edit-actions-url-form
+share/examples/privoxy/templates/mod-local-help
+share/examples/privoxy/templates/mod-support-and-service
+share/examples/privoxy/templates/mod-title
+share/examples/privoxy/templates/mod-unstable-warning
+share/examples/privoxy/templates/no-such-domain
+share/examples/privoxy/templates/show-request
+share/examples/privoxy/templates/show-status
+share/examples/privoxy/templates/show-status-file
+share/examples/privoxy/templates/show-url-info
+share/examples/privoxy/templates/show-version
+share/examples/privoxy/templates/toggle
+share/examples/privoxy/templates/toggle-mini
+share/examples/privoxy/templates/untrusted
+share/examples/privoxy/trust
+share/examples/privoxy/user.action
+@dirrm share/examples/privoxy/templates
+@dirrm share/examples/privoxy
+@dirrm share/doc/privoxy/user-manual
+@dirrm share/doc/privoxy/man-page
+@dirrm share/doc/privoxy/images
+@dirrm share/doc/privoxy/faq
+@dirrm share/doc/privoxy/developer-manual
+@dirrm share/doc/privoxy
diff --git a/www/privoxy/distinfo b/www/privoxy/distinfo
new file mode 100644
index 00000000000..6e3d0c81da4
--- /dev/null
+++ b/www/privoxy/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+
+SHA1 (privoxy-3.0.2-stable-src.tar.gz) = 8af78f6f8cd445d0de3cdbac4595524c206f7ae4
+Size (privoxy-3.0.2-stable-src.tar.gz) = 1925287 bytes
+SHA1 (patch-aa) = 2bdc980df283f14ac8694f04b07e6d499d46c5c1
+SHA1 (patch-ab) = 548d11ad83cef96c311cb0453cb149b71577631e
diff --git a/www/privoxy/files/privoxy.sh b/www/privoxy/files/privoxy.sh
new file mode 100755
index 00000000000..63974a15556
--- /dev/null
+++ b/www/privoxy/files/privoxy.sh
@@ -0,0 +1,21 @@
+#@SH@
+#
+# $NetBSD: privoxy.sh,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+#
+
+# PROVIDE: privoxy
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="privoxy"
+rcvar=$name
+command="/usr/pkg/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+pconfig="@PKG_SYSCONFDIR@/config"
+puser="@PRIVOXY_USER@"
+required_files="$pconfig"
+command_args="--pidfile ${pidfile} --user ${puser} ${pconfig} 2>/dev/null"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/www/privoxy/patches/patch-aa b/www/privoxy/patches/patch-aa
new file mode 100644
index 00000000000..38779048a64
--- /dev/null
+++ b/www/privoxy/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+
+--- config.orig 2003-03-05 11:34:15.000000000 -0500
++++ config 2003-06-15 19:35:33.000000000 -0400
+@@ -104,7 +104,7 @@
+ # flat, except for confdir/templates, where the HTML templates
+ # for CGI output reside (e.g. Privoxy's 404 error page).
+ #
+-confdir .
++confdir @PKG_SYSCONFDIR@
+
+ #
+ # 1.2. logdir
+@@ -131,7 +131,7 @@
+ #
+ # No trailing "/", please
+ #
+-logdir .
++logdir /var/log/privoxy
+
+ #
+ # 1.3. actionsfile
diff --git a/www/privoxy/patches/patch-ab b/www/privoxy/patches/patch-ab
new file mode 100644
index 00000000000..a5aeb64c40c
--- /dev/null
+++ b/www/privoxy/patches/patch-ab
@@ -0,0 +1,38 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/06/16 03:02:04 kim Exp $
+
+--- GNUmakefile.in.orig 2002-11-04 02:04:03.000000000 -0500
++++ GNUmakefile.in 2003-06-15 19:55:34.000000000 -0400
+@@ -246,7 +246,7 @@
+ CFLAGS = @CFLAGS@ @CPPFLAGS@ $(OTHER_CFLAGS) $(SPECIAL_CFLAGS) -Wall \
+ @STATIC_PCRE_ONLY@ -Ipcre
+
+-LDFLAGS = $(DEBUG_CFLAGS) $(SPECIAL_CFLAGS)
++LDFLAGS = @LDFLAGS@ $(DEBUG_CFLAGS) $(SPECIAL_CFLAGS)
+
+
+ #############################################################################
+@@ -1104,15 +1104,15 @@
+ -$(INSTALL) $(INSTALL_T) privoxy.1 $(MAN_DEST)/privoxy.1
+
+ @# Change the config file default directories according to the configured ones
+- @$(ECHO) Rewriting config for this installation
+- @if [ -f config.base ] ; then \
+- $(CAT) config >config~ ;\
+- $(MV) config.base config ;\
+- fi
+- $(SED) 's+confdir .+confdir $(CONF_DEST)+' config | \
+- $(SED) 's+logdir .+logdir $(LOG_DEST)+' >config.updated
+- $(MV) config config.base
+- $(MV) config.updated config
++ @#$(ECHO) Rewriting config for this installation
++ @#if [ -f config.base ] ; then \
++ @# $(CAT) config >config~ ;\
++ @# $(MV) config.base config ;\
++ @#fi
++ @#$(SED) 's+confdir .+confdir $(CONF_DEST)+' config | \
++ @#$(SED) 's+logdir .+logdir $(LOG_DEST)+' >config.updated
++ @#$(MV) config config.base
++ @#$(MV) config.updated config
+
+ @# Install the config support files. Test for root install, and abort
+ @# if there is no privoxy user, and no other user was enabled during