sci-ml/ollama:change src_install for non-systemd

Signed-off-by: Dawn Xu <dawn_xu_helloworld@163.com>
This commit is contained in:
Dawn Xu
2025-07-15 15:42:40 +08:00
parent 2e0309faf0
commit 47a79a0475

View File

@@ -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() {