# $Id: Portfile,v 1.21 2003/03/03 07:25:26 mij Exp $ PortSystem 1.0 name apache version 1.3.27 revision 1.0 categories www platforms darwin freebsd maintainers mike+apacheport@gene-hacker.net description The extremely popular Apache http server master_sites http://www.tux.org/pub/net/apache/dist/httpd/ \ http://apache.mirror.digitalspace.net/httpd/ \ http://www.apache.inetcosmos.org/dist/httpd/ \ http://www.rge.com/pub/infosystems/apache/httpd/ \ http://mirrors.ccs.neu.edu/Apache/dist/httpd/ distname ${name}_${version} checksums ${distname}${extract.sufx} md5 65b89365a65dcad71d4402b4862beeaa configure.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-rule=expat post-patch { system "sed -e \"s=%%PREFIX%%=${prefix}=g\" \ ${filespath}/apache.sh >${portpath}/apache.sh" } install.args root=${destroot} post-install { file mkdir ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run file mkdir ${destroot}${prefix}/etc/rc.d/ system "install -bC -o root ${portpath}/apache.sh ${destroot}${prefix}/etc/rc.d/" } variant mod_perl { master_sites-append http://www.tux.org/pub/net/apache/dist/perl/ \ http://apache.mirror.digitalspace.net/perl/ \ http://www.apache.inetcosmos.org/dist/perl/ \ http://www.rge.com/pub/infosystems/apache/perl/ \ http://mirrors.ccs.neu.edu/Apache/dist/perl/ 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 depends_lib bin:perl5\.8\..:perl5.8 worksrcdir mod_perl-1.27 #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} 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" } } long_description \ Apache is an HTTP server designed as a plug-in replacement for \ the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \ the NCSA server and includes many frequently requested new \ features, and has an API which allows it to be extended to meet \ users' needs more easily.