aboutsummaryrefslogtreecommitdiffstats
path: root/www-misc/skein/files
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-05-27 16:32:03 +0200
committerWynn Wolf Arbor2020-05-27 16:32:35 +0200
commitc051189e4693eafc6346812328a1886d85c23fa2 (patch)
tree4200562cf589dcee59c5fecbf3c6e9190918cb8c /www-misc/skein/files
parent47b32277ea62174adeb56dac958942b61c7139b9 (diff)
downloadpramantha-c051189e4693eafc6346812328a1886d85c23fa2.tar.gz
www-misc/skein: Add 0.0.1
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Diffstat (limited to 'www-misc/skein/files')
-rw-r--r--www-misc/skein/files/cgit-chroot.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/www-misc/skein/files/cgit-chroot.initd b/www-misc/skein/files/cgit-chroot.initd
new file mode 100644
index 0000000..bdbc5fb
--- /dev/null
+++ b/www-misc/skein/files/cgit-chroot.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Sets up the chroot environment for cgit"
+
+export CGIT_CHROOT="${CGIT_CHROOT:-/srv/cgit}"
+export CGIT_GIT_ROOT="${CGIT_GIT_ROOT:-/srv/git}"
+
+start_pre() {
+ checkpath -o root -d "${CGIT_CHROOT}"
+ checkpath -o root -d "${CGIT_GIT_ROOT}"
+}
+
+start() {
+ /usr/libexec/skein/cgit-chroot setup
+}
+
+stop() {
+ /usr/libexec/skein/cgit-chroot teardown
+}