commit: 47a79a04751aa2871e19287c60827f24adbe01f4
Author: Dawn Xu <dawn_xu_helloworld <AT> 163 <DOT> com>
AuthorDate: Tue Jul 15 07:42:40 2025 +0000
Commit: Dawn Xu <18202203719 <AT> 163 <DOT> com>
CommitDate: Tue Jul 15 07:46:12 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=47a79a04
sci-ml/ollama:change src_install for non-systemd
Signed-off-by: Dawn Xu <dawn_xu_helloworld <AT> 163.com>
sci-ml/ollama/ollama-0.9.3.ebuild | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/sci-ml/ollama/ollama-0.9.3.ebuild
b/sci-ml/ollama/ollama-0.9.3.ebuild
index 0a02a80575..88571793fe 100644
--- a/sci-ml/ollama/ollama-0.9.3.ebuild
+++ b/sci-ml/ollama/ollama-0.9.3.ebuild
@@ -293,11 +293,13 @@ src_install() {
dobin ollama
cmake_src_install
+ if use systemd; then
+ systemd_dounit "${FILESDIR}/ollama.service"
+ else
+ newinitd "${FILESDIR}/ollama.init" "${PN}"
+ newconfd "${FILESDIR}/ollama.confd" "${PN}"
+ fi
- newinitd "${FILESDIR}/ollama.init" "${PN}"
- newconfd "${FILESDIR}/ollama.confd" "${PN}"
-
- systemd_dounit "${FILESDIR}/ollama.service"
}
pkg_preinst() {