Ignore:
Timestamp:
Feb 3, 2003, 5:37:54 AM (16 years ago)
Author:
jpm
Message:

destdir'ific!

File:
1 edited

Legend:

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

    r1661 r1947  
    2323configure       {}
    2424build           {}
    25 contents
    2625
    2726set cgi_path ""
     
    3231        set httpd_conf_path "/private/etc/httpd/"
    3332
    34         # apache port interop
     33        # apache darwinport interop
    3534        if {[ file exists ${prefix}/sbin/httpd]} {
    3635                set cgi_path "${prefix}/www/cgi-bin/"
     
    3938       
    4039        install {
    41                 system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}"
    42                 system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}"
     40                system "install -d ${destroot}${cgi_path}"
     41                system "install -d ${destroot}${httpd_conf_path}"
     42                system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}"
     43                system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}"
    4344        }
    44        
    45         contents \
    46                 ${cgi_path}cvsweb.cgi
    4745}
    4846variant freebsd {
     
    5149        set httpd_conf_path "/usr/local/etc/apache/"
    5250
    53         # apache port interop
     51        # apache darwinport interop
    5452        if {[ file exists ${prefix}/sbin/httpd]} {
    5553                set cgi_path "${prefix}/www/cgi-bin/"
     
    5856
    5957        install {
    60                 system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}"
    61                 system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}"
     58                system "install -d ${destroot}${cgi_path}"
     59                system "install -d ${destroot}${httpd_conf_path}"
     60                system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}"
     61                system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}"
    6262        }
    63 
    64         contents \
    65                 ${cgi_path}cvsweb.cgi   
    6663}
Note: See TracChangeset for help on using the changeset viewer.