pkgsrc-wip/SpeedyCGI/patches/patch-aa
Adrian Portelli 30525005e4 SpeedyCGI is a way to run perl scripts persistently, which can make them run
much more quickly. A script can be made to to run persistently by changing 
the interpreter line at the top of the script from: 

    #!/usr/bin/perl

to 

    #!/usr/bin/speedy

After the script is initially run, instead of exiting, the perl interpreter 
is kept running. During subsequent runs, this interpreter is used to handle 
new executions instead of starting a new perl interpreter each time. A very 
fast frontend program, written in C, is executed for each request. This fast 
frontend then contacts the persistent Perl process, which is usually already 
running, to do the work and return the results.
2004-04-15 22:05:16 +00:00

33 lines
1,015 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2004/04/15 22:05:16 adrian_p Exp $
--- Makefile.PL.orig Sun Oct 5 07:40:46 2003
+++ Makefile.PL Thu Apr 15 18:35:06 2004
@@ -6,28 +6,9 @@
import SpeedyMake qw(%write_makefile_common);
}
-print <<END;
-
-Optional mod_speedycgi support.
-
-Mod_speedycgi increases performance under Apache by avoiding the fork/exec
-overhead associated with each request under normal SpeedyCGI. However, it
-requires a working copy of "apxs" in your path, Apache with mod_so
-support, and additional Apache configuration.
-
-END
-print "Compile mod_speedycgi (default no)? ";
-
my @dirs = qw(src speedy_backend speedy);
my $macro = $write_makefile_common{macro};
my $apache_module = 0;
-if (<STDIN> =~ /y/i) {
- die "ERROR: Command 'apxs -q CC' failed.\n"
- unless $macro->{APACHE_APXS_WORKS};
- print "Compiling for Apache version $macro->{APACHE_VERSION}\n";
- push(@dirs, $macro->{MOD_SPEEDYCGI_DIR});
- $apache_module = 1;
-}
WriteMakefile(
NAME => 'CGI::SpeedyCGI',