Ticket #767: apache-portfile-20030811.diff
File apache-portfile-20030811.diff, 3.0 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} 25 configure.args --with-layout=FreeBSD --server-uid=www \ 26 --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 24 patchfiles patch-config.layout 25 26 pre-configure { 27 patchfiles patch-config.layout 28 patch.pre_args -p1 29 reinplace "s|__PREFIX|${prefix}|g" ${workpath}/${name}_${version}/config.layout 30 } 30 31 31 32 33 configure.pre_args --prefix=${prefix}/${name} 34 configure.args --with-layout=Opendarwin --server-uid=www \ 35 --server-gid=www --enable-module=most \ 36 --enable-shared=max --disable-rule=expat 37 32 38 destroot.args root=${destroot} 33 39 34 40 variant activate_server { 35 41 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 36 post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name} -${version}=g\" \42 post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \ 37 43 ${filespath}/apache.sh >${workpath}/apache.sh" 38 44 } 39 45 } … … 61 67 perl Makefile.PL USE_APACI=1 EVERYTHING=1 \ 62 68 DO_HTTPD=1 APACHE_PREFIX=${prefix} \ 63 69 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'" }70 APACI_ARGS='--prefix=${prefix}/${name} --with-layout=Opendarwin --server-uid=www --server-gid=www --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat'" } 65 71 66 72 destroot.args PREFIX=${destroot}${prefix} INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \ 67 73 INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \ … … 73 79 74 80 post-destroot { 75 81 76 file mkdir ${ prefix}/${name}-${version}/var/log/httpd77 file mkdir ${ prefix}/${name}-${version}/var/run82 file mkdir ${destroot}${prefix}/${name}/logs 83 file mkdir ${destroot}${prefix}/${name}/run 78 84 79 system "touch ${destroot}${prefix}/${name} -${version}/var/run/.turd \80 ${destroot}${prefix}/${name} -${version}/var/log/httpd/.turd"85 system "touch ${destroot}${prefix}/${name}/run/.turd \ 86 ${destroot}${prefix}/${name}/logs/.turd" 81 87 82 88 if { [variant_isset activate_server]} { 83 89 file mkdir ${destroot}${prefix}/etc/rc.d/