ports/90655: [MAINTAINER] www/mod_perl2: fix for apache21 and higher
Lars Eggert
lars.eggert at gmx.net
Mon Dec 19 16:40:14 UTC 2005
>Number: 90655
>Category: ports
>Synopsis: [MAINTAINER] www/mod_perl2: fix for apache21 and higher
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 19 16:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Lars Eggert
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD kobe.netlab.nec.de 6.0-STABLE FreeBSD 6.0-STABLE #1: Wed Nov 23 11:09:36 CET 2005
>Description:
- variant of the fix in ports/90312 (can be closed, too)
- warn if an apache newer than apache20 is used
(maintainer can't test)
- remove warning about API change, it's been a year
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- mod_perl2-2.0.2,3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/mod_perl2--/Makefile /usr/ports/www/mod_perl2/Makefile
--- /usr/ports/www/mod_perl2--/Makefile Mon Dec 19 15:00:04 2005
+++ /usr/ports/www/mod_perl2/Makefile Mon Dec 19 15:30:18 2005
@@ -7,7 +7,7 @@
PORTNAME= mod_perl
PORTVERSION= 2.0.2
-PORTEPOCH= 2
+PORTEPOCH= 3
CATEGORIES= www perl5
MASTER_SITES= http://perl.apache.org/dist/ \
http://perl.apache.org/dist/old/
@@ -16,8 +16,7 @@
MAINTAINER= lars.eggert at gmx.net
COMMENT= Embeds a Perl interpreter in the Apache2 server
-USE_APACHE= yes
-WITH_APACHE2= yes
+USE_APACHE= 2.0+
PERL_CONFIGURE= yes
GMAKE= yes
@@ -56,17 +55,20 @@
ModPerl::RegistryLoader.3 ModPerl::RegistryPrefork.3 \
ModPerl::Util.3 mod_perl2.3
+.include <bsd.port.pre.mk>
+
pre-everything::
+.if ${APACHE_VERSION} >= 21
@${ECHO} "************************************************************"
- @${ECHO} "NOTE: Version 2.0.0-RC5 and higher of ${PORTNAME}"
- @${ECHO} " significantly change the API - old code *will* break!"
- @${ECHO} " See http://perl.apache.org/docs/2.0/rename.html"
+ @${ECHO} "You are building ${PORTNAME}-${PORTVERSION} for apache${APACHE_VERSION}."
@${ECHO} ""
- @${ECHO} "Hit Ctrl-C to abort now, if this is of concern."
+ @${ECHO} "Please note that the maintainer only tests ${PORTNAME}-${PORTVERSION}"
+ @${ECHO} "with apache20. If you encounter a problem, please roll back"
+ @${ECHO} "to that version and verify that the problem still exists,"
+ @${ECHO} "before submitting a problem report."
@${ECHO} "************************************************************"
- @sleep 10
-
-.include <bsd.port.pre.mk>
+ @sleep 5
+.endif
# it is time to require perl 5.8.x
.if ${PERL_LEVEL} < 500800
@@ -74,14 +76,14 @@
.endif
post-install:
- ${MKDIR} ${PREFIX}/include/apache2/modules/perl
+ ${MKDIR} ${PREFIX}/${APACHEINCLUDEDIR}/modules/perl
${INSTALL_DATA} ${WRKSRC}/src/modules/perl/*.h \
- ${PREFIX}/include/apache2/modules/perl
- ${INSTALL_DATA} ${WRKSRC}/xs/*.h ${PREFIX}/include/apache2
- ${INSTALL_DATA} ${WRKSRC}/xs/APR/PerlIO/*.h ${PREFIX}/include/apache2
- ${MKDIR} ${PREFIX}/libexec/apache2
+ ${PREFIX}/${APACHEINCLUDEDIR}/modules/perl
+ ${INSTALL_DATA} ${WRKSRC}/xs/*.h ${PREFIX}/${APACHEINCLUDEDIR}
+ ${INSTALL_DATA} ${WRKSRC}/xs/APR/PerlIO/*.h ${PREFIX}/${APACHEINCLUDEDIR}
+ ${MKDIR} ${PREFIX}/${APACHEMODDIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/modules/perl/mod_perl.so \
- ${PREFIX}/libexec/apache2/mod_perl.so
+ ${PREFIX}/${APACHEMODDIR}/mod_perl.so
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/www/mod_perl2--/distinfo /usr/ports/www/mod_perl2/distinfo
--- /usr/ports/www/mod_perl2--/distinfo Mon Dec 19 15:00:04 2005
+++ /usr/ports/www/mod_perl2/distinfo Mon Dec 19 17:27:50 2005
@@ -1,2 +1,3 @@
MD5 (mod_perl-2.0.2.tar.gz) = ad0a509fd34e3b8452887d80a1d45dea
+SHA256 (mod_perl-2.0.2.tar.gz) = 64a3f54111c953c46ed7b1bafb4ebb034447ca6baba73a8657ad7a39ddeca906
SIZE (mod_perl-2.0.2.tar.gz) = 3692744
diff -ruN --exclude=CVS /usr/ports/www/mod_perl2--/pkg-plist /usr/ports/www/mod_perl2/pkg-plist
--- /usr/ports/www/mod_perl2--/pkg-plist Mon Dec 19 15:00:04 2005
+++ /usr/ports/www/mod_perl2/pkg-plist Mon Dec 19 15:56:05 2005
@@ -1,56 +1,56 @@
bin/mp2bug
-include/apache2/modperl_apr_perlio.h
-include/apache2/modperl_xs_sv_convert.h
-include/apache2/modperl_xs_typedefs.h
-include/apache2/modperl_xs_util.h
-include/apache2/modules/perl/mod_perl.h
-include/apache2/modules/perl/modperl_apache_compat.h
-include/apache2/modules/perl/modperl_apache_includes.h
-include/apache2/modules/perl/modperl_apr_compat.h
-include/apache2/modules/perl/modperl_apr_includes.h
-include/apache2/modules/perl/modperl_bucket.h
-include/apache2/modules/perl/modperl_callback.h
-include/apache2/modules/perl/modperl_cgi.h
-include/apache2/modules/perl/modperl_cmd.h
-include/apache2/modules/perl/modperl_common_debug.h
-include/apache2/modules/perl/modperl_common_includes.h
-include/apache2/modules/perl/modperl_common_log.h
-include/apache2/modules/perl/modperl_common_types.h
-include/apache2/modules/perl/modperl_common_util.h
-include/apache2/modules/perl/modperl_config.h
-include/apache2/modules/perl/modperl_const.h
-include/apache2/modules/perl/modperl_constants.h
-include/apache2/modules/perl/modperl_debug.h
-include/apache2/modules/perl/modperl_directives.h
-include/apache2/modules/perl/modperl_env.h
-include/apache2/modules/perl/modperl_error.h
-include/apache2/modules/perl/modperl_filter.h
-include/apache2/modules/perl/modperl_flags.h
-include/apache2/modules/perl/modperl_global.h
-include/apache2/modules/perl/modperl_gtop.h
-include/apache2/modules/perl/modperl_handler.h
-include/apache2/modules/perl/modperl_hooks.h
-include/apache2/modules/perl/modperl_interp.h
-include/apache2/modules/perl/modperl_io.h
-include/apache2/modules/perl/modperl_io_apache.h
-include/apache2/modules/perl/modperl_largefiles.h
-include/apache2/modules/perl/modperl_log.h
-include/apache2/modules/perl/modperl_mgv.h
-include/apache2/modules/perl/modperl_module.h
-include/apache2/modules/perl/modperl_options.h
-include/apache2/modules/perl/modperl_pcw.h
-include/apache2/modules/perl/modperl_perl.h
-include/apache2/modules/perl/modperl_perl_global.h
-include/apache2/modules/perl/modperl_perl_includes.h
-include/apache2/modules/perl/modperl_perl_pp.h
-include/apache2/modules/perl/modperl_perl_unembed.h
-include/apache2/modules/perl/modperl_svptr_table.h
-include/apache2/modules/perl/modperl_sys.h
-include/apache2/modules/perl/modperl_time.h
-include/apache2/modules/perl/modperl_tipool.h
-include/apache2/modules/perl/modperl_trace.h
-include/apache2/modules/perl/modperl_types.h
-include/apache2/modules/perl/modperl_util.h
+%%APACHEINCLUDEDIR%%/modperl_apr_perlio.h
+%%APACHEINCLUDEDIR%%/modperl_xs_sv_convert.h
+%%APACHEINCLUDEDIR%%/modperl_xs_typedefs.h
+%%APACHEINCLUDEDIR%%/modperl_xs_util.h
+%%APACHEINCLUDEDIR%%/modules/perl/mod_perl.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_apache_compat.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_apache_includes.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_apr_compat.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_apr_includes.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_bucket.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_callback.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_cgi.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_cmd.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_common_debug.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_common_includes.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_common_log.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_common_types.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_common_util.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_config.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_const.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_constants.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_debug.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_directives.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_env.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_error.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_filter.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_flags.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_global.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_gtop.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_handler.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_hooks.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_interp.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_io.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_io_apache.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_largefiles.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_log.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_mgv.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_module.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_options.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_pcw.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_perl.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_perl_global.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_perl_includes.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_perl_pp.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_perl_unembed.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_svptr_table.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_sys.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_time.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_tipool.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_trace.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_types.h
+%%APACHEINCLUDEDIR%%/modules/perl/modperl_util.h
%%SITE_PERL%%/%%PERL_ARCH%%/APR.pm
%%SITE_PERL%%/%%PERL_ARCH%%/APR/Base64.pm
%%SITE_PERL%%/%%PERL_ARCH%%/APR/Brigade.pm
--- mod_perl2-2.0.2,3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list