Ticket #767: apache-portfile-20030818.diff
File apache-portfile-20030818.diff, 5.1 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/run30 24 25 variant darwin { 26 if { ![variant_isset apache_layout] } { 27 configure.args-append --with-layout=FreeBS --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run 28 } 29 } 30 31 variant freebsd { 32 if { ![variant_isset apache_layout] } { 33 configure.args-append --with-layout=FreeBSD --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run 34 } 35 } 36 37 38 variant apache_layout { 39 configure.pre_args --prefix=${prefix}/apache 40 configure.args-append --with-layout=Apache --logfiledir=${prefix}/apache/var/log/httpd --runtimedir=${prefix}/apache/var/run 41 } 42 43 44 #configure.pre_args --prefix=${prefix}/${name} 45 configure.args --server-uid=www \ 46 --server-gid=www --enable-module=most \ 47 --enable-shared=max --disable-rule=expat 31 48 32 49 destroot.args root=${destroot} 33 50 34 51 variant activate_server { 35 52 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 36 post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}-${version}=g\" \ 37 ${filespath}/apache.sh >${workpath}/apache.sh" 38 } 53 post-patch { 54 if { [variant_isset apache_layout] } { 55 system "sed -e \"s=%%PREFIX%%=${prefix}/apache=g\" \ 56 ${filespath}/apache.sh >${workpath}/apache.sh" 57 } else { 58 system "sed -e \"s=%%PREFIX%%=${prefix}=g\" \ 59 ${filespath}/apache.sh >${workpath}/apache.sh" 60 } 61 } 39 62 } 40 63 41 64 variant mod_perl { … … 56 79 worksrcdir mod_perl-1.27 57 80 58 81 configure.pre_args 82 83 59 84 #APACI_ARGS all on one line because otherwise apache gets upset if the shell is csh/tcsh 60 configure { system "cd ${workpath}/${worksrcdir} && \ 61 perl Makefile.PL USE_APACI=1 EVERYTHING=1 \ 85 configure { 86 if { [variant_isset apache_layout] } { 87 set APACI_ARGS "APACI_ARGS='--prefix=${prefix}/apache --with-layout=Apache --server-uid=www --server-gid=www --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat --logfiledir=${prefix}/apache/var/log --runtimedir=${prefix}/apache/var/run'" 88 } else { 89 set APACI_ARGS "APACI_ARGS='--prefix=${prefix} --with-layout=FreeBSD --server-uid=www --server-gid=www --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat --logfiledir=${prefix}/var/log/httpd --runtimedir=${prefix}/var/run'" 90 } 91 92 system "cd ${workpath}/${worksrcdir} && \ 93 perl Makefile.PL USE_APACI=1 EVERYTHING=1 \ 62 94 DO_HTTPD=1 APACHE_PREFIX=${prefix} \ 63 95 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'" } 65 66 destroot.args PREFIX=${destroot}${prefix} INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \ 96 ${APACI_ARGS}" 97 } 98 99 100 destroot.args PREFIX=${destroot}${prefix}/apache INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \ 67 101 INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \ 68 102 INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \ 69 103 INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \ 70 root=${destroot}104 root=${destroot} 71 105 72 106 } 73 107 74 108 post-destroot { 109 110 if { [variant_isset apache_layout] } { 111 file mkdir ${destroot}${prefix}/apache/log 112 file mkdir ${destroot}${prefix}/apache/run 113 114 system "touch ${destroot}${prefix}/apache/run/.turd \ 115 ${destroot}${prefix}/apache/log/.turd" 116 } else { 117 118 file mkdir ${destroot}${prefix}/log/httpd 119 file mkdir ${destroot}${prefix}/run 120 121 system "touch ${destroot}${prefix}/run/.turd \ 122 ${destroot}${prefix}/log/httpd/.turd" 123 } 75 124 76 file mkdir ${prefix}/${name}-${version}/var/log/httpd77 file mkdir ${prefix}/${name}-${version}/var/run78 79 system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \80 ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd"81 125 82 126 if { [variant_isset activate_server]} { 83 127 file mkdir ${destroot}${prefix}/etc/rc.d/