Jose Carlos Garcia Sogo wrote:
Yes, it should work. The problem is compiling it, as you can only have or apache-1 or apache-2 apxs tool, needed for compiling the package. So this cannot be solved with Build-Dependencies.

In Debian the apache-2 apxs tool is "apxs2", so it doesn't conflict with the apache-1 one.


I added libapache2-mod-speedycgi support to the package, see patch below. Seems to work fine, except that apache2 doesn't like my
Speedy* options ("SpeedyGroup not allowed here"), dunno why.


Also, there are no libapache2-mod-speedycgi.{pre,post}{inst,rm} scripts yet.

enjoy,

Eric


diff -urN /tmp/orig/speedy-cgi-perl-2.22/debian/control ./debian/control --- /tmp/orig/speedy-cgi-perl-2.22/debian/control 2005-04-23 13:31:53.000000000 -0400 +++ ./debian/control 2005-04-23 13:17:21.000000000 -0400 @@ -2,7 +2,7 @@ Section: interpreters Priority: optional Maintainer: Jose Carlos Garcia Sogo <[EMAIL PROTECTED]> -Build-Depends: apache-dev (>=1.3.0), libperl-dev, debhelper (>> 3) +Build-Depends: apache-dev (>=1.3.0), libperl-dev, debhelper (>> 3), apache2-threaded-dev (>= 2.0.50-10) | apache2-prefork-dev Standards-Version: 3.6.1

 Package: speedy-cgi-perl
@@ -26,3 +26,14 @@
  often used for CGI scripts but it can be used to speed up most perl
  programs.

+Package: libapache2-mod-speedycgi
+Architecture: any
+Section: web
+Depends: speedy-cgi-perl, apache2-common (>= 2.0.50-10), ${shlibs:Depends}
+Description: apache module to speed up perl scripts by making them persistent
+ SpeedyCGI is a way to run perl scripts persistently, which usually makes
+ them run much more quickly because it avoids the overhead of starting
+ up a new perl interpreter and compiling the perl code.  It is most
+ often used for CGI scripts but it can be used to speed up most perl
+ programs.
+
diff -urN /tmp/orig/speedy-cgi-perl-2.22/debian/libapache2-mod-speedycgi.dirs 
./debian/libapache2-mod-speedycgi.dirs
--- /tmp/orig/speedy-cgi-perl-2.22/debian/libapache2-mod-speedycgi.dirs 
1969-12-31 19:00:00.000000000 -0500
+++ ./debian/libapache2-mod-speedycgi.dirs      2005-04-23 13:23:48.000000000 
-0400
@@ -0,0 +1,2 @@
+usr/lib/apache2/modules
+etc/apache2/mods-available
diff -urN /tmp/orig/speedy-cgi-perl-2.22/debian/rules ./debian/rules
--- /tmp/orig/speedy-cgi-perl-2.22/debian/rules 2005-04-23 13:31:53.000000000 
-0400
+++ ./debian/rules      2005-04-23 13:54:09.000000000 -0400
@@ -30,8 +30,10 @@

 SPEEDY=speedy-cgi-perl
 MOD_SPEEDY=libapache-mod-speedycgi
+MOD_SPEEDY2=libapache2-mod-speedycgi
 TMP_SCP     = $(CURDIR)/debian/$(SPEEDY)
 TMP_MOD_SCP = $(CURDIR)/debian/$(MOD_SPEEDY)
+TMP_MOD_SCP2= $(CURDIR)/debian/$(MOD_SPEEDY2)

 archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
 config  = INSTALLDIRS=vendor
@@ -41,7 +43,10 @@
        dh_testdir

        $(PERL) Makefile.PL
+       cd mod_speedycgi2 && $(PERL) Makefile.PL
+
        make CFLAGS="$(CFLAGS)"
+       make -C mod_speedycgi2 APXS=apxs2 CFLAGS="$(CFLAGS)"

        touch build-stamp

@@ -49,15 +54,16 @@
        dh_testdir
        dh_testroot

-       -rm -f build-stamp install-speedy-stamp install-modspeedy-stamp
+       -rm -f build-stamp install-speedy-stamp install-modspeedy-stamp 
install-modspeedy2-stamp

        -$(MAKE) clean
+       -$(MAKE) -C mod_speedycgi2 clean
        -rm -f speedyhandler
-       -rm -f Makefile.old libspeedy/Makefile.old
+       -rm -f */Makefile.old

        dh_clean

-install: install-speedy-stamp install-modspeedy-stamp
+install: install-speedy-stamp install-modspeedy-stamp install-modspeedy2-stamp
 install-speedy-stamp: build-stamp
        dh_testdir --package=$(SPEEDY)
        dh_testroot --package=$(SPEEDY)
@@ -85,6 +91,17 @@

        touch install-modspeedy-stamp

+install-modspeedy2-stamp: build-stamp + dh_testdir --package=$(MOD_SPEEDY2)
+ dh_testroot --package=$(MOD_SPEEDY2)
+ dh_clean -k -d --package=$(MOD_SPEEDY2)
+ dh_installdirs --package=$(MOD_SPEEDY2)
+
+ $(INSTALL) -m 644 mod_speedycgi2/mod_speedycgi.so $(TMP_MOD_SCP2)/usr/lib/apache2/modules/
+ install -m 644 debian/speedycgi.load $(TMP_MOD_SCP2)/etc/apache2/mods-available/
+
+ touch install-modspeedy2-stamp
+
binary-indep:


 binary-arch: build install
diff -urN /tmp/orig/speedy-cgi-perl-2.22/debian/speedycgi.load 
./debian/speedycgi.load
--- /tmp/orig/speedy-cgi-perl-2.22/debian/speedycgi.load        1969-12-31 
19:00:00.000000000 -0500
+++ ./debian/speedycgi.load     2005-04-23 13:13:28.000000000 -0400
@@ -0,0 +1 @@
+LoadModule speedycgi_module /usr/lib/apache2/modules/mod_speedycgi.so


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to