source: trunk/dports/net/http-replicator/Portfile

Last change on this file was 129908, checked in by jmr@…, 3 years ago

http-replicator: use python27, install README, license, noarch (#46273, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 129908 2014-12-23 00:16:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                http-replicator
7version             3.0
8revision            1
9categories          net www
10license             GPL-2+
11platforms           darwin
12supported_archs     noarch
13maintainers         mww
14
15description         replicating HTTP proxy server
16long_description    Replicator is a replicating HTTP proxy server. \
17                    Files that are downloaded through the proxy are \
18                    transparently stored in a private cache, so an \
19                    exact copy of accessed remote files is created on \
20                    the local machine. It is, in essence, a general \
21                    purpose proxy server, but especially suited for \
22                    maintaining a cache of MacPorts, FreeBSD or Fink \
23                    packages.
24homepage            http://gertjan.freezope.org/replicator/
25
26depends_run         port:python27
27
28master_sites        ${homepage}
29distname            ${name}_${version}
30worksrcdir          ${name}-${version}
31checksums           md5 7d8d69175a5dc3d470273b1e508a27f3
32
33configure {
34    reinplace -W ${worksrcpath} "s| /usr/bin/python|${prefix}/bin/python2.7|" \
35            http-replicator \
36            http-replicator_maintenance
37}
38
39build {}
40
41destroot {
42    xinstall -m 755 -W ${worksrcpath} \
43            http-replicator http-replicator_maintenance \
44            ${destroot}${prefix}/sbin
45    xinstall -m 644 -W ${worksrcpath} \
46            http-replicator.1 http-replicator_maintenance.1 \
47            ${destroot}${prefix}/share/man/man1
48    xinstall -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
50}
Note: See TracBrowser for help on using the repository browser.