From 5ca648c9cf80175098f2af07c698f732b73dda90 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 2 Nov 2026 22:38:51 -1000 Subject: Show the cgit.conf the server configs expect --- README.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 0279bf4..036421b 100644 --- a/README.txt +++ b/README.txt @@ -33,8 +33,15 @@ With the Git tree in place, build and install cgit. This installs cgit.cgi, cgit.css, cgit.js, cgit.png, favicon.ico and robots.txt into /var/www/htdocs/cgit, and the Lua filters from custom/extensions into -/usr/local/lib/cgit/filters. The locations and a few other things can be changed -by providing a cgit.conf file, see the Makefile for details. +/usr/local/lib/cgit/filters. The server configs in custom/servers/ look for the +binary in /usr/lib/cgit and the other five files in /usr/share/cgit instead. To +install there, put these two lines in a file named cgit.conf next to the +Makefile before running make install. + + CGIT_SCRIPT_PATH = /usr/lib/cgit + CGIT_DATA_PATH = /usr/share/cgit + +The Makefile lists the other variables cgit.conf can set, prefix among them. On a musl system such as Alpine, Git's code also needs the Linux kernel headers, packaged there as linux-headers, and its bundled regex in place of musl's, which -- cgit 2.12.1