Ticket #14617: Portfile.diff

File Portfile.diff, 1.2 KB (added by blb@…, 17 years ago)

diff to Portfile

  • Portfile

     
    1717                        sha1 ba562906d125a6bf72dc36c2d078147d40cf8722 \
    1818                        rmd160 31739c5a5958c136ad452e877636b9f26343684f
    1919
     20patchfiles              patch-config.sample.diff patch-forbidden.c.diff \
     21                                patch-forbidden.sample.diff patch-main.c.diff \
     22                                patch-polipo.man.diff
     23
     24post-patch {
     25        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/config.sample \
     26                ${worksrcpath}/forbidden.c ${worksrcpath}/forbidden.sample \
     27                ${worksrcpath}/main.c ${worksrcpath}/polipo.man
     28}
     29
    2030use_configure   no
    2131
    2232build.args              PREFIX=${prefix} \
     
    3343destroot.keepdirs ${destroot}${prefix}/var/cache/polipo
    3444
    3545post-destroot   {
     46        xinstall -m 755 -d ${destroot}${prefix}/etc/polipo
    3647        xinstall -m 644 ${worksrcpath}/config.sample \
    37                 ${destroot}${prefix}/etc/polipo.conf.sample
     48                ${worksrcpath}/forbidden.sample ${destroot}${prefix}/etc/polipo/
    3849}
    3950
     51startupitem.create              yes
     52startupitem.netchange   yes
     53startupitem.executable  ${prefix}/bin/polipo
     54startupitem.name                Polipo
     55
    4056livecheck.check regex
    4157livecheck.url   ${homepage}CHANGES.text
    4258livecheck.regex Polipo (${version})