diff options
author | salo <salo> | 2003-03-07 23:46:01 +0000 |
---|---|---|
committer | salo <salo> | 2003-03-07 23:46:01 +0000 |
commit | a04bdbd5864064d548df3de20aab96ba96eea98b (patch) | |
tree | fd50bc4e6e1bb91d72425693c4c5407ac395ecdc /www | |
parent | 2795ed1611beb75a19c72911649d9a84cb1ed09d (diff) | |
download | pkgsrc-a04bdbd5864064d548df3de20aab96ba96eea98b.tar.gz |
Import of tinyproxy-1.5.2: lightweight HTTP/SSL proxy.
tinyproxy is a lightweight HTTP/SSL proxy. Designed from the ground up to be
fast and yet small, it is an ideal solution for sites where a full-featured
HTTP proxy is required, but the system resources required to run a more
demanding HTTP proxy are unavailable. tinyproxy is fully compatible with all
existing web browsers.
Package submitted by Juan RP via PR pkg/20595 with modifications by me.
Diffstat (limited to 'www')
-rw-r--r-- | www/tinyproxy/DESCR | 5 | ||||
-rw-r--r-- | www/tinyproxy/MESSAGE | 16 | ||||
-rw-r--r-- | www/tinyproxy/Makefile | 55 | ||||
-rw-r--r-- | www/tinyproxy/PLIST | 8 | ||||
-rw-r--r-- | www/tinyproxy/distinfo | 7 | ||||
-rwxr-xr-x | www/tinyproxy/files/tinyproxy.sh | 18 | ||||
-rw-r--r-- | www/tinyproxy/patches/patch-aa | 13 | ||||
-rw-r--r-- | www/tinyproxy/patches/patch-ab | 13 | ||||
-rw-r--r-- | www/tinyproxy/patches/patch-ac | 24 |
9 files changed, 159 insertions, 0 deletions
diff --git a/www/tinyproxy/DESCR b/www/tinyproxy/DESCR new file mode 100644 index 00000000000..2cc2530d97d --- /dev/null +++ b/www/tinyproxy/DESCR @@ -0,0 +1,5 @@ +tinyproxy is a lightweight HTTP/SSL proxy. Designed from the ground up to be +fast and yet small, it is an ideal solution for sites where a full-featured +HTTP proxy is required, but the system resources required to run a more +demanding HTTP proxy are unavailable. tinyproxy is fully compatible with all +existing web browsers. diff --git a/www/tinyproxy/MESSAGE b/www/tinyproxy/MESSAGE new file mode 100644 index 00000000000..a4b0910663d --- /dev/null +++ b/www/tinyproxy/MESSAGE @@ -0,0 +1,16 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ + +To use tinyproxy, you will need to perform the following steps: + +1. In case you don't have PKG_RCD_SCRIPTS set in your /etc/mk.conf, copy + ${PREFIX}/etc/rc.d/tinyproxy to /etc/rc.d/tinyproxy and add + + tinyproxy=YES + + to /etc/rc.conf. + +2. Now start tinyproxy by issuing the command + + /etc/rc.d/tinyproxy start +=========================================================================== diff --git a/www/tinyproxy/Makefile b/www/tinyproxy/Makefile new file mode 100644 index 00000000000..cac86959e0c --- /dev/null +++ b/www/tinyproxy/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ +# + +DISTNAME= tinyproxy-1.5.2 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyproxy/} + +MAINTAINER= jrp@hispabsd.org +HOMEPAGE= http://tinyproxy.sourceforge.net/ +COMMENT= lightweight HTTP/SSL proxy + +USE_BUILDLINK2= YES +USE_PKGINSTALL= YES +USE_GMAKE= YES +GNU_CONFIGURE= YES + +RCD_SCRIPTS= tinyproxy +PKG_SYSCONFSUBDIR= tinyproxy + +TINYPROXY_USER?= tinyproxy +TINYPROXY_GROUP?= tinyproxy +PKG_GROUPS= ${TINYPROXY_GROUP} +PKG_USERS= ${TINYPROXY_USER}:${TINYPROXY_GROUP}::Tinyproxy\\ user +FILES_SUBST+= TINYPROXY_USER="${TINYPROXY_USER}" +FILES_SUBST+= TINYPROXY_GROUP="${TINYPROXY_GROUP}" + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} +CONFIGURE_ARGS+= --enable-transparent-proxy + +# Socks support +.if defined(USE_SOCKS) && ${USE_SOCKS} == YES +CONFIGURE_ARGS+= --enable-socks +.endif + +EGDIR= ${PREFIX}/share/examples/tinyproxy + +CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf + +post-patch: + @cd ${WRKSRC}/doc && \ + for f in tinyproxy.8 tinyproxy.conf; do \ + ${MV} $${f} $${f}.orig; \ + ${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \ + done + +post-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/tinyproxy.conf \ + ${EGDIR}/tinyproxy.conf.default + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tinyproxy + ${INSTALL_DATA} ${WRKSRC}/doc/filter-howto.txt \ + ${PREFIX}/share/doc/tinyproxy/ + +.include "../../security/openssl/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/tinyproxy/PLIST b/www/tinyproxy/PLIST new file mode 100644 index 00000000000..398afb02eee --- /dev/null +++ b/www/tinyproxy/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ +etc/rc.d/tinyproxy +man/man8/tinyproxy.8 +sbin/tinyproxy +share/doc/tinyproxy/filter-howto.txt +share/examples/tinyproxy/tinyproxy.conf.default +@dirrm share/examples/tinyproxy +@dirrm share/doc/tinyproxy diff --git a/www/tinyproxy/distinfo b/www/tinyproxy/distinfo new file mode 100644 index 00000000000..49fe3a1f3c5 --- /dev/null +++ b/www/tinyproxy/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ + +SHA1 (tinyproxy-1.5.2.tar.gz) = 41c7e95758d5763e07b01e981f44391652cd3d41 +Size (tinyproxy-1.5.2.tar.gz) = 251964 bytes +SHA1 (patch-aa) = e94f2410ae2b5dd94a1039e96635b32505de9f5d +SHA1 (patch-ab) = b6a18b859cb3260c237a98745ca9e2d0e1a1b486 +SHA1 (patch-ac) = baab9768068f1d11a34c22295396726e867e32a4 diff --git a/www/tinyproxy/files/tinyproxy.sh b/www/tinyproxy/files/tinyproxy.sh new file mode 100755 index 00000000000..9709f3faeee --- /dev/null +++ b/www/tinyproxy/files/tinyproxy.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: tinyproxy.sh,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ +# + +# PROVIDE: tinyproxy +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="tinyproxy" +rcvar=$name +command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="@PKG_SYSCONFDIR@/$name.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/www/tinyproxy/patches/patch-aa b/www/tinyproxy/patches/patch-aa new file mode 100644 index 00000000000..9ae40ad6861 --- /dev/null +++ b/www/tinyproxy/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ + +--- Makefile.in.orig 2003-01-22 20:50:28.000000000 +0100 ++++ Makefile.in 2003-03-07 23:04:34.000000000 +0100 +@@ -298,7 +298,7 @@ + install-exec-am: + install-exec: install-exec-recursive + +-install-data-am: install-data-local ++install-data-am: + install-data: install-data-recursive + + install-am: all-am diff --git a/www/tinyproxy/patches/patch-ab b/www/tinyproxy/patches/patch-ab new file mode 100644 index 00000000000..4cc8a652ad3 --- /dev/null +++ b/www/tinyproxy/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ + +--- doc/tinyproxy.8.orig 2001-08-27 17:45:31.000000000 +0200 ++++ doc/tinyproxy.8 2003-03-07 23:13:09.000000000 +0100 +@@ -41,7 +41,7 @@ + connections have been handled. + .SH FILES + .nf +-/etc/tinyproxy/tinyproxy.conf ++@PKG_SYSCONFDIR@/tinyproxy.conf + /var/run/tinyproxy.pid + /var/log/tinyproxy.log + .fi diff --git a/www/tinyproxy/patches/patch-ac b/www/tinyproxy/patches/patch-ac new file mode 100644 index 00000000000..23c110c85cf --- /dev/null +++ b/www/tinyproxy/patches/patch-ac @@ -0,0 +1,24 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/03/07 23:46:01 salo Exp $ + +--- doc/tinyproxy.conf.orig 2003-03-08 00:11:42.000000000 +0100 ++++ doc/tinyproxy.conf 2003-03-08 00:14:15.000000000 +0100 +@@ -6,8 +6,8 @@ + # Name of the user the tinyproxy daemon should switch to after the port + # has been bound. + # +-User nobody +-Group nogroup ++User @TINYPROXY_USER@ ++Group @TINYPROXY_GROUP@ + + # + # Port to listen on. +@@ -120,7 +120,7 @@ + # + # The location of the filter file. + # +-#Filter "/etc/tinyproxy/filter" ++#Filter "@PKG_SYSCONFDIR@/filter" + + # + # Filter based on URLs rather than domains. |