Date: Mon, 2 Apr 2001 16:17:13 +0400 (MSD) From: Alex Kapranoff <kappa@zombie.antar.bryansk.ru> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26290: [New port] p5-Apache-Filter - stack handlers Message-ID: <200104021217.f32CHDn24219@zombie.antar.bryansk.ru>
next in thread | raw e-mail | index | archive | help
>Number: 26290 >Category: ports >Synopsis: [New port] p5-Apache-Filter - stack handlers >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 02 05:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Alex Kapranoff >Release: FreeBSD 4.3-RC i386 >Organization: Inner Mongolia >Environment: System: FreeBSD zombie.antar.bryansk.ru 4.3-RC FreeBSD 4.3-RC #5: Mon Mar 26 12:42:11 MSD 2001 root@zombie.antar.bryansk.ru:/usr/src/sys/compile/ZOMBIE i386 >Description: >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Apache-Filter/ # p5-Apache-Filter/Makefile # p5-Apache-Filter/distinfo # p5-Apache-Filter/pkg-comment # p5-Apache-Filter/pkg-descr # p5-Apache-Filter/pkg-plist # p5-Apache-Filter/files # p5-Apache-Filter/files/patch-Makefile.PL # echo c - p5-Apache-Filter/ mkdir -p p5-Apache-Filter/ > /dev/null 2>&1 echo x - p5-Apache-Filter/Makefile sed 's/^X//' >p5-Apache-Filter/Makefile << 'END-of-p5-Apache-Filter/Makefile' X# New ports collection makefile for: p5-Apache-Filter X# Date created: March 30th 2001 X# Whom: Alex Kapranoff <kapr@crosswinds.net> X# X# $FreeBSD$ X# X XPORTNAME= Apache-Filter XPORTVERSION= 1.016 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Apache XPKGNAMEPREFIX= p5- X XMAINTAINER= kapr@crosswinds.net X XBUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl X XPERL_CONFIGURE= yes XINSTALL_TARGET= pure_install X XMAN3= Apache::Filter.3 Apache::PerlRunFilter.3 \ X Apache::RegistryFilter.3 XMANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} X X.include <bsd.port.mk> END-of-p5-Apache-Filter/Makefile echo x - p5-Apache-Filter/distinfo sed 's/^X//' >p5-Apache-Filter/distinfo << 'END-of-p5-Apache-Filter/distinfo' XMD5 (Apache-Filter-1.016.tar.gz) = bff9089882d3f9834fafa1822a4f37f6 END-of-p5-Apache-Filter/distinfo echo x - p5-Apache-Filter/pkg-comment sed 's/^X//' >p5-Apache-Filter/pkg-comment << 'END-of-p5-Apache-Filter/pkg-comment' XApache::Filter - Alter the output of previous handlers END-of-p5-Apache-Filter/pkg-comment echo x - p5-Apache-Filter/pkg-descr sed 's/^X//' >p5-Apache-Filter/pkg-descr << 'END-of-p5-Apache-Filter/pkg-descr' XThis module lets you stack handlers so that the next one will handle Xor "filter" the output of previous one. X XFrom README: X In basic operation, each of the handlers Filter1, Filter2, and Filter3 X will make a call to $r->filter_input(), which will return a filehandle. X For Filter1, the filehandle points to the requested file. For Filter2, X the filehandle contains whatever Filter1 wrote to STDOUT. For Filter3, X it contains whatever Filter3 wrote to STDOUT. The output of Filter3 goes X directly to the browser. X X When you've got this module, you can use the same handler both as a X stand-alone handler, and as an element in a chain. Just make sure that X whenever you're chaining, all the handlers in the chain are "Filter- X aware," i.e. they each call $r->filter_register() exactly once, before X they start printing to STDOUT. There should be almost no overhead for X doing this when there's only one element in the chain. X X Currently the following public modules are Filter-aware. X X Apache::Registry (using Apache::RegistryFilter, included here) X Apache::SSI X Apache::ASP X HTML::Mason X Apache::SimpleReplace X X-- Alex Kapranoff <kapr@crosswinds.net> END-of-p5-Apache-Filter/pkg-descr echo x - p5-Apache-Filter/pkg-plist sed 's/^X//' >p5-Apache-Filter/pkg-plist << 'END-of-p5-Apache-Filter/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/Apache/PerlRunFilter.pm Xlib/perl5/site_perl/%%PERL_VER%%/Apache/Filter.pm Xlib/perl5/site_perl/%%PERL_VER%%/Apache/RegistryFilter.pm X@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/Apache 2>/dev/null || true Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Filter/.packlist X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Filter X@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache 2>/dev/null || true END-of-p5-Apache-Filter/pkg-plist echo c - p5-Apache-Filter/files mkdir -p p5-Apache-Filter/files > /dev/null 2>&1 echo x - p5-Apache-Filter/files/patch-Makefile.PL sed 's/^X//' >p5-Apache-Filter/files/patch-Makefile.PL << 'END-of-p5-Apache-Filter/files/patch-Makefile.PL' X--- Makefile.PL.orig Mon Apr 2 16:06:30 2001 X+++ Makefile.PL Mon Apr 2 16:06:59 2001 X@@ -1,13 +1,4 @@ X use ExtUtils::MakeMaker; X-use lib 't/lib'; # distributed here until changes are incorporated into the real version X-use Apache::test; X- X-my %params = Apache::test->get_test_params(); X-chomp (my $cwd = `pwd`); X-Apache::test->write_httpd_conf X- (%params, X- include => do {local $/; <DATA>}); X-*MY::test = sub { Apache::test->MM_test(%params) }; X X my $module = 'Apache::Filter'; X my ($name, $dir); END-of-p5-Apache-Filter/files/patch-Makefile.PL exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104021217.f32CHDn24219>