From c051189e4693eafc6346812328a1886d85c23fa2 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 27 May 2020 16:32:03 +0200 Subject: www-misc/skein: Add 0.0.1 Package-Manager: Portage-2.3.99, Repoman-2.3.22 --- www-misc/skein/Manifest | 3 +++ www-misc/skein/files/cgit-chroot.initd | 21 +++++++++++++++++++++ www-misc/skein/metadata.xml | 7 +++++++ www-misc/skein/skein-0.0.1.ebuild | 27 +++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 www-misc/skein/Manifest create mode 100644 www-misc/skein/files/cgit-chroot.initd create mode 100644 www-misc/skein/metadata.xml create mode 100644 www-misc/skein/skein-0.0.1.ebuild (limited to 'www-misc/skein') diff --git a/www-misc/skein/Manifest b/www-misc/skein/Manifest new file mode 100644 index 0000000..0f58cdb --- /dev/null +++ b/www-misc/skein/Manifest @@ -0,0 +1,3 @@ +AUX cgit-chroot.initd 477 BLAKE2B 721806eb51c5495863ee27d23e2c8c007de1f173c97cdccddd37c25822c05750af56b7323e231fec1bf67a1ead63da2b56358ffa7acd7b62f1548ed626bd9cee SHA512 a293d716645ff892aff05881167eb24c2edfbe087bb5d052c166b1f4120d8f473249e496dc65b3f41ff8e1627cfa865bf4aea212a1e8d701a00381805ce75e67 +EBUILD skein-0.0.1.ebuild 529 BLAKE2B 23411da939645e1e6aa6e8aa3d2cdb107df77f5ff33540e1571c4ea1075876b427e41ef724fbf48587d5e8a61993d169e99aa03866c79277acc7612527e1d5ba SHA512 5a5b0ce4ce0c8ea32351216a1a250ae6de3c916dd65e4aabf39c1274b4a44490e922e70f0b273479107c5c94232418b6077e541908bcb9563dd3bcd82ebeb657 +MISC metadata.xml 223 BLAKE2B 2c1cd83f1f1d25a43ea978cd66b5c9f6020889613dfaed65d6745858a45d4bf50fda775305420e41c36cafd63d63746ed894411acbced66ab8ae04906dfb8592 SHA512 4f71eacfeb2b21a4ea746ce1663777937b920e942c94eef1fe93c3557e207c9fdb2569369d56637cba563dc50179d62195db6225123ecfedc303600b8a0bb49b 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 +} diff --git a/www-misc/skein/metadata.xml b/www-misc/skein/metadata.xml new file mode 100644 index 0000000..c84abce --- /dev/null +++ b/www-misc/skein/metadata.xml @@ -0,0 +1,7 @@ + + + + + wolf@oriole.systems + + diff --git a/www-misc/skein/skein-0.0.1.ebuild b/www-misc/skein/skein-0.0.1.ebuild new file mode 100644 index 0000000..e696307 --- /dev/null +++ b/www-misc/skein/skein-0.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 + +DESCRIPTION="secure cgit hosting with slowcgi(8)" +HOMEPAGE="https://git.oriole.systems/skein.git" +EGIT_REPO_URI="https://git.oriole.systems/skein.git" +EGIT_COMMIT="${PV}" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + www-misc/slowcgi + >=www-apps/cgit-1.2.3-r3[static] +" + +src_install() { + emake PREFIX=/usr DESTDIR="${D}" install + + newinitd "${FILESDIR}"/cgit-chroot.initd cgit-chroot +} -- cgit v1.2.3-2-gb3c3