Ticket #767: Portfile-apache-20030814.diff
File Portfile-apache-20030814.diff, 4.8 KB (added by bchesneau@…, 21 years ago) |
---|
-
(a) Portfile-orig vs. (b) Portfile
a b 21 21 22 22 distname ${name}_${version} 23 23 checksums ${distname}${extract.sufx} md5 2cdece7b4881d541e072de6a2b65db77 24 configure.pre_args --prefix=${prefix}/${name}-${version} 24 25 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 26 27 configure.pre_args --prefix=${prefix} 25 28 configure.args --with-layout=FreeBSD --server-uid=www \ 26 29 --server-gid=www --enable-module=most \ 27 --enable-shared=max --disable-rule=expat \ 28 --logfiledir=${prefix}/${name}-${version}/var/log/httpd \ 29 --runtimedir=${prefix}/${name}-${version}/var/run 30 --enable-shared=max --disable-rule=EXPAT \ 31 --logfiledir=${prefix}/var/log/httpd \ 32 --runtimedir=${prefix}/var/run \ 33 --libexecdir=${prefix}/libexec/apache 30 34 31 35 32 36 destroot.args root=${destroot} 33 37 34 variant activate_server {35 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup36 post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}-${version}=g\" \37 ${filespath}/apache.sh >${workpath}/apache.sh"38 }39 }40 38 41 39 variant mod_perl { 42 40 … … 55 53 depends_lib bin:perl5\.8\..:perl5.8 56 54 worksrcdir mod_perl-1.27 57 55 58 configure.pre_args56 configure.pre_args 59 57 #APACI_ARGS all on one line because otherwise apache gets upset if the shell is csh/tcsh 60 58 configure { system "cd ${workpath}/${worksrcdir} && \ 61 59 perl Makefile.PL USE_APACI=1 EVERYTHING=1 \ 62 60 DO_HTTPD=1 APACHE_PREFIX=${prefix} \ 63 61 APACHE_SRC=../${distname}/src \ 64 APACI_ARGS='--prefix=${prefix} /${name}-${version} --logfiledir=${prefix}/${name}-${version}/var/log/httpd --runtimedir=${prefix}/${name}-${version}/var/run --with-layout=FreeBSD --server-uid=www --server-gid=www --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat'" }62 APACI_ARGS='--prefix=${prefix} --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run --with-layout=FreeBSD --server-uid=www --server-gid=www --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat'" } 65 63 66 64 destroot.args PREFIX=${destroot}${prefix} INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \ 67 65 INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \ 68 66 INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \ 69 67 INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \ 70 root=${destroot}68 root=${destroot} 71 69 72 70 } 73 71 72 74 73 post-destroot { 75 74 76 file mkdir ${prefix}/${name}-${version}/var/log/httpd 77 file mkdir ${prefix}/${name}-${version}/var/run 75 file mkdir ${destroot}${prefix}/var/log/ 76 file mkdir ${destroot}${prefix}/var/log/httpd 77 file mkdir ${destroot}${prefix}/var/run 78 79 system "touch ${destroot}${prefix}/var/run/.turd \ 80 ${destroot}${prefix}/var/log/httpd/.turd" 81 82 #copy rc file 83 file mkdir ${destroot}${prefix}/etc/rc.d/ 84 system "install -bC -o root ${portpath}/files/apache.sh ${destroot}${prefix}/etc/rc.d/" 85 reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/apache.sh 86 87 if { [variant_isset mod_perl]} { 88 cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/ 89 system "cat .packlist | sed s#${destroot}/##g >.packlist.new" 90 system "mv .packlist.new .packlist" 91 } 78 92 79 system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \ 80 ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd" 93 94 #copy update-apachemodules.pl 95 file mkdir ${destroot}${prefix}/etc/apache/modules.d 96 file mkdir ${destroot}${prefix}/etc/apache/extras-conf 97 file mkdir ${destroot}${prefix}/bin 98 system "install -o root -m 755 -c ${portpath}/files/update-apachemodules.pl ${destroot}${prefix}/bin/" 99 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/bin/update-apachemodules.pl 100 reinplace "s|__NAME|${name}|g" ${destroot}${prefix}/bin/update-apachemodules.pl 81 101 82 if { [variant_isset activate_server]} {83 file mkdir ${destroot}${prefix}/etc/rc.d/84 system "install -bC -o root ${workpath}/apache.sh \85 ${destroot}${prefix}/etc/rc.d/"86 }87 88 if { [variant_isset mod_perl]} {89 cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/90 system "cat .packlist | sed s#${destroot}/##g >.packlist.new"91 system "mv .packlist.new .packlist"92 }93 102 } 94 103 95 104