summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--etc/cgit-trove-head.inc (renamed from cgit-head.inc)0
-rw-r--r--etc/cgitrc (renamed from cgitrc)0
-rw-r--r--etc/lorry.conf5
-rw-r--r--etc/morph-cache-server-write.conf3
-rw-r--r--etc/morph-cache-server.conf6
-rw-r--r--units/morph-cache-server-write-interface.service6
-rw-r--r--units/morph-cache-server.service6
8 files changed, 29 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7f0325b..dba6942 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,9 @@ install:
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"
+ for I in etc/*; do \
+ cp $$I "${DESTDIR}/"; \
+ done
mkdir -p "${DESTDIR}/var/www/htdocs"
cp http-assets/* "${DESTDIR}/var/www/htdocs"
ln -s cgit "${DESTDIR}/var/www/htdocs/cgi-bin"
diff --git a/cgit-head.inc b/etc/cgit-trove-head.inc
index 82eac66..82eac66 100644
--- a/cgit-head.inc
+++ b/etc/cgit-trove-head.inc
diff --git a/cgitrc b/etc/cgitrc
index ac75a40..ac75a40 100644
--- a/cgitrc
+++ b/etc/cgitrc
diff --git a/etc/lorry.conf b/etc/lorry.conf
new file mode 100644
index 0000000..fc0605d
--- /dev/null
+++ b/etc/lorry.conf
@@ -0,0 +1,5 @@
+[config]
+mirror-base-url-push = ssh://git@localhost
+mirror-base-url-fetch = ssh://git@localhost
+bundle-dest = /home/lorry/bundles
+working-area = /home/lorry/working-area
diff --git a/etc/morph-cache-server-write.conf b/etc/morph-cache-server-write.conf
new file mode 100644
index 0000000..df39f4c
--- /dev/null
+++ b/etc/morph-cache-server-write.conf
@@ -0,0 +1,3 @@
+[config]
+port = 8081
+enable-writes = True
diff --git a/etc/morph-cache-server.conf b/etc/morph-cache-server.conf
new file mode 100644
index 0000000..499ee63
--- /dev/null
+++ b/etc/morph-cache-server.conf
@@ -0,0 +1,6 @@
+[config]
+port = 8080
+direct-mode = True
+repo-dir = /home/git/repos
+artifact-dir = /home/cache/artifacts
+bundle-dir = /home/lorry/bundles
diff --git a/units/morph-cache-server-write-interface.service b/units/morph-cache-server-write-interface.service
new file mode 100644
index 0000000..3499055
--- /dev/null
+++ b/units/morph-cache-server-write-interface.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Morph cache server (write interface)
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/morph-cache-server --config=/etc/morph-cache-server-write.conf
diff --git a/units/morph-cache-server.service b/units/morph-cache-server.service
new file mode 100644
index 0000000..a205097
--- /dev/null
+++ b/units/morph-cache-server.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Morph cache server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/morph-cache-server