Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/5249

Submitted by:   ryan@cyberscript.net
Reviewed by:    mww@

new port www/mod_perl2

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14406 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 4, 2005
1 parent 95b8203 commit 63f1023c2981e2e73d6be0bd55102381e285ba8c
Showing with 61 additions and 0 deletions.
  1. +61 −0 www/mod_perl2/Portfile
@@ -0,0 +1,61 @@
# $Id: Portfile,v 1.1 2005/10/04 11:53:34 mww Exp $

PortSystem 1.0
name mod_perl2
version 2.0.1
maintainers ryan@cyberscript.net
categories www
platforms darwin
description Embeds a Perl interpreter in the Apache2 server
long_description mod_perl brings together the full power of the Perl programming language \
and the Apache HTTP server. You can use Perl to manage Apache, respond to \
requests for web pages and much more. \
\
mod_perl gives you a persistent Perl interpreter embedded in your web \
server. This lets you avoid the overhead of starting an external interpreter \
and avoids the penalty of Perl start-up time, giving you super-fast \
dynamic content. \
\
As you'd expect from the Perl community, there are hundreds of modules \
written for mod_perl, everything from persistent database connections, to \
templating sytems, to complete XML content delivery systems. Web sites like \
Slashdot and Wired Magazine use mod_perl.
homepage http://perl.apache.org/
master_sites http://perl.apache.org/dist/ \
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 mod_perl-2.0-current
checksums md5 fd9cb8ce794bb3ae3c8c288e18bf5b8f
depends_lib port:perl5.8 port:apache2
worksrcdir mod_perl-${version}

configure {
set APXS ${prefix}/apache2/bin/apxs
system "cd ${workpath}/${worksrcdir} && \
${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
}

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/apache2/include/modules/perl \
${destroot}${prefix}/apache2/libexec
system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
${destroot}${prefix}/apache2/include/modules/perl"

xinstall -m 755 ${worksrcpath}/src/modules/perl/mod_perl.so \
${destroot}${prefix}/apache2/libexec/

system "cd ${destroot}${prefix}/lib/perl5/site_perl/5.8*/darwin-2level/auto/mod_perl2/ \
&& cat .packlist | sed s#${destroot}/#\/#g >.packlist.new \
&& mv .packlist.new .packlist"
}

post-install {
ui_msg "\nIf this your first install, you might want to"
ui_msg " * enable mod_perl in apache :\n"
ui_msg "cd ${prefix}/apache2/libexec"
ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"perl\" mod_perl.so\n"
ui_msg " * And then relaunch apache \n"
ui_msg "${prefix}/apache2/bin/apachectl restart\n"
}

0 comments on commit 63f1023

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