aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_perl
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-11-05 22:50:26 +0800
committersheldonh <sheldonh@FreeBSD.org>1999-11-05 22:50:26 +0800
commitd16d9d5a13dc6356637b9fe89eb821d8951d989f (patch)
treebc34d2b5371179839b22c754a925d366975f1625 /www/mod_perl
parent3bde479290f8a13cf37ed729c5d8e25f44053137 (diff)
downloadfreebsd-ports-gnome-d16d9d5a13dc6356637b9fe89eb821d8951d989f.tar.gz
freebsd-ports-gnome-d16d9d5a13dc6356637b9fe89eb821d8951d989f.tar.zst
freebsd-ports-gnome-d16d9d5a13dc6356637b9fe89eb821d8951d989f.zip
Initial import of mod_perl 1.21.
This is mod_perl for Apache. It is intended as a replacement for the p5-Apache port. Instead of creating a replacement httpd binary with mod_perl linked into it, it uses Apache's APXS to create and install mod_perl as a DSO. This makes it suitable for use with apachexx-xxx ports other than apache13.
Diffstat (limited to 'www/mod_perl')
-rw-r--r--www/mod_perl/Makefile45
-rw-r--r--www/mod_perl/distinfo1
-rw-r--r--www/mod_perl/pkg-comment1
-rw-r--r--www/mod_perl/pkg-descr7
-rw-r--r--www/mod_perl/pkg-install65
-rw-r--r--www/mod_perl/pkg-plist60
6 files changed, 179 insertions, 0 deletions
diff --git a/www/mod_perl/Makefile b/www/mod_perl/Makefile
new file mode 100644
index 000000000000..204d8a2202fd
--- /dev/null
+++ b/www/mod_perl/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: p5-Apache
+# Version required: 1.19
+# Date created: April 26th 1997
+# Whom: James FitzGibbon <jfitz@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+DISTNAME= mod_perl-1.21
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Apache
+
+MAINTAINER= sheldonh@FreeBSD.org
+
+RUN_DEPENDS= ${PREFIX}/sbin/apxs:${PORTSDIR}/www/apache13
+
+USE_PERL5= YES
+
+MAN3= Apache.3 Apache::Constants.3 Apache::ExtUtils.3 \
+ Apache::FakeRequest.3 Apache::Leak.3 \
+ Apache::Log.3 Apache::Options.3 \
+ Apache::PerlRun.3 Apache::PerlRunXS.3 \
+ Apache::RedirectLogFix.3 \
+ Apache::Registry.3 Apache::SizeLimit.3 \
+ Apache::Status.3 Apache::Symbol.3 Apache::Symdump.3 \
+ Apache::Table.3 Apache::URI.3 Apache::Util.3 \
+ Apache::httpd_conf.3 Apache::src.3 Bundle::Apache.3 \
+ Apache::Debug.3 mod_perl.3 Apache::SIG.3 Apache::Resource.3 \
+ Apache::RegistryLoader.3 Apache::StatINC.3 Apache::Include.3 \
+ Apache::PerlSections.3 cgi_to_mod_perl.3 \
+ mod_perl_cvs.3 mod_perl_method_handlers.3 mod_perl_traps.3 \
+ mod_perl_tuning.3
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+do-configure:
+ @ cd ${WRKSRC}; \
+ ${PERL5} Makefile.PL USE_APXS=1 EVERYTHING=1 \
+ WITH_APXS=${PREFIX}/sbin/apxs \
+ PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:/usr/local/bin\"'
+
+post-install:
+ @ ${SH} ${PKGINSTALL}
+
+.include <bsd.port.mk>
diff --git a/www/mod_perl/distinfo b/www/mod_perl/distinfo
new file mode 100644
index 000000000000..5617eb59a45d
--- /dev/null
+++ b/www/mod_perl/distinfo
@@ -0,0 +1 @@
+MD5 (mod_perl-1.21.tar.gz) = 3695bb66e8eecf6cceec97e54d48f48e
diff --git a/www/mod_perl/pkg-comment b/www/mod_perl/pkg-comment
new file mode 100644
index 000000000000..94191384426a
--- /dev/null
+++ b/www/mod_perl/pkg-comment
@@ -0,0 +1 @@
+Embeds a Perl interpreter in the Apache server
diff --git a/www/mod_perl/pkg-descr b/www/mod_perl/pkg-descr
new file mode 100644
index 000000000000..b88705f98b67
--- /dev/null
+++ b/www/mod_perl/pkg-descr
@@ -0,0 +1,7 @@
+The Apache/Perl integration project brings together the full power of
+the Perl programming language and the Apache HTTP server. With mod_perl
+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 and the penalty of Perl start-up time.
+
+WWW: http://perl.apache.org/
diff --git a/www/mod_perl/pkg-install b/www/mod_perl/pkg-install
new file mode 100644
index 000000000000..e8febee63725
--- /dev/null
+++ b/www/mod_perl/pkg-install
@@ -0,0 +1,65 @@
+#!/bin/sh
+#
+# Try to activate mod_perl in the installed httpd.conf and warn
+# if this fails. This script could be replaced with a simple @exec
+# line in the PLIST if the apache13 package installed an httpd.conf.
+#
+# $FreeBSD$
+#
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+TMPDIR=${TMPDIR:=/tmp}
+PKG_TMPDIR=${PKG_TMPDIR:=${TMPDIR}}
+
+apxscmd=${PKG_PREFIX}/sbin/apxs
+perlmod=${PKG_PREFIX}/libexec/apache/libperl.so
+tmpdir=${PKG_TMPDIR}/instmod_perl.$$
+
+if [ ! -x ${apxscmd} ]; then
+ echo Can\'t find the apxs program: ${apxscmd}.
+ exit 1
+fi
+
+confdir=`${apxscmd} -q SYSCONFDIR`
+
+if [ ! -d ${confdir} ]; then
+ echo Can\'t find Apache conf dir: ${confdir}
+ exit 1
+fi
+
+if [ ! -f ${confdir}/httpd.conf ]; then
+ if [ ! -f ${confdir}/httpd.conf.default ]; then
+ echo Can\'t find either of ${confdir}/httpd.conf nor
+ echo ${confdir}/httpd.conf.default.
+ exit 1
+ fi
+
+ if ! mkdir ${tmpdir}; then
+ echo Can\'t create temporary directory: ${tmpdir}
+ exit 1
+ fi
+
+ cp ${confdir}/httpd.conf.default ${tmpdir}/httpd.conf
+ if ${apxscmd} -e -S SYSCONFDIR=${tmpdir} -a -n perl ${perlmod}; then
+ echo Updating httpd.conf.default in config dir: ${confdir}
+ cat ${tmpdir}/httpd.conf > ${confdir}/httpd.conf.default
+ rm -rf ${tmpdir}
+ exit 0
+ else
+ rm -rf ${tmpdir}
+ echo The apxs command failed to activate mod_perl in the config
+ echo file: ${tmpdir}/httpd.conf.
+ exit 1
+ fi
+elif ${apxscmd} -e -a -n perl ${perlmod}; then
+ exit 0
+else
+ echo The apxs command failed to activate mod_perl in the config
+ echo file: ${confdir}/httpd.conf
+ exit 1
+fi
+
+exit 0
diff --git a/www/mod_perl/pkg-plist b/www/mod_perl/pkg-plist
new file mode 100644
index 000000000000..b949dc4f4e19
--- /dev/null
+++ b/www/mod_perl/pkg-plist
@@ -0,0 +1,60 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Connection.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Constants.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Constants/Exports.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Debug.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/ExtUtils.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/FakeRequest.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/File.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Include.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Leak.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Log.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/ModuleConfig.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/MyConfig.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Opcode.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Options.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/PerlRun.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/PerlRunXS.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/PerlSections.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/RedirectLogFix.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Registry.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/RegistryBB.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/RegistryLoader.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/RegistryNG.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Resource.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/SIG.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Server.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/SizeLimit.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/StatINC.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Status.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Symbol.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Symdump.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Table.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/URI.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Util.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/httpd_conf.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/src.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/test.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Bundle/Apache.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Leak/Leak.bs
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Leak/Leak.so
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Symbol/Symbol.bs
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Symbol/Symbol.so
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/mod_perl/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/cgi_to_mod_perl.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_cvs.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_hooks.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_hooks.pm.PL
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_method_handlers.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_traps.pod
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/mod_perl_tuning.pod
+libexec/apache/libperl.so
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Constants
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Bundle
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Leak
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Symbol
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/mod_perl