29 | | |
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 | | } |
| 41 | set icons_path "/Library/WebServer/icons/" |
| 42 | set css_path "/Library/WebServer/css/" |
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/" |
| 46 | global cgi_path httpd_conf_path |
| 47 | set cgi_path "/usr/local/www/cgi-bin/" |
| 48 | set httpd_conf_path "/usr/local/etc/apache/" |
| 49 | set icons_path "/usr/local/www/icons/" |
| 50 | set css_path "/usr/local/www/css/" |
| 51 | } |
| 52 | |
| 53 | # apache darwinport interop |
| 54 | if {[ file exists ${prefix}/sbin/httpd]} { |
| 55 | set cgi_path "${prefix}/www/cgi-bin/" |
| 56 | set httpd_conf_path "${prefix}/etc/apache/" |
| 57 | set icons_path "${prefix}/www/icons/" |
| 58 | set icons_path "${prefix}/www/css/" |
| 59 | } |
57 | | system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}" |
58 | | system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}" |
59 | | } |
| 65 | file mkdir ${destroot}${icons_path} |
| 66 | file mkdir ${destroot}${css_path} |
| 67 | xinstall -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path} |
| 68 | xinstall -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path} |
| 69 | eval xinstall -m 755 [glob ${worksrcpath}/icons/*] ${destroot}${icons_path} |
| 70 | eval xinstall -m 755 [glob ${worksrcpath}/css/*] ${destroot}${css_path} |
| 71 | |
| 72 | reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|g" \ |
| 73 | "${destroot}${cgi_path}/cvsweb.cgi" |
| 74 | reinplace "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \ |
| 75 | "${destroot}${cgi_path}/cvsweb.cgi" |
| 76 | reinplace "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \ |
| 77 | "${destroot}${cgi_path}/cvsweb.cgi" |