summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2008-03-26 18:11:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-27 20:55:10 (GMT)
commit17a8b25005bb09b03bee7ddac5412c7d29675eef (patch)
treebba6a061f9066f80d04502261bb8ee95e478ddd3 /Makefile
parent1768905b51601d5d080168059acd24d13b888a2d (diff)
downloadgit-17a8b25005bb09b03bee7ddac5412c7d29675eef.zip
git-17a8b25005bb09b03bee7ddac5412c7d29675eef.tar.gz
git-17a8b25005bb09b03bee7ddac5412c7d29675eef.tar.bz2
gitweb: fallback to system-wide config file if default config does not exist
From a distribution point of view, configuration files for applications should reside in /etc/. On the other hand it's convenient for multiple instances of gitweb (e.g. virtual web servers on a single machine) to have a per-instance configuration file, just as gitweb currently supports through the file gitweb_config.perl next to the cgi. To support both at runtime, this commit introduces GITWEB_CONFIG_SYSTEM as a system-wide configuration file which will be used as a fallback if the config file sprecified throug GITWEB_CONFIG does not exist. See also http://bugs.debian.org/450592 Signed-off-by: Gerrit Pape <pape@smarden.org> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7c70b00..a88acf6 100644
--- a/Makefile
+++ b/Makefile
@@ -189,6 +189,7 @@ ETC_GITCONFIG = $(sysconfdir)/gitconfig
# default configuration for gitweb
GITWEB_CONFIG = gitweb_config.perl
+GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf
GITWEB_HOME_LINK_STR = projects
GITWEB_SITENAME =
GITWEB_PROJECTROOT = /pub/git