Changeset 1544 for trunk/dports
- Timestamp:
- Jan 4, 2003, 9:28:49 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/cvsweb/Portfile
r1188 r1544 6 6 maintainers jpm@opendarwin.org 7 7 description WWW interface for CVS repositories 8 long_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. 8 long_description \ 9 FreeBSD-CVSweb is a WWW CGI script that allows remote users to \ 10 browse a CVS repository tree via web. It can display the revision \ 11 history of a file, as well as diffs between revisions and \ 12 downloading the whole file. 13 #homepage http://www.freebsd.org/projects/cvsweb.html 9 14 platforms darwin 10 15 master_sites ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/ \ … … 17 22 configure {} 18 23 build {} 19 install { 20 21 switch ${os.platform} { 22 darwin { 23 set cgi_path "/Library/WebServer/CGI-Executables/" 24 set httpd_conf_path "/private/etc/httpd/" 25 } freebsd { 26 set cgi_path "/usr/local/www/cgi-bin/" 27 set httpd_conf_path "/usr/local/etc/apache/" 28 } default { 29 puts stdout "and it was like, beep beep beep beep beep..." 30 } 24 contents 25 26 set cgi_path "" 27 set httpd_conf_path "" 28 variant darwin { 29 global cgi_path httpd_conf_path 30 set cgi_path "/Library/WebServer/CGI-Executables/" 31 set httpd_conf_path "/private/etc/httpd/" 32 33 # apache port interop 34 if {[ file exists ${prefix}/sbin/httpd]} { 35 set cgi_path "${prefix}/www/cgi-bin/" 36 set httpd_conf_path "${prefix}/etc/apache/" 31 37 } 32 38 39 install { 40 system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}" 41 system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}" 42 } 43 44 contents \ 45 ${cgi_path}cvsweb.cgi 46 } 47 variant freebsd { 48 global cgi_path httpd_conf_path 49 set cgi_path "/usr/local/www/cgi-bin/" 50 set httpd_conf_path "/usr/local/etc/apache/" 51 33 52 # apache port interop 34 53 if {[ file exists ${prefix}/sbin/httpd]} { … … 37 56 } 38 57 39 system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}" 40 system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}" 41 42 contents ${cgi_path}cvsweb.cgi 58 install { 59 system "install -o root -m 755 ${worksrcpath}/cvsweb.cgi ${cgi_path}" 60 system "install -o root -m 644 ${worksrcpath}/cvsweb.conf ${httpd_conf_path}" 61 } 62 63 contents \ 64 ${cgi_path}cvsweb.cgi 43 65 }
Note: See TracChangeset
for help on using the changeset viewer.