mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sci-ml/ollama:change src_install for non-systemd
Signed-off-by: Dawn Xu <dawn_xu_helloworld@163.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user