OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   12-Jan-2005 20:16:09
  Branch: HEAD                             Handle: 2005011219160700

  Modified files:
    openpkg-src/kwiki       kwiki-apache.conf kwiki.spec

  Log:
    more elaborate Apache configuration which especially supports mod_perl

  Summary:
    Revision    Changes     Path
    1.3         +34 -20     openpkg-src/kwiki/kwiki-apache.conf
    1.12        +1  -1      openpkg-src/kwiki/kwiki.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/kwiki/kwiki-apache.conf
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 kwiki-apache.conf
  --- openpkg-src/kwiki/kwiki-apache.conf       7 Nov 2004 21:10:17 -0000       
1.2
  +++ openpkg-src/kwiki/kwiki-apache.conf       12 Jan 2005 19:16:07 -0000      
1.3
  @@ -2,32 +2,46 @@
   ##  kwiki-apache.conf -- Apache Configuration for Kwiki
   ##
   
  +#   convenience URL redirection
  +RedirectMatch ^/kwiki$ /kwiki/
  +
  +#   run-time URL aliasing
   Alias /kwiki/ @l_prefix@/var/kwiki/
   
  +#   run-time directory configuration
   <Directory @l_prefix@/var/kwiki>
  +    #   access control
       Order allow,deny
       Allow from all
  -    AllowOverride None
  +
  +    #   local server configuration
  +    AllowOverride All
       Options ExecCGI
  -    AddHandler cgi-script .cgi
       DirectoryIndex index.cgi
  -    #<Files admin.cgi>
  -    #    Require user admin
  -    #    AuthType Basic
  -    #    AuthName Restricted
  -    #    AuthUserFile @l_prefix@/var/kwiki/passwd
  -    #</Files>
  -    <Files passwd>
  -        Order allow,deny
  -        Deny from all
  -    </Files>
  -</Directory>
   
  -<IfModule mod_perl.c>
  -    <Location /kwiki>
  -        SetHandler  perl-script
  -        PerlHandler +Kwiki::ModPerl
  -        PerlSetVar  KwikiBaseDir @l_prefix@/var/kwiki
  -    </Location>
  -</IfModule>
  +    #   run-time engine selection
  +    <IfModule mod_perl.c>
  +        #   use accelerating mod_perl
  +        <Files *.cgi>
  +            SetHandler perl-script
  +            PerlHandler Apache::Registry
  +        </Files>
  +        <Perl>
  +            #   support optional lib/ subdir similar to index.cgi 
  +            use lib "@l_prefix@/var/kwiki/lib";
  +            #   pre-load all necessary modules
  +            use Kwiki;
  +            use IO::File;
  +            my $io = new IO::File "<@l_prefix@/var/kwiki/plugins" or die;
  +            my $run = ''; $run .= $_ while (<$io>);
  +            $io->close();
  +            $run =~ s|^(Kwiki::.+)$|use $1;|mg;
  +            eval "$run";
  +        </Perl>
  +    </IfModule>
  +    <IfModule !mod_perl.c>
  +        #   use standardzed mod_cgi
  +        AddHandler cgi-script .cgi
  +    </IfModule>
  +</Directory>
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/kwiki/kwiki.spec
  ============================================================================
  $ cvs diff -u -r1.11 -r1.12 kwiki.spec
  --- openpkg-src/kwiki/kwiki.spec      12 Jan 2005 15:16:59 -0000      1.11
  +++ openpkg-src/kwiki/kwiki.spec      12 Jan 2005 19:16:07 -0000      1.12
  @@ -52,7 +52,7 @@
   %define       V_kwiki_shortcutlinks         0.02
   %define       V_kwiki_toolbar_list          0.01
   %define       V_kwiki_username              0.14
  -%define       V_kwiki_userpreferences       0.12
  +%define       V_kwiki_userpreferences       0.13
   %define       V_kwiki_vimmode               0.04
   %define       V_kwiki_authoronlypageediting 0.01
   %define       V_kwiki_breadcrumbs           0.12
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to