diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:56:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:56:30 +0100 |
commit | 948d557b4a61dc14722668b6b11a4cf3cee07b01 (patch) | |
tree | b28b6cb077ae6b2457e30d49028fc978d8e2b59b /acct-user/git | |
parent | e3cf2c86fca1750343c1885311f857f185ee4f2d (diff) |
gentoo resync : 13.09.2019
Diffstat (limited to 'acct-user/git')
-rw-r--r-- | acct-user/git/Manifest | 2 | ||||
-rw-r--r-- | acct-user/git/git-0.ebuild | 29 | ||||
-rw-r--r-- | acct-user/git/metadata.xml | 15 |
3 files changed, 46 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name="gitea">Set home directory for git hosting + via <pkg>www-apps/gitea</pkg>.</flag> + <flag name="gitolite">Set home directory for git hosting + via <pkg>dev-vcs/gitolite</pkg> + or <pkg>dev-vcs/gitolite-gentoo</pkg>.</flag> + </use> +</pkgmetadata> |