add mod_perl port; From: Pavel Korovin <pvk@openbsd.ru>

--
Tested on i386 (by Pavel), SPARC (by me). Needs testing on m68k-based
systems.
--
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.
This commit is contained in:
brad 2000-09-06 07:52:45 +00:00
parent 68da769ceb
commit 92c8d4dfe2
8 changed files with 263 additions and 0 deletions

49
www/mod_perl/Makefile Normal file
View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/09/06 07:52:45 brad Exp $
ONLY_FOR_ARCHS= i386 m68k sparc
DISTNAME= mod_perl-1.24
CATEGORIES= www perl5
NEED_VERSION= 1.324
MASTER_SITES= http://perl.apache.org/dist/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
HOMEPAGE= http://perl.apache.org/
MAINTAINER= pvk@openbsd.ru
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
INSTALL_TARGET= pure_install doc_install
do-configure:
@arch=`/usr/bin/perl -e 'use Config; print $$Config{archname}, "\n";'`; \
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
/usr/bin/perl Makefile.PL \
USE_APXS=1 EVERYTHING=1 WITH_APXS=/usr/sbin/apxs \
PREFIX='$${DESTDIR}${PREFIX}' \
INSTALLSITELIB='$${DESTDIR}${PREFIX}/libdata/perl5/site_perl' \
INSTALLSITEARCH="\$${INSTALLSITELIB}/$$arch" \
INSTALLPRIVLIB='$${DESTDIR}/usr/libdata/perl5' \
INSTALLARCHLIB="\$${INSTALLPRIVLIB}/$$arch" \
INSTALLMAN1DIR='$${DESTDIR}${PREFIX}/man/man1' \
INSTALLMAN3DIR='$${DESTDIR}${PREFIX}/man/man3' \
INSTALLBIN='$${PREFIX}/bin' \
INSTALLSCRIPT='$${INSTALLBIN}'
post-build:
@sed -e s#!!PREFIX!!#${PREFIX}#g \
< ${FILESDIR}/mod_perl-enable > ${WRKDIR}/mod_perl-enable
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_perl
${INSTALL_DATA} ${WRKBUILD}/apaci/libperl.so ${PREFIX}/lib/mod_perl.so
${INSTALL_DATA} ${WRKSRC}/htdocs/manual/mod/* \
${PREFIX}/share/doc/mod_perl
${INSTALL_SCRIPT} ${WRKDIR}/mod_perl-enable ${PREFIX}/sbin
.include <bsd.port.mk>

3
www/mod_perl/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (mod_perl-1.24.tar.gz) = 08d0ac4c9e2436fdb038021ae8826a8c
RMD160 (mod_perl-1.24.tar.gz) = 97c5080ae26813cfdd768aebf5759cb3a4db3530
SHA1 (mod_perl-1.24.tar.gz) = 94c03e2506f94a7081ff65c2ab5921fdaae47bd5

View File

@ -0,0 +1,13 @@
#!/bin/sh
#
# $OpenBSD: mod_perl-enable,v 1.1.1.1 2000/09/06 07:52:46 brad Exp $
MODULE=!!PREFIX!!/lib/mod_perl.so
if [ ! -f ${MODULE} ]; then
echo "can't find mod_perl module (${MODULE})"
exit 1
else
echo "enabling perl module..."
/usr/sbin/apxs -i -a -n perl ${MODULE}
fi

1
www/mod_perl/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
module that embeds a Perl interpreter into Apache

View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2000/09/06 07:52:46 brad Exp $
#
# mod_perl de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONF=`/usr/sbin/apxs -q SYSCONFDIR`/httpd.conf
rm -f /usr/lib/apache/modules/libperl.so
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you"
echo "| need to perform these steps as root:"
echo "|"
echo "| edit ${CONF}"
echo "| and remove the line LoadModule perl_module"
echo "|"
echo "| Do not do this if you plan on re-installing mod_perl"
echo "| package at some future time."
echo "+---------------"
echo
exit 0

12
www/mod_perl/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
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.
WWW: ${HOMEPAGE}

49
www/mod_perl/pkg/INSTALL Normal file
View File

@ -0,0 +1,49 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2000/09/06 07:52:46 brad Exp $
#
# mod_perl installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
do_notice()
{
echo
echo "+---------------"
echo "| To finish the install of $1, you need to enable the"
echo "| module using the following command"
echo "|"
echo "| $PREFIX/sbin/mod_perl-enable"
echo "|"
echo "| If you already have Apache running on your machine,"
echo "| you should not use "apachectl restart" - instead,"
echo "| you fully stop and then restart the server."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
do_notice $1
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

109
www/mod_perl/pkg/PLIST Normal file
View File

@ -0,0 +1,109 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/09/06 07:52:46 brad Exp $
lib/mod_perl.so
libdata/perl5/site_perl/${ARCH}-openbsd/Apache.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Connection.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Constants.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Constants/Exports.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Debug.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/ExtUtils.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/FakeRequest.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/File.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Include.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Leak.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Log.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/ModuleConfig.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/MyConfig.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Opcode.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Options.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/PerlRun.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/PerlRunXS.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/PerlSections.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/RedirectLogFix.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Registry.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/RegistryBB.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/RegistryLoader.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/RegistryNG.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Resource.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/SIG.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Server.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/SizeLimit.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/StatINC.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Status.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Symbol.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Symdump.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Table.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/URI.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Util.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/httpd_conf.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/src.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Apache/test.pm
libdata/perl5/site_perl/${ARCH}-openbsd/Bundle/Apache.pm
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Leak/Leak.bs
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Leak/Leak.so
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Symbol/Symbol.bs
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Symbol/Symbol.so
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/ap_config_auto.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl/apache_inc.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl/mod_perl.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl/mod_perl_version.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl/mod_perl_xs.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl/perl_PL.h
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/mod_perl.exp
libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/typemap
libdata/perl5/site_perl/${ARCH}-openbsd/auto/mod_perl/.packlist
libdata/perl5/site_perl/${ARCH}-openbsd/cgi_to_mod_perl.pod
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl.pm
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl.pod
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_cvs.pod
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_hooks.pm
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_hooks.pm.PL
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_method_handlers.pod
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_traps.pod
libdata/perl5/site_perl/${ARCH}-openbsd/mod_perl_tuning.pod
man/man3/Apache.3p
man/man3/Apache::Constants.3p
man/man3/Apache::Debug.3p
man/man3/Apache::ExtUtils.3p
man/man3/Apache::FakeRequest.3p
man/man3/Apache::File.3p
man/man3/Apache::Include.3p
man/man3/Apache::Leak.3p
man/man3/Apache::Log.3p
man/man3/Apache::Options.3p
man/man3/Apache::PerlRun.3p
man/man3/Apache::PerlRunXS.3p
man/man3/Apache::PerlSections.3p
man/man3/Apache::RedirectLogFix.3p
man/man3/Apache::Registry.3p
man/man3/Apache::RegistryLoader.3p
man/man3/Apache::Resource.3p
man/man3/Apache::SIG.3p
man/man3/Apache::SizeLimit.3p
man/man3/Apache::StatINC.3p
man/man3/Apache::Status.3p
man/man3/Apache::Symbol.3p
man/man3/Apache::Symdump.3p
man/man3/Apache::Table.3p
man/man3/Apache::URI.3p
man/man3/Apache::Util.3p
man/man3/Apache::httpd_conf.3p
man/man3/Apache::src.3p
man/man3/Bundle::Apache.3p
man/man3/cgi_to_mod_perl.3p
man/man3/mod_perl.3p
man/man3/mod_perl_cvs.3p
man/man3/mod_perl_method_handlers.3p
man/man3/mod_perl_traps.3p
man/man3/mod_perl_tuning.3p
sbin/mod_perl-enable
share/doc/mod_perl/mod_perl.html
@dirrm share/doc/mod_perl
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/mod_perl
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules/perl
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include/modules
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/include
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Symbol
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache/Leak
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/auto/Apache
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/Apache/Constants
@dirrm libdata/perl5/site_perl/${ARCH}-openbsd/Apache