Skip to content
Permalink
Browse files

tidied up

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2065 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Michael Maibaum
Michael Maibaum committed Feb 20, 2003
1 parent 9799c04 commit 199a8929fc10d342c7a08a7d6979bbd7dd03848f
Showing with 21 additions and 23 deletions.
  1. +21 −23 www/apache/Portfile
@@ -28,40 +28,38 @@ post-install { file mkdir ${destroot}${prefix}/var/log/httpd ${destroot}${p

variant mod_perl {

master_sites-append http://www.apache.org/dist/perl/:perl
master_sites-append http://www.apache.org/dist/perl/:perl

distname ${name}_${version}
distfiles-append mod_perl-1.27${extract.sufx}:perl
extract.only ${distname}${extract.sufx} mod_perl-1.27${extract.sufx}
distname ${name}_${version}
distfiles-append mod_perl-1.27${extract.sufx}:perl
extract.only ${distname}${extract.sufx} mod_perl-1.27${extract.sufx}

checksums-append mod_perl-1.27${extract.sufx} md5 bd07f4f1065eb0d0a8d8004219357d8c
checksums-append mod_perl-1.27${extract.sufx} md5 bd07f4f1065eb0d0a8d8004219357d8c

depends_lib bin:perl5\.8\..:perl5.8
worksrcdir mod_perl-1.27
depends_lib bin:perl5\.8\..:perl5.8
worksrcdir mod_perl-1.27

post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}=g\" ${filespath}/apache.sh \
> ${portpath}/apache.sh" }

#APACI_ARGS all on one line because otherwise apache gets upset if the shell is csh/tcsh
configure { system "cd ${workpath}/${worksrcdir} && \
#APACI_ARGS all on one line because otherwise apache gets upset if the shell is csh/tcsh
configure { system "cd ${workpath}/${worksrcdir} && \
perl Makefile.PL USE_APACI=1 EVERYTHING=1 \
DO_HTTPD=1 APACHE_PREFIX=${prefix} \
APACHE_SRC=../${distname}/src \
APACI_ARGS='--with-layout=FreeBSD --server-uid=www --server-gid=www --logfiledir=${prefix}/var/httpd --runtimedir=${prefix}/var/run --enable-module=most --enable-shared=max --disable-shared=perl --disable-rule=expat'" }

install.args PREFIX=${destroot}${prefix} INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \
INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \
INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \
INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \
root=${destroot}
install.args PREFIX=${destroot}${prefix} INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \
INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \
INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \
INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \
root=${destroot}

post-install { file mkdir ${prefix}/var/log/httpd ${prefix}/var/run
file mkdir ${prefix}/etc/rc.d/
system "install -bC -o 0 ${portpath}/apache.sh ${prefix}/etc/rc.d/"
cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv .packlist.new .packlist"
}
post-install { file mkdir ${prefix}/var/log/httpd ${prefix}/var/run
file mkdir ${prefix}/etc/rc.d/
system "install -bC -o 0 ${portpath}/apache.sh ${prefix}/etc/rc.d/"
cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/mod_perl/
system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
system "mv .packlist.new .packlist"
}

}

0 comments on commit 199a892

Please sign in to comment.
You can’t perform that action at this time.