Ticket #46273: http-replicator.diff

File http-replicator.diff, 1.2 KB (added by jmroot (Joshua Root), 9 years ago)
  • Portfile

     
    44
    55name                    http-replicator
    66version                 3.0
     7revision                1
    78categories              net www
     9license                 GPL-2+
    810platforms               darwin
     11supported_archs noarch
    912maintainers             mww
    1013description             replicating HTTP proxy server
    1114long_description        Replicator is a replicating HTTP proxy server. Files that \
     
    2124worksrcdir              ${name}-${version}
    2225checksums               md5 7d8d69175a5dc3d470273b1e508a27f3
    2326
    24 depends_run             bin:python:python24
     27depends_run             port:python27
    2528
    2629configure       {
    27         reinplace "s| /usr/bin/python|/usr/bin/env python|g" ${worksrcpath}/http-replicator \
     30        reinplace "s| /usr/bin/python|${prefix}/bin/python2.7|" ${worksrcpath}/http-replicator \
    2831                ${worksrcpath}/http-replicator_maintenance
    2932}
    3033
     
    3538                http-replicator_maintenance ${destroot}${prefix}/sbin
    3639        xinstall -m 644 -W ${worksrcpath} http-replicator.1 \
    3740                http-replicator_maintenance.1 ${destroot}${prefix}/share/man/man1
     41        xinstall -d ${destroot}${prefix}/share/doc/${name}
     42        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    3843}