source: trunk/dports/net/tinyproxy/Portfile

Last change on this file was 94903, checked in by jmr@…, 5 years ago

tinyproxy: add reverse and transparent variants (#32403)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 94903 2012-07-02 07:22:02Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    tinyproxy
6version                 1.8.3
7set branch              [join [lrange [split ${version} .] 0 1] .]
8categories              net www
9platforms               darwin
10maintainers             nomaintainer
11license                 GPL-2+
12
13description             fast, lightweight HTTP proxy
14
15long_description        tinyproxy is a lightweight HTTP proxy. Designed from \
16                        the ground up to be fast and yet small, it is an ideal \
17                        solution for sites where a full-featured HTTP proxy is \
18                        required, but the system resources required to run a \
19                        more demanding HTTP proxy are unavailable.
20
21homepage                https://banu.com/tinyproxy/
22master_sites            https://banu.com/pub/${name}/${branch}
23
24use_bzip2               yes
25checksums               rmd160 19349996ffb0798a04f1291f04b144b638bf614c \
26                        sha256 be559b54eb4772a703ad35239d1cb59d32f7cf8a739966742622d57df88b896e
27
28depends_build-append    port:asciidoc port:libxml2
29
30patchfiles              patch-configure.diff
31
32configure.args          --disable-regexcheck
33
34post-destroot {
35    xinstall -d -o nobody -g nobody ${destroot}${prefix}/var/run/tinyproxy
36
37    move ${destroot}${prefix}/etc/tinyproxy.conf ${destroot}${prefix}/etc/tinyproxy.conf.default
38
39    set docdir ${destroot}${prefix}/share/doc/${name}
40    xinstall -d ${docdir}
41    xinstall -m 644 -W ${worksrcpath} \
42        AUTHORS \
43        ChangeLog \
44        COPYING \
45        docs/filter-howto.txt \
46        docs/http-error-codes.txt \
47        docs/http-rfcs.txt \
48        README \
49        TODO \
50        ${docdir}
51}
52
53startupitem.create      yes
54startupitem.netchange   yes
55startupitem.executable  ${prefix}/sbin/tinyproxy -c ${prefix}/tinyproxy.conf -d
56
57variant reverse description {Enable reverse proxying} {
58    configure.args-append   --enable-reverse
59}
60
61variant transparent description {Enable transparent proxying} {
62    configure.args-append   --enable-transparent
63}
64
65livecheck.type          regex
66livecheck.url           ${master_sites}
67livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.