Ignore:
Timestamp:
Aug 15, 2005, 3:52:29 PM (13 years ago)
Author:
olegb
Message:

Bug: 4259
Submitted by: dports@…
Reviewed by:
Approved by:
Obtained from:
update to 3.05 by Mark Duling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cvsweb/Portfile

    r4805 r13549  
    1 # $Id: Portfile,v 1.10 2004/01/17 23:05:11 toby Exp $
     1# $Id: Portfile,v 1.11 2005/08/15 15:52:29 olegb Exp $
    22
    33PortSystem 1.0
    44name            cvsweb
    5 version         2.0.6
    6 revision        0
     5version         3.0.5
    76categories      devel www
    87maintainers     darwinports@opendarwin.org
     
    1716master_sites     freebsd:scop \
    1817                 http://people.FreeBSD.org/~scop/cvsweb/
    19 checksums       md5 fd15c8521b26be858616a7ba52fc2c22
     18checksums       md5 572dbb2d66ad6487c0a3536f93023086
     19
     20depends_build   port:perl5.8 \
     21                port:p5-ipc-run \
     22                port:p5-file-temp \
     23                port:p5-uri \
     24                port:p5-mime-types \
     25                port:p5-string-ediff \
     26                port:cvsgraph
     27
    2028configure       {}
    2129build           {}
     
    2331set cgi_path ""
    2432set httpd_conf_path ""
     33set icons_path ""
     34set css_path ""
     35
    2536variant darwin {
    2637        global cgi_path httpd_conf_path
    2738        set cgi_path "/Library/WebServer/CGI-Executables/"
    2839        set httpd_conf_path "/private/etc/httpd/"
     40        set icons_path "/Library/WebServer/icons/"
     41        set css_path "/Library/WebServer/css/"
     42}
    2943
    30         # apache darwinport interop
    31         if {[ file exists ${prefix}/sbin/httpd]} {
    32                 set cgi_path "${prefix}/www/cgi-bin/"
    33                 set httpd_conf_path "${prefix}/etc/apache/"
    34         }
    35        
    36         destroot {
    37                 file mkdir ${destroot}${cgi_path}
    38                 file mkdir ${destroot}${httpd_conf_path}
    39                 system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}"
    40                 system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}"
    41         }
     44variant freebsd {
     45        global cgi_path httpd_conf_path
     46        set cgi_path "/usr/local/www/cgi-bin/"
     47        set httpd_conf_path "/usr/local/etc/apache/"
     48        set icons_path "/usr/local/www/icons/"
     49        set css_path "/usr/local/www/css/"
    4250}
    43 variant freebsd {
    44         global cgi_path httpd_conf_path
    45         set cgi_path "/usr/local/www/cgi-bin/"
    46         set httpd_conf_path "/usr/local/etc/apache/"
    4751
    48         # apache darwinport interop
    49         if {[ file exists ${prefix}/sbin/httpd]} {
    50                 set cgi_path "${prefix}/www/cgi-bin/"
    51                 set httpd_conf_path "${prefix}/etc/apache/"
    52         }
     52# apache darwinport interop
     53        if {[ file exists ${prefix}/sbin/httpd]} {
     54                set cgi_path "${prefix}/www/cgi-bin/"
     55                set httpd_conf_path "${prefix}/etc/apache/"
     56                set icons_path "${prefix}/www/icons/"
     57                set icons_path "${prefix}/www/css/"
     58}
     59
    5360
    5461        destroot {
    5562                file mkdir ${destroot}${cgi_path}
    5663                file mkdir ${destroot}${httpd_conf_path}
    57                 system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}"
    58                 system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}"
    59         }
     64                file mkdir ${destroot}${icons_path}
     65                file mkdir ${destroot}${css_path}
     66                xinstall -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}
     67                xinstall -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}
     68                eval xinstall -m 755 [glob ${worksrcpath}/icons/*] ${destroot}${icons_path}
     69                eval xinstall -m 755 [glob ${worksrcpath}/css/*] ${destroot}${css_path}
     70
     71                reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|g" \
     72                        "${destroot}${cgi_path}/cvsweb.cgi"
     73                reinplace "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \
     74                        "${destroot}${cgi_path}/cvsweb.cgi"
     75                reinplace "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \
     76                        "${destroot}${cgi_path}/cvsweb.cgi"
    6077}
Note: See TracChangeset for help on using the changeset viewer.