diff options
author | Olli Hauer <ohauer@FreeBSD.org> | 2012-01-01 19:30:58 +0000 |
---|---|---|
committer | Olli Hauer <ohauer@FreeBSD.org> | 2012-01-01 19:30:58 +0000 |
commit | 2c96f26a12ae4d0474c70d61c6cab483c2865f49 (patch) | |
tree | 3d7591c78a947273efae6c582aacdca524e69528 /www/p5-Apache-AuthenCache | |
parent | d800016e3408fa62b2ffd8ead6e8ab7abb84a0bb (diff) |
Notes
Diffstat (limited to 'www/p5-Apache-AuthenCache')
-rw-r--r-- | www/p5-Apache-AuthenCache/Makefile | 37 | ||||
-rw-r--r-- | www/p5-Apache-AuthenCache/distinfo | 2 | ||||
-rw-r--r-- | www/p5-Apache-AuthenCache/files/patch-AuthenCache.pm | 79 | ||||
-rw-r--r-- | www/p5-Apache-AuthenCache/files/patch-Makefile.PL | 16 | ||||
-rw-r--r-- | www/p5-Apache-AuthenCache/pkg-descr | 6 | ||||
-rw-r--r-- | www/p5-Apache-AuthenCache/pkg-plist | 5 |
6 files changed, 0 insertions, 145 deletions
diff --git a/www/p5-Apache-AuthenCache/Makefile b/www/p5-Apache-AuthenCache/Makefile deleted file mode 100644 index 80927d0967d7..000000000000 --- a/www/p5-Apache-AuthenCache/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# New ports collection makefile for: Apache-AuthenCache -# Date created: Sun Dec 31 19:59:31 2000 -# Whom: will -# -# $FreeBSD$ -# - -PORTNAME= Apache-AuthenCache -PORTVERSION= 1.00 -CATEGORIES= www perl5 -MASTER_SITES= CPAN -MASTER_SITE_SUBDIR= CPAN:CGILMORE -PKGNAMEPREFIX= p5- - -MAINTAINER= perl@FreeBSD.org -COMMENT= Perl module that implements authentication caching - -BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Time/Object.pm:${PORTSDIR}/devel/p5-Time-Object \ - ${SITE_PERL}/IPC/Cache.pm:${PORTSDIR}/devel/p5-IPC-Cache \ - ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl -RUN_DEPENDS= ${BUILD_DEPENDS} - -DEPRECATED= apache13 is deprecated, migrate to 2.2.x+ now -EXPIRATION_DATE= 2012-01-01 - -MAKE_JOBS_SAFE= yes - -USE_APACHE= 13 - -PERL_CONFIGURE= yes - -MAN3= Apache::AuthenCache.3 - -post-patch: - @${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} -f {} \; - -.include <bsd.port.mk> diff --git a/www/p5-Apache-AuthenCache/distinfo b/www/p5-Apache-AuthenCache/distinfo deleted file mode 100644 index f164e7e64b5d..000000000000 --- a/www/p5-Apache-AuthenCache/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (Apache-AuthenCache-1.00.tar.gz) = 7d85aeb47f208a251300834b701dda1fea38f3ceda42c205bde06858ca35594f -SIZE (Apache-AuthenCache-1.00.tar.gz) = 9244 diff --git a/www/p5-Apache-AuthenCache/files/patch-AuthenCache.pm b/www/p5-Apache-AuthenCache/files/patch-AuthenCache.pm deleted file mode 100644 index 00df14fbe007..000000000000 --- a/www/p5-Apache-AuthenCache/files/patch-AuthenCache.pm +++ /dev/null @@ -1,79 +0,0 @@ ---- AuthenCache.pm Tue Jun 24 02:44:48 2003 -+++ AuthenCache.pm Sat Oct 23 15:20:00 2004 -@@ -263,8 +263,26 @@ - - # Required libraries - use strict; -+BEGIN { local $@; eval { require Apache2; } } - use mod_perl (); --use Apache::Constants qw(OK AUTH_REQUIRED DECLINED DONE); -+use constant MP2 => $mod_perl::VERSION < 1.99 ? 0 : 1; -+BEGIN { -+ if (MP2) { -+ require Apache2; -+ require Apache::Access; -+ require Apache::RequestRec; -+ require Apache::RequestUtil; -+ require Apache::RequestIO; -+ require Apache::ServerUtil; -+ require Apache::Const; -+ Apache::Const->import(-compile => qw(OK AUTH_REQUIRED DECLINED DONE)); -+ require APR::Table; -+ } else { -+ require Apache; -+ require Apache::Constants; -+ Apache::Constants->import(qw(OK AUTH_REQUIRED DECLINED DONE)); -+ } -+} - use Apache::Log (); - use Cache::FileCache; - use Time::Object; -@@ -294,14 +312,21 @@ - my $auth_name = $r->auth_name; - - # Clear for paranoid security precautions -- $r->notes('AuthenCache' => 'miss'); -+ my %notes = ('AuthenCache' => 'miss'); -+ if (MP2) { -+ my $table = APR::Table::make($r->pool, 1); -+ $table->set(%notes); -+ $r->notes($table); -+ } else { -+ $r->notes(%notes); -+ } - - # Get response and password - my($res, $passwd_sent) = $r->get_basic_auth_pw; - return $res if $res; # e.g. HTTP_UNAUTHORIZED - - # Get username -- my $user_sent = $r->connection->user; -+ my $user_sent = MP2 ? $r->user : $r->connection->user; - # If the user left the username field blank, we must catch it and DECLINE - # for the downstream handler - unless ($user_sent) { -@@ -373,7 +398,14 @@ - # } else { - $r->log->debug("handler: user in cache and password matches; ", - "returning OK and setting notes"); -- $r->notes('AuthenCache' => 'hit'); -+ %notes = ('AuthenCache' => 'hit'); -+ if (MP2) { -+ my $table = APR::Table::make($r->pool, 1); -+ $table->set(%notes); -+ $r->notes($table); -+ } else { -+ $r->notes(%notes); -+ } - #} - return OK; - } # End if() -@@ -406,7 +438,7 @@ - # The below test is dubious. I'm putting it in as a hack around the - # problems with set_handlers not working quite right until 1.26 is - # released (according to Doug MacEachern). -- my $cache_result = $r->notes('AuthenCache'); -+ my $cache_result = MP2 ? $r->notes->get('AuthenCache') : $r->notes('AuthenCache'); - if ($cache_result eq 'hit') { - $r->log->debug("manage_cache: upstream cache hit for username=", - "$user_sent"); diff --git a/www/p5-Apache-AuthenCache/files/patch-Makefile.PL b/www/p5-Apache-AuthenCache/files/patch-Makefile.PL deleted file mode 100644 index 3196bdbba425..000000000000 --- a/www/p5-Apache-AuthenCache/files/patch-Makefile.PL +++ /dev/null @@ -1,16 +0,0 @@ ---- Makefile.PL Sat Oct 23 15:26:40 2004 -+++ Makefile.PL Sat Oct 23 15:27:02 2004 -@@ -4,10 +4,12 @@ - use Config qw(%Config); - use ExtUtils::MakeMaker; - -+eval { require Apache2 }; -+ - WriteMakefile - ( - 'NAME' => 'Apache::AuthenCache', - 'VERSION_FROM' => 'AuthenCache.pm', -- 'PREREQ_PM' => { 'Apache' => '1.26', 'Cache::Cache' => '1.01' }, -+ 'PREREQ_PM' => { 'mod_perl' => '1.26', 'Cache::Cache' => '1.01', 'Time::Object' => '0' }, - 'dist' => { 'COMPRESS' => 'gzip -9f', 'SUFFIX' => 'gz', }, - ); diff --git a/www/p5-Apache-AuthenCache/pkg-descr b/www/p5-Apache-AuthenCache/pkg-descr deleted file mode 100644 index 17ef3de62cc3..000000000000 --- a/www/p5-Apache-AuthenCache/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -Apache::AuthenCache is a perl module that implements authentication caching -to be used in conjunction with a primary authentication module, e.g. -Apache::AuthenDBI and others. - -Author: Jason Bodnar <jcbodnar@mail.utexas.edu> -WWW: http://search.cpan.org/dist/Apache-AuthenCache/ diff --git a/www/p5-Apache-AuthenCache/pkg-plist b/www/p5-Apache-AuthenCache/pkg-plist deleted file mode 100644 index eb9012894e5f..000000000000 --- a/www/p5-Apache-AuthenCache/pkg-plist +++ /dev/null @@ -1,5 +0,0 @@ -%%SITE_PERL%%/Apache/AuthenCache.pm -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/AuthenCache/.packlist -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/AuthenCache -@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache -@dirrmtry %%SITE_PERL%%/Apache |