- Kwiki::ModPerl - enable Kwiki to work under mod_perl (mod_perl2)

This commit is contained in:
Cheng-Lung Sung 2005-04-06 08:25:42 +00:00
parent 54e09a4da5
commit b20cce15d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132616
6 changed files with 74 additions and 0 deletions

View File

@ -512,6 +512,7 @@
SUBDIR += p5-Kwiki-Diff
SUBDIR += p5-Kwiki-GDGraphGenerator
SUBDIR += p5-Kwiki-Icons-Gnome
SUBDIR += p5-Kwiki-ModPerl
SUBDIR += p5-Kwiki-NewPage
SUBDIR += p5-Kwiki-PagePrivacy
SUBDIR += p5-Kwiki-RecentChanges

View File

@ -0,0 +1,42 @@
# New ports collection makefile for: p5-Kwiki-ModPerl
# Date created: Wed Apr 6 16:30:34 CST 2005
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= Kwiki-ModPerl
PORTVERSION= 0.06
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Kwiki
PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
COMMENT= Enable Kwiki to work under mod_perl
BUILD_DEPENDS= ${SITE_PERL}/Kwiki.pm:${PORTSDIR}/www/p5-Kwiki
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
.if defined(WITH_APACHE2)
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
pre-patch:
@${REINPLACE_CMD} -e 's|mod_perl|Apache2::mod_perl|g' ${WRKSRC}/Makefile.PL
.else
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
.endif
MAN3= Kwiki::ModPerl.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
IGNORE= This port requires perl 5.8.x or later. Install lang/perl5.8 then try again
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (Kwiki-ModPerl-0.06.tar.gz) = b27b50056ba8b2557ce808ec84ebe222
SIZE (Kwiki-ModPerl-0.06.tar.gz) = 9726

View File

@ -0,0 +1,3 @@
Kwiki::ModPerl - enable Kwiki to work under mod_perl
WWW: http://search.cpan.org/dist/Kwiki-ModPerl/

View File

@ -0,0 +1,23 @@
/* ================================================================= */
Note:
Kwiki-ModPerl plugin installed! Now you should modify
your Apache configuration:
<Location /kwiki>
SetHandler perl-script
PerlSetVar KwikiBaseDir /path/to/webroot/kwiki
PerlHandler +Kwiki::ModPerl
</Location>
If you have a custom lib directory for your Kwiki:
<Perl>
use lib '/path/to/webroot/kwiki/lib';
</Perl>
If you're using mod_perl2, please add the following line
into your httpd.conf:
PerlModule Apache2
/* ================================================================= */

View File

@ -0,0 +1,3 @@
%%SITE_PERL%%/Kwiki/ModPerl.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Kwiki/ModPerl/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Kwiki/ModPerl