From 20faf047e483e105b0e25cae46381a0e365326fc Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 12 Jul 2026 21:31:55 +0100 Subject: [PATCH] Revert "acct-{user,group}/ollama: treeclean, now in ::gentoo" This reverts commit 261e9ea22761fe8d0200652ef3657ee8773aebab. Based on 2e79ca38f1766db758680a21c419cf1809f62bab, let's keep this for now given the differences should be reconciled. Signed-off-by: Sam James --- acct-group/ollama/metadata.xml | 8 ++++++++ acct-group/ollama/ollama-0.ebuild | 9 +++++++++ acct-user/ollama/metadata.xml | 8 ++++++++ acct-user/ollama/ollama-3.ebuild | 31 +++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 acct-group/ollama/metadata.xml create mode 100644 acct-group/ollama/ollama-0.ebuild create mode 100644 acct-user/ollama/metadata.xml create mode 100644 acct-user/ollama/ollama-3.ebuild diff --git a/acct-group/ollama/metadata.xml b/acct-group/ollama/metadata.xml new file mode 100644 index 0000000000..b50d1379f8 --- /dev/null +++ b/acct-group/ollama/metadata.xml @@ -0,0 +1,8 @@ + + + + + negril.nx+gentoo@gmail.com + Paul Zander + + diff --git a/acct-group/ollama/ollama-0.ebuild b/acct-group/ollama/ollama-0.ebuild new file mode 100644 index 0000000000..c8f25baf48 --- /dev/null +++ b/acct-group/ollama/ollama-0.ebuild @@ -0,0 +1,9 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-group + +DESCRIPTION="A group for ollama" +ACCT_GROUP_ID=-1 diff --git a/acct-user/ollama/metadata.xml b/acct-user/ollama/metadata.xml new file mode 100644 index 0000000000..b50d1379f8 --- /dev/null +++ b/acct-user/ollama/metadata.xml @@ -0,0 +1,8 @@ + + + + + negril.nx+gentoo@gmail.com + Paul Zander + + diff --git a/acct-user/ollama/ollama-3.ebuild b/acct-user/ollama/ollama-3.ebuild new file mode 100644 index 0000000000..5734021f31 --- /dev/null +++ b/acct-user/ollama/ollama-3.ebuild @@ -0,0 +1,31 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-user + +DESCRIPTION="A user for ollama" +ACCT_USER_ID=-1 +ACCT_USER_HOME=/var/lib/ollama +ACCT_USER_HOME_PERMS=0750 +ACCT_USER_GROUPS=( ollama ) + +KEYWORDS="~amd64" + +IUSE="cuda" + +acct-user_add_deps + +RDEPEND+=" + cuda? ( + acct-group/video + ) +" + +pkg_setup() { + # sci-ml/ollama[cuda] + if use cuda; then + ACCT_USER_GROUPS+=( video ) + fi +}