34 | | variant activate_server { |
35 | | 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 | | } |
39 | | } |
40 | | |
41 | | variant mod_perl { |
42 | | |
43 | | master_sites-append http://mirror.telentente.com/pub/apache/dist/perl:perl/ \ |
44 | | http://apache.mirror.digitalspace.net/perl/:perl \ |
45 | | http://www.apache.inetcosmos.org/dist/perl/:perl \ |
46 | | http://www.rge.com/pub/infosystems/apache/perl/:perl \ |
47 | | http://mirrors.ccs.neu.edu/Apache/dist/perl/:perl |
48 | | |
49 | | distname ${name}_${version} |
50 | | distfiles-append mod_perl-1.27${extract.sufx}:perl |
51 | | extract.only ${distname}${extract.sufx} mod_perl-1.27${extract.sufx} |
52 | | |
53 | | checksums-append mod_perl-1.27${extract.sufx} md5 bd07f4f1065eb0d0a8d8004219357d8c |
54 | | |
55 | | depends_lib bin:perl5\.8\..:perl5.8 |
56 | | worksrcdir mod_perl-1.27 |
57 | | |
58 | | configure.pre_args |
59 | | #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 \ |
62 | | DO_HTTPD=1 APACHE_PREFIX=${prefix} \ |
63 | | 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 \ |
67 | | INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \ |
68 | | INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \ |
69 | | INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \ |
70 | | root=${destroot} |
71 | | |
72 | | } |
76 | | file mkdir ${prefix}/${name}-${version}/var/log/httpd |
77 | | file mkdir ${prefix}/${name}-${version}/var/run |
78 | | |
79 | | system "touch ${destroot}${prefix}/${name}-${version}/var/run/.turd \ |
80 | | ${destroot}${prefix}/${name}-${version}/var/log/httpd/.turd" |
| 41 | file mkdir ${destroot}${prefix}/var/log/ |
| 42 | file mkdir ${destroot}${prefix}/var/log/httpd |
| 43 | file mkdir ${destroot}${prefix}/var/run |
| 44 | |
| 45 | system "touch ${destroot}${prefix}/var/run/.turd \ |
| 46 | ${destroot}${prefix}/var/log/httpd/.turd" |
| 47 | |
| 48 | #copy rc file |
| 49 | file mkdir ${destroot}${prefix}/etc/rc.d/ |
| 50 | system "install -bC -o root ${portpath}/files/apache.sh ${destroot}${prefix}/etc/rc.d/" |
| 51 | reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/rc.d/apache.sh |
| 52 | |
| 53 | #copy update-apachemodules.pl |
| 54 | file mkdir ${destroot}${prefix}/etc/apache/modules.d |
| 55 | file mkdir ${destroot}${prefix}/etc/apache/extras-conf |
| 56 | file mkdir ${destroot}${prefix}/bin |
| 57 | system "install -o root -m 755 -c ${portpath}/files/update-apachemodules.pl ${destroot}${prefix}/bin/" |
| 58 | reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/bin/update-apachemodules.pl |
| 59 | reinplace "s|__NAME|${name}|g" ${destroot}${prefix}/bin/update-apachemodules.pl |