From 2e64f2c115b56c71e66862d845b8253fd89e99ec Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Sun, 2 Nov 2003 23:29:08 +0000 Subject: * Fix install with perl < 5.8. PR: 58490 Submitted by: Lars Eggert Reported by: Peter McGarvey * Use PERL_CONFIGURE. * Fix packing list. Approved by: maintainer --- www/mod_perl2/Makefile | 15 +++++---------- www/mod_perl2/files/patch-ab | 14 ++++++++++++++ www/mod_perl2/pkg-plist | 4 +++- 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 www/mod_perl2/files/patch-ab (limited to 'www/mod_perl2') diff --git a/www/mod_perl2/Makefile b/www/mod_perl2/Makefile index 7b9436e6008a..853be43abb06 100644 --- a/www/mod_perl2/Makefile +++ b/www/mod_perl2/Makefile @@ -7,6 +7,7 @@ PORTNAME= mod_perl PORTVERSION= 1.99r10 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= http://perl.apache.org/dist/ \ http://perl.apache.org/dist/old/ @@ -19,10 +20,9 @@ COMMENT= Embeds a Perl interpreter in the Apache2 server BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${APACHE2_PORT} RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${APACHE2_PORT} -USE_PERL5= YES - -INSTALLS_SHLIB= YES -LDCONFIG_DIRS= %%PREFIX%%/libexec/apache2/ +PERL_CONFIGURE= yes +CONFIGURE_ARGS= MP_APXS=${LOCALBASE}/sbin/apxs \ + MP_INST_APACHE2=1 PREFIX=${PREFIX} MAN3= Apache::TestRequest.3 Apache::TestSmoke.3 Apache::TestRun.3 \ Apache::TestTrace.3 Apache::TestMM.3 Bundle::ApacheTest.3 \ @@ -41,14 +41,9 @@ MAN3+= ModPerl::Config.3 Apache::TestConfig.3 ## this port requires PERL 5.6.x or later ## .if ${PERL_LEVEL} < 500600 -IGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again +IGNORE= requires perl 5.6.x or later. Install lang/perl5 then try again .endif -do-configure: - @ cd ${WRKSRC}; \ - ${PERL5} Makefile.PL MP_APXS=${LOCALBASE}/sbin/apxs \ - MP_INST_APACHE2=1 PREFIX=${PREFIX} - post-install: ${MKDIR} ${PREFIX}/include/apache2/modules/perl ${INSTALL_DATA} ${WRKSRC}/src/modules/perl/*.h \ diff --git a/www/mod_perl2/files/patch-ab b/www/mod_perl2/files/patch-ab new file mode 100644 index 000000000000..b14e639ad3a0 --- /dev/null +++ b/www/mod_perl2/files/patch-ab @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- Apache-Test/install-pl.old Fri Oct 24 07:42:28 2003 ++++ Apache-Test/install-pl Fri Oct 24 07:42:38 2003 +@@ -58,7 +58,7 @@ + return <