diff options
author | salo <salo> | 2003-03-07 23:46:01 +0000 |
---|---|---|
committer | salo <salo> | 2003-03-07 23:46:01 +0000 |
commit | 8e50506ec5f686c46cbf98983073ea283acb5f18 (patch) | |
tree | fd50bc4e6e1bb91d72425693c4c5407ac395ecdc /www/tinyproxy/Makefile | |
parent | af6853a2ec65e572237a451685989c4f47130911 (diff) | |
download | pkgsrc-8e50506ec5f686c46cbf98983073ea283acb5f18.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/tinyproxy/Makefile')
-rw-r--r-- | www/tinyproxy/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
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" |