pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/SpeedyCGI Import SpeedyCGI v2.22 from pkgsrc-wip



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db14fedfe35f
branches:  trunk
changeset: 476918:db14fedfe35f
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Tue Jun 22 21:34:50 2004 +0000

description:
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:

 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(+), 0 deletions(-)

diffs (93 lines):

diff -r 201366b5e2b7 -r db14fedfe35f www/SpeedyCGI/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/DESCR       Tue Jun 22 21:34:50 2004 +0000
@@ -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 -r 201366b5e2b7 -r db14fedfe35f www/SpeedyCGI/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/Makefile    Tue Jun 22 21:34:50 2004 +0000
@@ -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@localhost
+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 -r 201366b5e2b7 -r db14fedfe35f www/SpeedyCGI/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/PLIST       Tue Jun 22 21:34:50 2004 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/22 21:34:50 adrianp Exp $
diff -r 201366b5e2b7 -r db14fedfe35f www/SpeedyCGI/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/distinfo    Tue Jun 22 21:34:50 2004 +0000
@@ -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 -r 201366b5e2b7 -r db14fedfe35f www/SpeedyCGI/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/patches/patch-aa    Tue Jun 22 21:34:50 2004 +0000
@@ -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',



Home | Main Index | Thread Index | Old Index