summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorbt <bt@web>2024-01-17 12:18:19 -0500
committerIkiWiki <ikiwiki.info>2024-01-17 12:18:19 -0500
commit7f94385c3468e234b93f1185f321e5479a327397 (patch)
tree85be382e8849be25fcb891085aba116a2ec2cd83 /wiki
parenta0c782efc64fe87bb0d5f4478f07f25e206c663a (diff)
Diffstat (limited to 'wiki')
-rw-r--r--wiki/cgit.mdwn38
1 files changed, 38 insertions, 0 deletions
diff --git a/wiki/cgit.mdwn b/wiki/cgit.mdwn
index 0e62b61..d800234 100644
--- a/wiki/cgit.mdwn
+++ b/wiki/cgit.mdwn
@@ -1 +1,39 @@
This page contains a comprehensive guide to setting up cgit on NearlyFreeSpeech. It is assumed that you already have an account with NFS and also have access to a "site" online.
+
+Most of the following has been lifted from [NearlyFreeSpeech cgit application walkthrough](https://members.nearlyfreespeech.net/wiki/Applications/Cgit) but has been tweaked and updated.
+
+## Building cgit
+
+The following assumes that you wish to have cgit running at the top-level of your chosen domain (ie. git.example.com)
+
+SSH into your account the download and unpack the latest release:
+
+ git clone git://git.zx2c4.com/cgit cgit-src
+ cd cgit-src
+
+Create a cgit.conf file with desired locations:
+
+ CGIT_SCRIPT_PATH = /home/public
+ CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH)
+ CGIT_CONFIG = $(CGIT_SCRIPT_PATH)/cgitrc
+ CACHE_ROOT = $(CGIT_SCRIPT_PATH)/cgitcache
+ prefix = $(CGIT_SCRIPT_PATH)/local
+
+Get the git sources (needed to build libgit):
+
+ git submodule init
+ git submodule update
+
+Build and install it:
+
+ gmake install
+
+## Configuration
+
+Make a text file where you specified for CGIT_CONFIG, and e.g. add the following:
+
+ css=/cgit/cgit.css
+ logo=/cgit/cgit-trans.png
+ root-title=My Git Repositories
+
+**And you should be good to go!**