Ticket #4259: Portfile.diff
File Portfile.diff, 2.1 KB (added by dports@…, 19 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name cvsweb 5 version 2.0.65 version 3.0.5 6 6 revision 0 7 7 categories devel www 8 8 maintainers darwinports@opendarwin.org … … 16 16 platforms darwin 17 17 master_sites freebsd:scop \ 18 18 http://people.FreeBSD.org/~scop/cvsweb/ 19 checksums md5 fd15c8521b26be858616a7ba52fc2c22 19 checksums md5 572dbb2d66ad6487c0a3536f93023086 20 21 depends_build port:perl5.8 \ 22 port:p5-ipc-run \ 23 port:p5-file-temp \ 24 port:p5-uri \ 25 port:p5-mime-types \ 26 port:p5-string-ediff \ 27 port:cvsgraph 28 20 29 configure {} 21 30 build {} 22 31 … … 32 41 set cgi_path "${prefix}/www/cgi-bin/" 33 42 set httpd_conf_path "${prefix}/etc/apache/" 34 43 } 35 44 36 45 destroot { 37 46 file mkdir ${destroot}${cgi_path} 38 47 file mkdir ${destroot}${httpd_conf_path} 39 48 system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}" 40 49 system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}" 50 51 reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|g" \ 52 "${destroot}${cgi_path}/cvsweb.cgi" 53 reinplace "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \ 54 "${destroot}${cgi_path}/cvsweb.cgi" 55 reinplace "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \ 56 "${destroot}${cgi_path}/cvsweb.cgi" 41 57 } 42 58 } 43 59 variant freebsd { … … 56 72 file mkdir ${destroot}${httpd_conf_path} 57 73 system "install -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}" 58 74 system "install -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}" 75 76 reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|g" \ 77 "${destroot}${cgi_path}/cvsweb.cgi" 78 reinplace "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \ 79 "${destroot}${cgi_path}/cvsweb.cgi" 80 reinplace "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \ 81 "${destroot}${cgi_path}/cvsweb.cgi" 59 82 } 60 83 }