Skip to content
Permalink
Browse files

new port net/tinyproxy

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4214 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Dec 14, 2003
1 parent 5e4bad9 commit 2386298b83e1235fa4933578be0bf68f4770512a
Showing with 77 additions and 0 deletions.
  1. +33 −0 net/tinyproxy/Portfile
  2. +44 −0 net/tinyproxy/files/patch-tinyproxy.conf.diff
@@ -0,0 +1,33 @@
# $Id: Portfile,v 1.1 2003/12/14 22:10:17 mww Exp $

PortSystem 1.0

name tinyproxy
version 1.6.2
categories net
platforms darwin
maintainers mww@opendarwin.org
description fast, lightweight HTTP proxy
long_description tinyproxy is a lightweight HTTP 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.

homepage http://tinyproxy.sourceforge.net/
master_sites sourceforge
checksums md5 08abe93ebd3a229a68e471bb5e013c46
patchfiles patch-tinyproxy.conf.diff

post-patch {
reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/doc/tinyproxy.conf
}

post-destroot {
file mkdir ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/AUTHORS ${worksrcpath}/COPYING \
${worksrcpath}/doc/filter-howto.txt ${worksrcpath}/INSTALL \
${worksrcpath}/NEWS ${worksrcpath}/README ${worksrcpath}/TODO \
${worksrcpath}/doc/RFC_INFO ${worksrcpath}/ChangeLog \
${destroot}${prefix}/share/doc/${name}
}
@@ -0,0 +1,44 @@
--- doc/tinyproxy.conf Mon Jun 23 23:14:32 2003
+++ doc/tinyproxy.conf.new Sun Dec 14 22:58:04 2003
@@ -51,20 +51,20 @@
# HTML file defined with an ErrorFile keyword for the HTTP error
# that has occured.
#
-DefaultErrorFile "/usr/share/tinyproxy/default.html"
+DefaultErrorFile "PREFIX/share/tinyproxy/default.html"

#
# StatFile: The HTML file that gets sent when a request is made
# for the stathost. If this file doesn't exist a basic page is
# hardcoded in tinyproxy.
#
-StatFile "/usr/share/tinyproxy/stats.html"
+StatFile "PREFIX/share/tinyproxy/stats.html"

#
# Where to log the information. Either LogFile or Syslog should be set,
# but not both.
#
-Logfile "/var/log/tinyproxy.log"
+Logfile "PREFIX/var/log/tinyproxy.log"
# Syslog On

#
@@ -85,7 +85,7 @@
# PidFile: Write the PID of the main tinyproxy thread to this file so it
# can be used for signalling purposes.
#
-PidFile "/var/run/tinyproxy.pid"
+PidFile "PREFIX/var/run/tinyproxy.pid"

#
# Include the X-Tinyproxy header, which has the client's IP address when
@@ -167,7 +167,7 @@
# are tested against the controls based on order.
#
Allow 127.0.0.1
-Allow 192.168.1.0/25
+#Allow 192.168.1.0/25

#
# The "Via" header is required by the HTTP RFC, but using the real host name

0 comments on commit 2386298

Please sign in to comment.
You can’t perform that action at this time.