summaryrefslogtreecommitdiff
path: root/www/ap2-perl
diff options
context:
space:
mode:
authorjlam <jlam>2002-06-28 07:40:29 +0000
committerjlam <jlam>2002-06-28 07:40:29 +0000
commit993a08c4f687a23bfacfc7c7cd021bd50ee0d126 (patch)
tree8e9fedf2bc3e72c80042d440c792f5ace5b8a44d /www/ap2-perl
parent5b5cc4e1d224b152b15faa5b097772ef7ace236f (diff)
downloadpkgsrc-993a08c4f687a23bfacfc7c7cd021bd50ee0d126.tar.gz
Import modperl-1.99_05 as lang/ap2-perl. Note that ap2-perl-1.99.5 is
considered *BETA* software and may not work at all. This package is here solely to provide Apache-2.0 users with a testbed for porting existing mod_perl-1.2.x applications.
Diffstat (limited to 'www/ap2-perl')
-rw-r--r--www/ap2-perl/DESCR10
-rw-r--r--www/ap2-perl/MESSAGE13
-rw-r--r--www/ap2-perl/Makefile45
-rw-r--r--www/ap2-perl/PLIST2
4 files changed, 70 insertions, 0 deletions
diff --git a/www/ap2-perl/DESCR b/www/ap2-perl/DESCR
new file mode 100644
index 00000000000..58ad3efcc29
--- /dev/null
+++ b/www/ap2-perl/DESCR
@@ -0,0 +1,10 @@
+The Apache/Perl integration project brings together the full power of the
+Perl programming language and the Apache HTTP server. This is achieved by
+linking the Perl runtime library into the server and providing an object
+oriented Perl interface to the server's C language API.
+
+These pieces are seamlessly glued together by the `mod_perl' server
+plugin, making it is possible to write Apache modules entirely in Perl.
+In addition, the persistent interpreter embedded in the server avoids the
+overhead of starting an external interpreter program and the additional
+Perl start-up (compile) time.
diff --git a/www/ap2-perl/MESSAGE b/www/ap2-perl/MESSAGE
new file mode 100644
index 00000000000..346682dbbf9
--- /dev/null
+++ b/www/ap2-perl/MESSAGE
@@ -0,0 +1,13 @@
+=============================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/06/28 07:40:29 jlam Exp $
+
+In order to enable mod_perl in your Apache installation, you need to add
+the following to your httpd.conf file:
+
+ LoadModule perl_module lib/httpd/mod_perl.so
+
+If switching to/from a server with and without mod_perl enabled, you
+should NOT use "apachectl restart" - instead, fully stop and then start
+the server. This prevents problems with libperl spinning on the CPU.
+
+=============================================================================
diff --git a/www/ap2-perl/Makefile b/www/ap2-perl/Makefile
new file mode 100644
index 00000000000..894af8acb5b
--- /dev/null
+++ b/www/ap2-perl/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/28 07:40:29 jlam Exp $
+#
+# This package tracks a snapshot of modperl-2.0 that is updated every 6
+# hours. To update to the latest snapshot, simply change DISTNAME to
+# point to the correct distfile at ${MASTER_SITES}. The PKGNAME is taken
+# from ${WRKSRC}/STATUS.
+#
+# NOTE: This package is *BETA*. If it doesn't work, then check the
+# modperl-2.0 mailing lists for help.
+
+DISTNAME= modperl-2.0_20020628042432
+PKGNAME= ap2-perl-1.99.5
+WRKSRC= ${WRKDIR}/modperl-2.0
+CATEGORIES= www perl5
+MASTER_SITES= http://cvs.apache.org/snapshots/modperl-2.0/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://perl.apache.org/
+COMMENT= Module that embeds a Perl interpreter into Apache
+
+DEPENDS+= apache>=2.0.39:../../www/apache2
+
+# This section should be removed when modperl-2.0 is released.
+RESTRICTED= "Changes frequently; fetch from master site."
+NO_SRC_ON_FTP= ${RESTRICTED}
+NO_CHECKSUM= # defined
+
+USE_BUILDLINK_ONLY= # defined
+USE_PERL5= # defined
+PERL5_REQD= 5.6.0
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/mod_perl/.packlist
+
+MAKE_PARAMS+= MP_APXS=${LOCALBASE}/sbin/apxs
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL ${MAKE_PARAMS}
+
+post-configure:
+ for file in ${WRKSRC}/xs/modperl_xs_typedefs.h; do \
+ ${MV} -f $${file} $${file}.orig; \
+ ${GREP} -v "apr_thread_mutex_t" \
+ $${file}.orig > $${file}; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap2-perl/PLIST b/www/ap2-perl/PLIST
new file mode 100644
index 00000000000..4339a9bafe2
--- /dev/null
+++ b/www/ap2-perl/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/28 07:40:29 jlam Exp $
+lib/httpd/mod_perl.so