p5-cgi-speedycgi for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    p5-cgi-speedycgi  most recent diff


      View the most recent changes for the p5-cgi-speedycgi port at: p5-cgi-speedycgi.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for p5-cgi-speedycgi.
      The raw portfile for p5-cgi-speedycgi is located here:
      http://p5-cgi-speedycgi.darwinports.com/dports/perl/p5-cgi-speedycgi/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/p5-cgi-speedycgi
      Google
      Web Darwinports.com



      # $Id: Portfile 24954 2007-05-09 04:26:38Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup perl5 1.0
      perl5.setup CGI-SpeedyCGI 2.22
      revision 1
      Maintainers: markd macports.org
      Description: Speed up perl CGI scripts by running them persistently
      Long Description: 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 a script from: '#!/_prefix_/bin/perl' to '#!/_prefix_/bin/speedy'

      Platform: darwin
      checksums md5 2f80df78874e3efa80f180923c4967a1

      patchfiles patch-Makefile.PL patch-mod_speedycgi2.c patch-src--SpeedyMake.pl patch-src_speedy_main.c patch-mod_speedycgi-Makefile.tmpl patch-src-speedy_perl.h

      depends_lib port:apache2

      Variant: apple_apache {
      depends_lib-delete port:apache2
      patchfiles-delete patch-mod_speedycgi-Makefile.tmpl
      }

      post-patch {
      if { [variant_isset apple_apache]} {
      # Do nothing

      } else {
      # Patch for MacPorts Apache 2
      reinplace "s|apxs -q|${prefix}/apache2/bin/apxs -q|g" ${worksrcpath}/src/SpeedyMake.pl ${worksrcpath}/Makefile.PL

      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/mod_speedycgi/Makefile.tmpl }
      }

      post-destroot {
      xinstall -m 4755 ${worksrcpath}/speedy/speedy ${destroot}${prefix}/bin/speedy_suidperl
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/speedycgi
      eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/speedycgi
      xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/speedycgi

      if { [variant_isset apple_apache]} {
      # Install module for Apple's Apache 1 outside of ${prefix} and let user copy it.
      xinstall -m 644 ${worksrcpath}/mod_speedycgi/mod_speedycgi.so ${destroot}${prefix}/share/doc/speedycgi

      } else {
      # Install module for MacPorts Apache2
      xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
      xinstall -m 644 ${worksrcpath}/mod_speedycgi2/.libs/mod_speedycgi.so ${destroot}${prefix}/apache2/modules
      }
      }

      post-activate {
      if { [variant_isset apple_apache]} {

      ui_msg "\n
      #### To complete SpeedyCGI installation ####

      Copy mod_speedycgi.so and enable it in httpd.conf

      -Copy ${prefix}/share/doc/speedycgi/mod_speedycgi.so to /usr/libexec/httpd

      -Edit Apple's Apache 1 /etc/httpd/httpd.conf and add these lines.
      LoadModule speedycgi_module libexec/httpd/mod_speedycgi.so
      AddModule mod_speedycgi.c \n"

      } else {

      ui_msg "\n
      #### To complete SpeedyCGI installation ####

      Enable mod_speedycgi.so in httpd.conf

      -Edit MacPorts Apache 2 ${prefix}/apache2/conf/httpd.conf and add this line.
      LoadModule speedycgi_module modules/mod_speedycgi.so \n"
      }

      ui_msg "\n
      See ${prefix}/share/doc/speedycgi/README for further details.
      \n"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/p5-cgi-speedycgi
      % sudo port install p5-cgi-speedycgi
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching p5-cgi-speedycgi
      ---> Verifying checksum for p5-cgi-speedycgi
      ---> Extracting p5-cgi-speedycgi
      ---> Configuring p5-cgi-speedycgi
      ---> Building p5-cgi-speedycgi with target all
      ---> Staging p5-cgi-speedycgi into destroot
      ---> Installing p5-cgi-speedycgi
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using p5-cgi-speedycgi with these commands:
      %  man p5-cgi-speedycgi
      % apropos p5-cgi-speedycgi
      % which p5-cgi-speedycgi
      % locate p5-cgi-speedycgi

     Where to find more information:

    Darwin Ports



    image test