Revision: 75438 http://trac.macports.org/changeset/75438 Author: ryandesign@macports.org Date: 2011-01-24 22:02:03 -0800 (Mon, 24 Jan 2011) Log Message: ----------- tinyproxy: update to 1.8.2; see #27762 Modified Paths: -------------- trunk/dports/net/tinyproxy/Portfile Added Paths: ----------- trunk/dports/net/tinyproxy/files/patch-configure.diff Removed Paths: ------------- trunk/dports/net/tinyproxy/files/patch-tinyproxy.conf.diff Modified: trunk/dports/net/tinyproxy/Portfile =================================================================== --- trunk/dports/net/tinyproxy/Portfile 2011-01-25 05:12:44 UTC (rev 75437) +++ trunk/dports/net/tinyproxy/Portfile 2011-01-25 06:02:03 UTC (rev 75438) @@ -3,10 +3,13 @@ PortSystem 1.0 name tinyproxy -version 1.6.3 +version 1.8.2 +set branch [join [lrange [split ${version} .] 0 1] .] categories www net platforms darwin maintainers nomaintainer +license GPL-2 + 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 \ @@ -14,22 +17,44 @@ required, but the system resources required to run a \ more demanding HTTP proxy are unavailable. -homepage http://tinyproxy.sourceforge.net -master_sites sourceforge freebsd -checksums md5 bd14d029b12621bcfd7ee71b2f4893da -patchfiles patch-tinyproxy.conf.diff +homepage https://banu.com/tinyproxy/ +master_sites https://banu.com/pub/${name}/${branch} -configure.args-append --mandir=${prefix}/share/man +checksums sha1 9ac7977b0f385ef0a48d40a7aac9396e4cd8820f \ + rmd160 f468b6ce1bc38127a84c58bfacdd3e90e777388d -post-patch { - reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/doc/tinyproxy.conf -} +depends_build-append port:asciidoc +patchfiles patch-configure.diff + +configure.ldflags-append -undefined error +configure.args --disable-regexcheck + 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} + xinstall -d -o nobody -g nobody ${destroot}${prefix}/var/run/tinyproxy + + move ${destroot}${prefix}/etc/tinyproxy.conf ${destroot}${prefix}/etc/tinyproxy.conf.default + + set docdir ${destroot}${prefix}/share/doc/${name} + xinstall -d ${docdir} + xinstall -m 644 -W ${worksrcpath} \ + AUTHORS \ + ChangeLog \ + COPYING \ + docs/filter-howto.txt \ + docs/http-error-codes.txt \ + docs/http-rfcs.txt \ + README \ + TODO \ + ${docdir} } + +startupitem.create yes +startupitem.netchange yes +startupitem.executable ${prefix}/sbin/tinyproxy -c ${prefix}/tinyproxy.conf -d + +# TODO: variants: reverse proxy + +livecheck.type regex +livecheck.url ${master_sites} +livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)" Added: trunk/dports/net/tinyproxy/files/patch-configure.diff =================================================================== --- trunk/dports/net/tinyproxy/files/patch-configure.diff (rev 0) +++ trunk/dports/net/tinyproxy/files/patch-configure.diff 2011-01-25 06:02:03 UTC (rev 75438) @@ -0,0 +1,10 @@ +--- configure.orig 2010-06-05 02:49:34.000000000 -0700 ++++ configure 2010-12-22 12:41:53.000000000 -0800 +@@ -6745,7 +6745,6 @@ + CFLAGS="-DNDEBUG $CFLAGS" + fi + +-LDFLAGS="-Wl,-z,defs" + + + if test x"$ac_cv_func_regexec" != x"yes"; then Deleted: trunk/dports/net/tinyproxy/files/patch-tinyproxy.conf.diff =================================================================== --- trunk/dports/net/tinyproxy/files/patch-tinyproxy.conf.diff 2011-01-25 05:12:44 UTC (rev 75437) +++ trunk/dports/net/tinyproxy/files/patch-tinyproxy.conf.diff 2011-01-25 06:02:03 UTC (rev 75438) @@ -1,44 +0,0 @@ ---- 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