Ignore:
Timestamp:
Nov 2, 2002, 6:16:46 PM (16 years ago)
Author:
jpm
Message:

cleaned things up a bit - removed the os specific variants and replaced
them with a switch statement. also removed cvsweb.conf from the contents
list since it is a config file and its hash will more than likely change
after install. support for the dport's apache port is still pending...

File:
1 edited

Legend:

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

    r1172 r1187  
    77description     WWW interface for CVS repositories
    88long_description        FreeBSD-CVSweb is a WWW CGI script that allows remote users to browse a CVS repository tree via web.  It can display the revision history of a file, as well as diffs between revisions and downloading the whole file.
    9 platforms       darwin freebsd
     9platforms       darwin
    1010master_sites    ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/ \
    1111        ftp://ftp.se.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/ \
     
    1717configure       {}
    1818build           {}
    19 variant darwin {
    20         #FIXME - need interoperability with apache port
    21         install {
    22                 cd ${worksrcpath}
    23                 system "install -o root -m 755 cvsweb.cgi /Library/WebServer/CGI-Executables/"
    24                 system "install -o root -m 644 cvsweb.conf /private/etc/httpd/"
     19install {
     20        switch ${os.platform} {
     21                darwin {
     22                        set cgi_path "/Library/WebServer/CGI-Executables/"
     23                        set httpd_conf_path "/private/etc/httpd/"
     24                } freebsd {
     25                        set cgi_path "/usr/local/www/cgi-bin/"
     26                        set httpd_conf_path "/usr/local/etc/apache/"
     27                } default {
     28                        puts stdout "and it was like, beep beep beep beep beep..."
     29                }
    2530        }
    26         contents {
    27                 /Library/WebServer/CGI-Executables/cvsweb.cgi
    28                 /private/etc/httpd/cvsweb.conf
    29         }
     31       
     32        # FIXME - need interop with the apache port
     33        #if {[ file exists ${prefix}/sbin/httpd]} {
     34        #       set cgi_path "${prefix}/???/???/"
     35        #       set httpd_conf_path "${prefix}/???/???/"
     36        #}
     37
     38        system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}"
     39        system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}"
     40       
     41        contents        ${cgi_path}cvsweb.cgi
    3042}
    31 variant freebsd {
    32         install {
    33                 cd ${worksrcpath}
    34                 system "install -o root -m 755 cvsweb.cgi /usr/local/www/cgi-bin/"
    35                 system "install -o root -m 644 cvsweb.conf /usr/local/etc/apache/"
    36         }
    37         contents {
    38                 /usr/local/www/cgi-bin/cvsweb.cgi
    39                 /usr/local/etc/apache/cvsweb.conf
    40         }
    41 }
Note: See TracChangeset for help on using the changeset viewer.