From 18787b4e8f8e0272b8ab8e84d8ca57a5337cf83e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Thu, 13 Sep 2012 11:31:31 +0100 Subject: More trove-setup stuff --- Makefile | 7 ++++++- cgit-head.inc | 2 ++ cgitrc | 25 ++++++++++++++++++++++++ http-assets/index.html | 7 +++++++ http-assets/trove.css | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ http-assets/trove.png | Bin 0 -> 2546 bytes 6 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 cgit-head.inc create mode 100644 cgitrc create mode 100644 http-assets/index.html create mode 100644 http-assets/trove.css create mode 100644 http-assets/trove.png diff --git a/Makefile b/Makefile index 294c4d2..409c4ac 100644 --- a/Makefile +++ b/Makefile @@ -4,5 +4,10 @@ install: mkdir -p "${DESTDIR}/usr/lib/systemd/system/multi-user.target.wants" cp units/* "${DESTDIR}/usr/lib/systemd/system" for I in $$(cd units; ls); do \ - ln -sf ../$$I "${DESTDIR}/usr/lib/systemd/system/multi-user.target.wants/$I"; \ + ln -sf ../$$I "${DESTDIR}/usr/lib/systemd/system/multi-user.target.wants/$$I"; \ done + mkdir -p "${DESTDIR}/etc" + cp cgitrc "${DESTDIR}/etc/cgitrc" + cp cgit-head.inc "${DESTDIR}/etc/cgit-trove-head.inc" + mkdir -p "${DESTDIR}/var/www/htdocs" + cp http-assets/* "${DESTDIR}/var/www/htdocs" diff --git a/cgit-head.inc b/cgit-head.inc new file mode 100644 index 0000000..82eac66 --- /dev/null +++ b/cgit-head.inc @@ -0,0 +1,2 @@ + + diff --git a/cgitrc b/cgitrc new file mode 100644 index 0000000..ac75a40 --- /dev/null +++ b/cgitrc @@ -0,0 +1,25 @@ +clone-prefix=ssh://git@##TROVE_HOSTNAME## +strict-export=git-daemon-export-ok + +css=/cgit/cgit.css +logo=/trove.png + +head-include=/etc/cgit-trove-head.inc + +enable-index-links=1 +root-title=##TROVE_TITLE## Git Repositories +root-desc=Baserock Trove -- For ##TROVE_COMPANY## +snapshots=tar.gz +enable-commit-graph=1 +enable-log-filecount=1 +enable-log-linecount=1 + +mimetype.gif=image/gif +mimetype.html=text/html +mimetype.jpg=image/jpeg +mimetype.jpeg=image/jpeg +mimetype.pdf=application/pdf +mimetype.png=image/png +mimetype.svg=image/svg+xml + +scan-path=/home/git/repos/ diff --git a/http-assets/index.html b/http-assets/index.html new file mode 100644 index 0000000..0a8c3f9 --- /dev/null +++ b/http-assets/index.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/http-assets/trove.css b/http-assets/trove.css new file mode 100644 index 0000000..b097f1b --- /dev/null +++ b/http-assets/trove.css @@ -0,0 +1,52 @@ +table#header { + background-color: #333; +} + +body { + margin: 0px; +} + +div#cgit { + padding: 0px !important; +} + +table#header { + min-height: 150px; +} + +table#header tr td.main { + color: #ccc; +} + +table#header tr td.sub { + color: #ccc !important; +} + +table.tabs a.active { + background-color: #adc81c !important; +} + +table.tabs { + border-bottom: solid 3px #adc81c !important; +} + +div.content { + border-bottom: solid 3px #adc81c !important; +} + +table#header td.sub { + border-top: solid 1px #adc81c !important; +} + +table#header img { + padding: 3px; +} + +div#cgit table#header td.main a { + color: #1e8482 !important; +} + +div#cgit table#header td.main > a:first-child { + color: #adc81c !important; +} + diff --git a/http-assets/trove.png b/http-assets/trove.png new file mode 100644 index 0000000..ed54e4c Binary files /dev/null and b/http-assets/trove.png differ -- cgit v1.2.1