2012-10-03 23:53:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.50 2012/10/03 21:58:26 wiz Exp $
|
1998-12-04 01:10:57 +01:00
|
|
|
#
|
|
|
|
|
Update ap-perl to 1.31.
While here, fixes build with perl-5.14.
= 1.31 May 11, 2009
Fix static APACI build on Mac OS X. [Gozer]
Fix XSS vulnerability in Apache::Status reported by
Richard J. Brain, CVE-2009-0796
[Fred Moyer]
On Win32, mod_perl.h needs to include <malloc.h> before the perl
headers, at least when built with USE_ITHREADS
[Steve Hay]
Win32 needs PERL_SYS_INIT/PERL_SYS_TERM calls when built with
USE_ITHREADS [sic--that's different to USE_THREADS]. In fact,
they ought to be always called if they are defined
[Steve Hay]
Fix potential segfault when the environment contains
NULL values [Mike Schilli]
Fix static APACI build against newer apache-1.3.38+
[Gozer]
Fixed modules/regex.t test 4 on Win32
[Steve Hay]
Avoid possible segfault when PerlFreshRestart is On.
[Michael Rendell <michael@cs.mun.ca>]
Prevent segfault when running with perl >= 5.9.3
[Steve Hay]
Fix shared libary extensions on Win32 to be .dll not .so
[Nikolay Ananiev <ananiev@thegdb.com>]
Patch to mod_perl.dsp to remove /D _WINSOCK2API_ on Win32
for perl >= 5.8.6 [Steve Hay]
= 1.30 March 29, 2007
SECURITY: CVE-2007-1349 (cve.mitre.org)
fix unescaped variable interpolation in Apache::PerlRun
regular expression to prevent regex engine tampering.
reported by Alex Solovey
[Randal L. Schwartz <merlyn@stonehenge.com>, Fred Moyer <fred@redhotpenguin.com>]
sync Apache-SizeLimit with latest version from CPAN (0.91)
[Philip M. Gollucci, Philippe M. Chiasson]
Fix an Apache::(Registry|PerlRun) bug caused by special characters
in the url [kolya@mail.ru]
Display a more verbose message if Apache.pm can't be loaded
[Geoffrey Young]
Fix incorrect win32 detection in Apache::SizeLimit reported by
Matt Phillips <mphillips@virage.com> [Philippe M. Chiasson]
The print-a-scalar-reference feature is now deprecated and documented
as such [Stas]
fix "PerlSetVar Foo 0" so that $r->dir_config('Foo') returns 0, not undef
[Geoffrey Young]
for some reason .pm files during the modperl build see $ENV{PERL5LIB}
set in Makefile.PL, which is used for generating Makefiles, as
"PERL5LIB=/path:/another/path" instead of "/path:/another/path"
essentially rendering this env var useless. I'm not sure why, may be
MakeMaker kicks in somewhere. Trying to workaround by
s/PERL5LIB/PERL5LIB_ENV/, using anything that's not PERL5LIB. [Stas]
change $INC{$key} = undef; to delete $INC{$key}; in PerlFreshRestart
[Geoffrey Young]
Fix a bug in Makefile.PL for Win32 where it would, in
certain cases, pick up the wrong Perl include directory
[Steve Hay]
2011-09-21 16:59:32 +02:00
|
|
|
DISTNAME= mod_perl-1.31
|
|
|
|
PKGNAME= ap13-perl-1.31
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
1998-12-04 01:10:57 +01:00
|
|
|
CATEGORIES= www perl5
|
Update ap-perl to 1.24. Changes from 1.19:
* 'sub handler : method {}' is now treated as a method handler
* variable $Apache::Server::ConfigTestOnly is set to 1 if Apache
is running in configuration test mode (httpd -t)
* add PerlAddVar directive, like PerlSetVar, but uses ap_table_add
instead of ap_table_set
* Apache::Table->unset can now be called with an array reference
* Apache::PerlRun::flush_namespace fixes, so aliased (imported)
code/hash/array/scalar are undefined without undef-ing the pointed-to
data and without using B.pm, thanks to Richard Chen for the suggestion
* document Apache::print's special behavior wrt references
* fix core dump triggered by <Perl>do 'foo.pl'</Perl>,
* pass $Config{ccflags} to apache for 5.6.0+
* fix Apache->httpd_conf, thanks to Will Trillich for the spot
* fixed 'make clean' to remove FILES => passed to MakeMaker
* add Apache::FILENO method for 5.6.0+ tied filehandle support
thanks to Richard Titmuss for the spot
* --disable-rule=EXPAT is passed to Apache's configure to avoid
XML::Parser conflicts
* fix PerlSetVar inheritance bug
* set r->notes("error-notes") to $@ if $@ after a Perl*Handlers is run
* added INSTALL.raven
* $c->remote_ip($ip) now also sets conn->remote_addr to make
IP-based access control work correctly
* Apache::URI::port wasn't setting the port correctly
* $Apache::Registry::NameWithVirtualHost fix take 2
(move is_virtual logic from mod_perl.c to Registry.pm)
* added Apache::OPEN method for 5.6.0+ tied filehandle support
* Apache::Table is now loaded by default (if enabled), rather than
autoloading when first needed
* $r->document_root can now be modified
* upgrade license to apache software license version 1.1
* $r->the_request can now be modified
* warn that dso+Perl malloc needs a Perl built with -Ubincompat5005
* add Apache::BINMODE stub for 5.6.0 tied filehandle support (fixes cgi.t #4)
* add $r->server->loglevel() and relevant constants.
* $Apache::Server::AddPerlVersion uses $^V for Perl/v5.6.0+
* reset the stack pointer after calling perl_require_module() in
perl_call_handler(). this fix will most likely cure the reports of
"Can't upgrade that kind of scalar at ..."
* change $Apache::VERSION check to use a string instead of SvNV, which
was troublesome with Perl 5.6.0
* Apache::src fixup to quiet warnings under Perl 5.004
* Apache::src::apxs fixups to quiet warnings if apxs doesnt exist or
httpd is not dso enabled
* fix #ifdef SGI_BOOST typo
* proxy support fixed wrt RFC2068
* set Apache::Resource::DEFAULT_RLIMIT_AS (address space) to 64Mb
* Bundle::Apache will now install Bundle::LWP before mod_perl
* support Apache::FakeRequest::args in a list context
* compile fixes for 5.6 + -Duse5005threads
* log to parms->server instead of stderr if PerlRequire fails
* make sure lib/Apache/MyConfig.pm is written before used
* fixup the output of apxs -q CFLAGS to preserve quoting (again)
* removed the generated apaci/mod_perl.config from MANIFEST
* new variable $Apache::Server::StrictPerlSections, if true, will croak
<Perl> section generates invalid Apache configuration syntax
* new Apache::src->ccflags method to combine $Config{ccflags} and
apxs -q CFLAGS
* added Apache::src->apxs method
* make use of $Config{shrpenv} to find CORE/libperl.so
* fix Apache::Registry bug when filename starts with a 0
* Apache::Registry will restore $r->status to the original value
* fixup the output of apxs -q CFLAGS to preserve quoting
* dso fix fix: modules with END blocks calling xs code (e.g. DBI) would
core dump because the xs .dso had been unloaded, now dso's are not
unloaded until after END blocks are called.
* force environ[] to be copied before any Perl code is loaded
* localize $_ in Apache::send_cgi_header
* fix precedence problem in StatINC.pm
* if hash value has magicalness in <Perl>, invoke FETCH
* sync with 1.3.12's virtual_host section logic for httpd -S + <Perl>
* remove t/httpd symlink during 'make realclean' and when rebuilding
* add Apache::src::otherldflags method
* __THE__ dso fix: dlclose() xs shared objects and call perl_shutdown()
before mod_perl's libperl.so is unloaded/reloaded by mod_so
* add /D "_MSWSOCK_" to ApacheModulePerl.dsp
* Apache::RegistryBB returns DECLINED instead of FORBIDDEN if -d $r->finfo
* add Apache::Util::validate_password()
* call (void)perl_request_rec(r) asap, instead of waiting till the
response phase, e.g. so CGI.pm can be used before PerlHandler, without
having to call Apache->request($r);
* Apache::perl_hook() fixes for Perl*Api
* save/restore $^W in Apache::PerlRun
* fix Apache::Registry when $r->uri ends with a /
* add virtualhost support to Apache::RegistryLoader
* $Apache::Registry::NameWithVirtualHost fix
* allow Apache::PerlRun::handler to be subclassed
* fix $r->connection->remote_ip for SGI performance patches (#ifdef SGI_BOOST)
* mod_perl.exp is now installed
* pod fixups to avoid WARNING from newer pod2*
* Apache::RedirectLogFix now uses $r->last
* tweaks for sfio
* update Apache::SIG docs
* fix get_set_PVp in mod_perl_xs.h
* tweaks to compile/run with 5.5.670 + -Dusethreads
* $r->hostname now documented
* Apache::File methods are now documented
* avoid quoting <Perl> config if args_how == RAW_ARGS
* PerlPassEnv maintains its value beyond the first request,
* prevent possible core dump in $r->pnotes if get_module_config returns
NULL
* fix Apache::Status::status_cv_dump for Perl/5.6-dev
* use perl_get_sv("]") instead of patchlevel for $AddPerlVersion
* Apache::Util functions $r->unescape_uri, $r->unescape_uri_info,
$r->size_string are now documented
* $r->request_time is now documented
* Look for the makepl_args.mod_perl file as .makepl_args.mod_perl in
./ and ../ too since the book says it works so.
* PerlRestartHandler is now enabled w/ ALL_HOOKS=1 (or EVERYTHING=1)
* $r->no_cache(1) will now set the r->headers_out "Pragma" and
"Cache-control" to "no-cache"
* `PerlSetEnv PERL5LIB ...' now works again
* PerlFreshRestart semantics changed to preserve order of PerlModule's
and not to reload modules while actually iterating over %INC
* $r->current_callback now works properly when PerlHandler invokes
subrequests
* if an Apache::Table is NULL return undef (e.g. $r->notes during ChildInit)
* ActivePerl compile patches
* document that Apache 1.2.x is no longer supported
* Apache::src now supported with USE_APXS=1
* disable experimental perlrunxs until future notice
* add sanity check for libgdbm
* change PL_siggv usage to gv_fetchpv("SIG", ...) for Perl 5.6-tobe
* document $r->get_handlers, $r->set_handlers, $r->push_handlers
* document PerlSetVar
* document the fact that $r->dir_config handles keys in a
case insensitive manner
* avoid logging "rwrite returned -1" multiple times in the
same request
* bugfix in write_client() when running under APACHE_SSL
* document the fact that $r->connection->user can be used to set
the authenticated user name
* document the fact that $r->uri sets/gets the URI minus the query string,
not the complete URI
* Apache::RegistryLoader::handler was rewritten to allow a better
diagnostics of scripts preloading problems.
* document the fact that $r->args can be used to set the query string
as well as get it
* add $r->connection->fileno, provides the client file descriptors. This
can be used to detect client disconnect without doing any I/O, e.g. using
IO::Select
* if $r->bytes_sent has not been calculated, then do so before returning
the value.
* ensure that all -I directories printed by Apache::src actually exist
* don't assume $uri =~ /$path_info$/ in Apache::Registry/PerlRun
* fix segfault when using Limit in <Perl> sections
* make $c->remote_host writeable
* add per-server PerlSetVar variables, accessed using
Apache->server->dir_config or $r->server->dir_config.
$r->dir_config merges them with per-directory variables.
* documentation typo
* add $r->server->uid and $r->server->gid
* add per-server configuration merge
* `_' is no longer escaped in Apache::Registry package names
* fix $ENV{PATH} corruption
* mod_perl_version.h removed from MANIFEST
* preload Apache::Constants::OPT_EXECCGI() for Apache::{Registry,PerlRun}
* Apache::SizeLimit now uses $r->child_terminate instead of Apache::exit(-2)
* get rid of various 5.005_60 warnings
* add Status{Terse,TerseSize,Deparse,Fathom,OptionsAll} options to
Apache::Status
* adjust mod_perl.h for 5.005_59 perl_eval_{pv,sv} rename
* fix flush_namespace undef logic in Apache::PerlRun
* Tweak Apache::content to comply with media-types embedded in content-types
(RFC 2616 section 3.7)
* Removed and added a few modules from the Bundle file.
* Renamed the Apache::StatINC parameters to StatINC_<something>. Changed
StatINC_Debug to take a number as parameter instead of "on" to support
"debug levels"
* fix refcount bug in %VirtualHost [] values
* $r->read will now properly check the return value of
ap_setup_client_block() and return undef if != OK,
e.g. if LimitRequestBody is exceeded
* fix bug in register_cleanup()
* added StatusLexInfo option to Apache::Status
* turn off warnings in Apache::Status::as_HTML symdump code
* tweak Apache::RegistryNG so it works with virtual includes
* change Apache::File->tmpfile flags from O_WRONLY to O_RDWR
* fix Apache::RegistryBB when $r->filename NOT_FOUND
* cygwin port
* Documented $r->pnotes
* Change "setting auth_name" trace message so we don't get it without
having enabled a MOD_PERL_TRACE level
* s/class/pclass/g so we can compile w/ c++
* mod_perl will now save/restore SIGALRM
* fix Apache::Status bug prototype check of 'use constant' subs
* added set_byterange() and each_byterange() methods
* added proper support for {Location,Directory,Files}Match in <Perl> sections
* rework PerlFreshRestart to avoid core dump triggered w/ 5.005_03
* fix $Apache::Server::Starting under dso
* use ap_bfileno() instead of r->connnection->client->fd directly
* fix possible overwrite in perlio.c:sfapacheread() #ifdef USE_SFIO
* dont use DEFAULT_PATH if r->subprocess_env->{PATH} is already set
* ensure perl_setup_env() is called just once per-request
* :common Apache::Constants are compiled at bootstrap time, so CVs are
shared and AUTOLOAD is avoided, which was known to cause a spin
while loading SERVER_ERROR for particular Perl errors
* <Perl> sections now use 1.3.7-dev's cmd_parms->context to cure many
known, old bugs, e.g. @DirectoryIndex outside of %Location, .htaccess
and many more
* fix bug where top-level PerlSetEnv's would be lost after 1st request
* fix bug in Apache::ModuleConfig->get
* fix rwrite error message
* Change Apache::SizeLimit so that it supports Solaris 2.6 and above
* Fixed apaci/load_modules.pl.PL to properly fixup log_agent and
log_referer when loaded as DSOs.
2000-08-28 00:40:36 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Apache/} \
|
|
|
|
http://perl.apache.org/dist/
|
1998-12-04 01:10:57 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1998-12-04 01:10:57 +01:00
|
|
|
HOMEPAGE= http://perl.apache.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Module that embeds a Perl interpreter into Apache
|
Update ap-perl to 1.31.
While here, fixes build with perl-5.14.
= 1.31 May 11, 2009
Fix static APACI build on Mac OS X. [Gozer]
Fix XSS vulnerability in Apache::Status reported by
Richard J. Brain, CVE-2009-0796
[Fred Moyer]
On Win32, mod_perl.h needs to include <malloc.h> before the perl
headers, at least when built with USE_ITHREADS
[Steve Hay]
Win32 needs PERL_SYS_INIT/PERL_SYS_TERM calls when built with
USE_ITHREADS [sic--that's different to USE_THREADS]. In fact,
they ought to be always called if they are defined
[Steve Hay]
Fix potential segfault when the environment contains
NULL values [Mike Schilli]
Fix static APACI build against newer apache-1.3.38+
[Gozer]
Fixed modules/regex.t test 4 on Win32
[Steve Hay]
Avoid possible segfault when PerlFreshRestart is On.
[Michael Rendell <michael@cs.mun.ca>]
Prevent segfault when running with perl >= 5.9.3
[Steve Hay]
Fix shared libary extensions on Win32 to be .dll not .so
[Nikolay Ananiev <ananiev@thegdb.com>]
Patch to mod_perl.dsp to remove /D _WINSOCK2API_ on Win32
for perl >= 5.8.6 [Steve Hay]
= 1.30 March 29, 2007
SECURITY: CVE-2007-1349 (cve.mitre.org)
fix unescaped variable interpolation in Apache::PerlRun
regular expression to prevent regex engine tampering.
reported by Alex Solovey
[Randal L. Schwartz <merlyn@stonehenge.com>, Fred Moyer <fred@redhotpenguin.com>]
sync Apache-SizeLimit with latest version from CPAN (0.91)
[Philip M. Gollucci, Philippe M. Chiasson]
Fix an Apache::(Registry|PerlRun) bug caused by special characters
in the url [kolya@mail.ru]
Display a more verbose message if Apache.pm can't be loaded
[Geoffrey Young]
Fix incorrect win32 detection in Apache::SizeLimit reported by
Matt Phillips <mphillips@virage.com> [Philippe M. Chiasson]
The print-a-scalar-reference feature is now deprecated and documented
as such [Stas]
fix "PerlSetVar Foo 0" so that $r->dir_config('Foo') returns 0, not undef
[Geoffrey Young]
for some reason .pm files during the modperl build see $ENV{PERL5LIB}
set in Makefile.PL, which is used for generating Makefiles, as
"PERL5LIB=/path:/another/path" instead of "/path:/another/path"
essentially rendering this env var useless. I'm not sure why, may be
MakeMaker kicks in somewhere. Trying to workaround by
s/PERL5LIB/PERL5LIB_ENV/, using anything that's not PERL5LIB. [Stas]
change $INC{$key} = undef; to delete $INC{$key}; in PerlFreshRestart
[Geoffrey Young]
Fix a bug in Makefile.PL for Win32 where it would, in
certain cases, pick up the wrong Perl include directory
[Steve Hay]
2011-09-21 16:59:32 +02:00
|
|
|
LICENSE= apache-1.1
|
1998-12-04 01:10:57 +01:00
|
|
|
|
2010-02-16 16:04:56 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
CONFLICTS= ap-perl-[0-9]*
|
|
|
|
CONFLICTS+= ap2-perl-[0-9]*
|
2003-07-05 07:10:31 +02:00
|
|
|
|
2006-04-06 08:21:32 +02:00
|
|
|
DEPENDS+= ${BUILDLINK_API_DEPENDS.apache}:../../www/apache
|
2001-04-16 23:49:59 +02:00
|
|
|
DEPENDS+= p5-BSD-Resource>=1.10:../../devel/p5-BSD-Resource
|
1999-12-02 22:03:35 +01:00
|
|
|
|
2002-08-25 23:50:52 +02:00
|
|
|
APACHE_MODULE= YES
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/mod_perl/.packlist
|
1998-12-04 01:10:57 +01:00
|
|
|
|
2000-08-27 12:37:00 +02:00
|
|
|
MAKE_PARAMS+= USE_APXS=1
|
2001-11-26 07:49:36 +01:00
|
|
|
MAKE_PARAMS+= WITH_APXS=${APXS}
|
2000-08-27 12:37:00 +02:00
|
|
|
MAKE_PARAMS+= EVERYTHING=1
|
1999-05-01 02:42:29 +02:00
|
|
|
|
2010-02-16 16:04:56 +01:00
|
|
|
INSTALLATION_DIRS+= lib/httpd share/httpd/htdocs/manual/mod
|
2009-06-15 19:42:04 +02:00
|
|
|
|
2005-06-24 07:56:25 +02:00
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.include "../../www/apache/buildlink3.mk"
|
|
|
|
|
1998-12-04 01:10:57 +01:00
|
|
|
post-install:
|
2010-02-16 16:04:56 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/apaci/libperl.so \
|
|
|
|
${DESTDIR}${PREFIX}/lib/httpd/mod_perl.so
|
1998-12-04 01:10:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/htdocs/manual/mod/mod_perl.html \
|
2010-02-16 16:04:56 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/httpd/htdocs/manual/mod
|
1998-12-04 01:10:57 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|