Ticket #27762: Portfile-tinyproxy.diff

File Portfile-tinyproxy.diff, 2.2 KB (added by tmurase@…, 14 years ago)

Update to fix the livecheck, startupitem and add a dir for the pid file

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name            tinyproxy
    6 version         1.6.3
     6version         1.8.2
    77categories      www net
    88platforms       darwin
    99maintainers     nomaintainer
     
    1414                        required, but the system resources required to run a \
    1515                        more demanding HTTP proxy are unavailable.
    1616
    17 homepage        http://tinyproxy.sourceforge.net
    18 master_sites    sourceforge freebsd
    19 checksums       md5 bd14d029b12621bcfd7ee71b2f4893da
    20 patchfiles      patch-tinyproxy.conf.diff
     17homepage        https://banu.com/tinyproxy/
     18set branch      [join [lrange [split ${version} .] 0 1] .]
     19master_sites    https://banu.com/pub/${name}/${branch}
     20#git.url         git://banu.com/tinyproxy.git
     21checksums       md5 7066f8192ba1307f79b363f60968e552 \
     22                sha1 9ac7977b0f385ef0a48d40a7aac9396e4cd8820f \
     23                rmd160 f468b6ce1bc38127a84c58bfacdd3e90e777388d
     24livecheck.type  regex
     25livecheck.url   ${master_sites}
     26livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)"
     27patchfiles      patch-configure.diff
     28configure.ldflags-append "-undefined error"
     29configure.args  --disable-regexcheck
     30depends_build-append  port:asciidoc
     31startupitem.create  yes
     32startupitem.netchange  yes
     33startupitem.executable ${prefix}/sbin/tinyproxy -c ${prefix}/tinyproxy.conf -d
    2134
    22 configure.args-append   --mandir=${prefix}/share/man
    23 
    24 post-patch      {
    25         reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/doc/tinyproxy.conf
    26 }
     35# TODO: variants: reverse proxy
    2736
    2837post-destroot   {
    29         file mkdir ${destroot}${prefix}/share/doc/${name}
    30         file copy ${worksrcpath}/AUTHORS ${worksrcpath}/COPYING \
    31                 ${worksrcpath}/doc/filter-howto.txt ${worksrcpath}/INSTALL \
    32                 ${worksrcpath}/NEWS ${worksrcpath}/README ${worksrcpath}/TODO \
    33                 ${worksrcpath}/doc/RFC_INFO ${worksrcpath}/ChangeLog \
    34                 ${destroot}${prefix}/share/doc/${name}
     38    xinstall -d -o nobody -g nobody ${destroot}${prefix}/var/run/tinyproxy
     39    set docdir ${destroot}${prefix}/share/doc/${name}
     40    xinstall -d ${docdir}   
     41    xinstall -m 644 -W ${worksrcpath} \
     42        AUTHORS \
     43        COPYING \
     44        docs/filter-howto.txt \
     45        INSTALL \
     46        README \
     47        TODO \
     48        docs/http-error-codes.txt \
     49        docs/http-rfcs.txt \
     50        ChangeLog \
     51        ${docdir}
    3552}