tags 600413 + patch
quit

Hi Gerrit,

Servilio Afre Puentes wrote:

> The newly introduced dependency doesn't work if you are deploying it
> using a server that doesn't provide CGI (like nginx).

How about this patch?

 * debian/control: gitweb: weaken dependencies to take into account
   configurations that use mod_perl or fastcgi instead of CGI
   (closes: #600413); update description to explain dependencies.

-- 8< --
Subject: gitweb: weaken dependency on httpd-cgi

gitweb can be used as a mod_perl or fastcgi script, so it does
not actually require httpd-cgi.  Adjust the dependencies so it
can be used more easily with web servers like nginx that do not
support CGI.

While at it, add some words of explanation to the package
description to help the sysadmin find a combination of packages
that works.

Reported-by: Servilio Afre Puentes <[email protected]>
---
diff --git a/debian/control b/debian/control
index e055e7c..4f7894e 100644
--- a/debian/control
+++ b/debian/control
@@ -199,8 +199,8 @@ Description: fast, scalable, distributed revision control 
system (revision tree
 Package: gitweb
 Architecture: all
 Depends: git (>> ${source:Upstream-Version}), git (<< 
${source:Upstream-Version}-.),
- perl, apache2 | httpd-cgi
-Suggests: git-doc
+ perl, apache2 | httpd
+Suggests: httpd-cgi | libcgi-fast-perl, git-doc
 Description: fast, scalable, distributed revision control system (web 
interface)
  Git is popular version control system designed to handle very large
  projects with speed and efficiency; it is used for many high profile
@@ -212,6 +212,13 @@ Description: fast, scalable, distributed revision control 
system (web interface)
  central server.
  .
  This package provides a web interface for browsing git repositories.
+ .
+ If apache2 is installed, the web interface is automatically made
+ available at http://localhost/gitweb.  Other servers that support CGI
+ or mod_perl are supported through manual configuration.
+ .
+ If libcgi-fast-perl is installed, gitweb can be also be run over
+ FastCGI (and served by nginx, for example).
 
 Package: git-all
 Architecture: all
-- 



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

Reply via email to