From 46e0c638d3e34d87d0d4747bbdadff8afc6ab82e Mon Sep 17 00:00:00 2001 From: adrianp Date: Tue, 22 Jun 2004 21:34:50 +0000 Subject: 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. --- www/SpeedyCGI/DESCR | 16 ++++++++++++++++ www/SpeedyCGI/Makefile | 18 ++++++++++++++++++ www/SpeedyCGI/PLIST | 1 + www/SpeedyCGI/distinfo | 5 +++++ www/SpeedyCGI/patches/patch-aa | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 www/SpeedyCGI/DESCR create mode 100644 www/SpeedyCGI/Makefile create mode 100644 www/SpeedyCGI/PLIST create mode 100644 www/SpeedyCGI/distinfo create mode 100644 www/SpeedyCGI/patches/patch-aa (limited to 'www') 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 < =~ /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', -- cgit v1.2.3