From 948d557b4a61dc14722668b6b11a4cf3cee07b01 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 13 Sep 2019 17:56:30 +0100 Subject: gentoo resync : 13.09.2019 --- acct-user/git/Manifest | 2 ++ acct-user/git/git-0.ebuild | 29 +++++++++++++++++++++++++++++ acct-user/git/metadata.xml | 15 +++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 acct-user/git/Manifest create mode 100644 acct-user/git/git-0.ebuild create mode 100644 acct-user/git/metadata.xml (limited to 'acct-user/git') diff --git a/acct-user/git/Manifest b/acct-user/git/Manifest new file mode 100644 index 000000000000..96c13a7471a4 --- /dev/null +++ b/acct-user/git/Manifest @@ -0,0 +1,2 @@ +EBUILD git-0.ebuild 548 BLAKE2B d2dcc4b9f6a725301a53a8990c39b0108381dc599afc8154824ab8b266fe10822f0b418dc1ba5d4bd2f30c1da62bc4fde5d809785350fef9d86ca7e79d755de1 SHA512 977de3f8513fc82e29124e02f8ad68a480920649a00fdbefbec5444aa9e2d1fd73736fe68aa788712380cb1e2752128d83914ddcc874bb4532abf60edc784030 +MISC metadata.xml 502 BLAKE2B 9a5b2a85c54c283bed9e5ec27e03465639dfd2d8ef4daebdbfed9cf52eb90dc21764a35a910a4ac5aa7538b14cb8f733ce9758026ed1b2c6d9e92dd8a70e3117 SHA512 c9d052a560e89eeca6cd15d8d90824138897098277431a04cbab9074a670e037ee58afeb6466f057194cfb4dc8869c1af68e6bef4ba6d2416067d134c337a7c8 diff --git a/acct-user/git/git-0.ebuild b/acct-user/git/git-0.ebuild new file mode 100644 index 000000000000..384b3bd703e6 --- /dev/null +++ b/acct-user/git/git-0.ebuild @@ -0,0 +1,29 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +DESCRIPTION="Git repository hosting user" + +IUSE="gitea gitolite" +REQUIRED_USE="^^ ( gitea gitolite )" + +ACCT_USER_ID=196 +ACCT_USER_HOME_OWNER=git:git +ACCT_USER_HOME_PERMS=750 +ACCT_USER_SHELL=/bin/sh +ACCT_USER_GROUPS=( git ) + +acct-user_add_deps + +pkg_setup() { + if use gitea; then + ACCT_USER_HOME=/var/lib/gitea + elif use gitolite; then + ACCT_USER_HOME=/var/lib/gitolite + else + die "Incorrect USE flag combination" + fi +} diff --git a/acct-user/git/metadata.xml b/acct-user/git/metadata.xml new file mode 100644 index 000000000000..159d766b8251 --- /dev/null +++ b/acct-user/git/metadata.xml @@ -0,0 +1,15 @@ + + + + + mgorny@gentoo.org + Michał Górny + + + Set home directory for git hosting + via www-apps/gitea. + Set home directory for git hosting + via dev-vcs/gitolite + or dev-vcs/gitolite-gentoo. + + -- cgit v1.2.3