summaryrefslogtreecommitdiff
path: root/www/SpeedyCGI
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2004-06-22 21:34:50 +0000
committeradrianp <adrianp@pkgsrc.org>2004-06-22 21:34:50 +0000
commit2a91c07088fd77027a6b39f1bab2e4ece101daeb (patch)
treee63c435f940e246ff70db765067de4cab3605ff7 /www/SpeedyCGI
parentb58ff7573a4c0607b08389e9683697de2f39cebc (diff)
downloadpkgsrc-2a91c07088fd77027a6b39f1bab2e4ece101daeb.tar.gz
Import SpeedyCGI v2.22 from pkgsrc-wip
Ok'ed wiz@/snj@ 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: #!${LOCALBASE}/bin/perl to #!${LOCALBASE}/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.
Diffstat (limited to 'www/SpeedyCGI')
-rw-r--r--www/SpeedyCGI/DESCR16
-rw-r--r--www/SpeedyCGI/Makefile18
-rw-r--r--www/SpeedyCGI/PLIST1
-rw-r--r--www/SpeedyCGI/distinfo5
-rw-r--r--www/SpeedyCGI/patches/patch-aa33
5 files changed, 73 insertions, 0 deletions
diff --git a/www/SpeedyCGI/DESCR b/www/SpeedyCGI/DESCR
new file mode 100644
index 00000000000..5570bd1308c
--- /dev/null
+++ b/www/SpeedyCGI/DESCR
@@ -0,0 +1,16 @@
+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:
+
+ #!${LOCALBASE}/bin/perl
+
+to
+
+ #!${LOCALBASE}/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.
diff --git a/www/SpeedyCGI/Makefile b/www/SpeedyCGI/Makefile
new file mode 100644
index 00000000000..f29cdc4cd73
--- /dev/null
+++ b/www/SpeedyCGI/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 21:34:50 adrianp Exp $
+
+DISTNAME= CGI-SpeedyCGI-2.22
+PKGNAME= SpeedyCGI-2.22
+CATEGORIES= www
+MASTER_SITES= http://daemoninc.com/SpeedyCGI/
+
+MAINTAINER= adrianp@stindustries.net
+HOMEPAGE= http://daemoninc.com/speedycgi/
+COMMENT= Speed up perl scripts by running them persistently
+
+USE_PERL5= YES
+
+USE_BUILDLINK3= YES
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/SpeedyCGI/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/SpeedyCGI/PLIST b/www/SpeedyCGI/PLIST
new file mode 100644
index 00000000000..546b8826d96
--- /dev/null
+++ b/www/SpeedyCGI/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/22 21:34:50 adrianp Exp $
diff --git a/www/SpeedyCGI/distinfo b/www/SpeedyCGI/distinfo
new file mode 100644
index 00000000000..3c05061b03d
--- /dev/null
+++ b/www/SpeedyCGI/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/22 21:34:50 adrianp Exp $
+
+SHA1 (CGI-SpeedyCGI-2.22.tar.gz) = 155437a83eedc2cb1ae2b9f93a731a0cfb7ce7f2
+Size (CGI-SpeedyCGI-2.22.tar.gz) = 151946 bytes
+SHA1 (patch-aa) = 099bf2fa764488a70cf1b70ef9b7cfb44dc70853
diff --git a/www/SpeedyCGI/patches/patch-aa b/www/SpeedyCGI/patches/patch-aa
new file mode 100644
index 00000000000..176b5a60fb3
--- /dev/null
+++ b/www/SpeedyCGI/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/06/22 21:34:51 adrianp 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',