[gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/, sci-ml/ollama/files/

2026-03-05 Thread Paul Zander
commit: d9fc86cb9de6dfb7ef33fcf5d3116ea30dce5fea
Author: Paul Zander  gmail  com>
AuthorDate: Sat Feb 21 20:11:15 2026 +
Commit: Paul Zander  gmail  com>
CommitDate: Thu Mar  5 22:23:47 2026 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9fc86cb

sci-ml/ollama:  add patch to make bundling runtime deps optional

Ollama insists on copying libs from the build system into it's own install dir.
We do not want that as it's ensured by the package manager. So make it optional.

Signed-off-by: Paul Zander  gmail.com>

 ...999-make-installing-runtime-deps-optional.patch | 134 +
 sci-ml/ollama/ollama-.ebuild   |   6 +-
 2 files changed, 137 insertions(+), 3 deletions(-)

diff --git 
a/sci-ml/ollama/files/ollama--make-installing-runtime-deps-optional.patch 
b/sci-ml/ollama/files/ollama--make-installing-runtime-deps-optional.patch
new file mode 100644
index 00..b290d11650
--- /dev/null
+++ 
b/sci-ml/ollama/files/ollama--make-installing-runtime-deps-optional.patch
@@ -0,0 +1,134 @@
+From 7367444df7e44434569708b13ddf26b159e3ba50 Mon Sep 17 00:00:00 2001
+From: Paul Zander 
+Date: Tue, 17 Feb 2026 12:52:29 +0100
+Subject: [PATCH] make installing runtime deps optional
+
+Signed-off-by: Paul Zander 
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7d53531b..ce7376d8 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -78,6 +78,8 @@ set(GGML_VERSION_MINOR 0)
+ set(GGML_VERSION_PATCH 0)
+ set(GGML_VERSION 
"${GGML_VERSION_MAJOR}.${GGML_VERSION_MINOR}.${GGML_VERSION_PATCH}")
+ 
++option(OLLAMA_INSTALL_RUNTIME_DEPS "Install the dependencies of library as 
well" ON)
++
+ set(GGML_CPU ON)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src)
+ set_property(TARGET ggml PROPERTY EXCLUDE_FROM_ALL TRUE)
+@@ -88,12 +90,17 @@ if(NOT CPU_VARIANTS)
+ endif()
+ 
+ install(TARGETS ggml-base ${CPU_VARIANTS}
+-RUNTIME_DEPENDENCIES
+-PRE_EXCLUDE_REGEXES ".*"
+-RUNTIME DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CPU
++RUNTIME_DEPENDENCY_SET base
+ LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CPU
+ FRAMEWORK DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CPU
+ )
++if(OLLAMA_INSTALL_RUNTIME_DEPS)
++install(RUNTIME_DEPENDENCY_SET base
++PRE_EXCLUDE_REGEXES ".*"
++RUNTIME DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CPU
++LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CPU
++)
++endif()
+ 
+ check_language(CUDA)
+ if(CMAKE_CUDA_COMPILER)
+@@ -104,13 +111,18 @@ if(CMAKE_CUDA_COMPILER)
+ find_package(CUDAToolkit)
+ 
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src/ggml-cuda)
+ install(TARGETS ggml-cuda
+-RUNTIME_DEPENDENCIES
+-DIRECTORIES ${CUDAToolkit_BIN_DIR} ${CUDAToolkit_BIN_DIR}/x64 
${CUDAToolkit_LIBRARY_DIR}
+-PRE_INCLUDE_REGEXES cublas cublasLt cudart
+-PRE_EXCLUDE_REGEXES ".*"
++RUNTIME_DEPENDENCY_SET cuda
++LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CUDA
++)
++if(OLLAMA_INSTALL_RUNTIME_DEPS)
++install(RUNTIME_DEPENDENCY_SET cuda
++DIRECTORIES ${CUDAToolkit_BIN_DIR} ${CUDAToolkit_BIN_DIR}/x64 
${CUDAToolkit_LIBRARY_DIR}
++PRE_INCLUDE_REGEXES cublas cublasLt cudart
++PRE_EXCLUDE_REGEXES ".*"
+ RUNTIME DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CUDA
+ LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT CUDA
+ )
++endif()
+ endif()
+ 
+ set(WINDOWS_AMDGPU_TARGETS_EXCLUDE_REGEX "^gfx(908|90a|1200|1201):xnack[+-]$"
+@@ -143,9 +155,9 @@ if(CMAKE_HIP_COMPILER)
+ 
+ install(TARGETS ggml-hip
+ RUNTIME_DEPENDENCY_SET rocm
+-RUNTIME DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT HIP
+ LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT HIP
+ )
++if(OLLAMA_INSTALL_RUNTIME_DEPS)
+ install(RUNTIME_DEPENDENCY_SET rocm
+ DIRECTORIES ${HIP_BIN_INSTALL_DIR} ${HIP_LIB_INSTALL_DIR}
+ PRE_INCLUDE_REGEXES hipblas rocblas amdhip64 rocsolver 
amd_comgr hsa-runtime64 rocsparse tinfo rocprofiler-register drm drm_amdgpu 
numa elf
+@@ -161,6 +173,7 @@ if(CMAKE_HIP_COMPILER)
+ break()
+ endif()
+ endforeach()
++endif()
+ endif()
+ endif()
+ 
+@@ -169,12 +182,17 @@ if(NOT APPLE)
+ if(Vulkan_FOUND)
+ 
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src/ggml-vulkan)
+ install(TARGETS ggml-vulkan
+-RUNTIME_DEPENDENCIES
+-PRE_INCLUDE_REGEXES vulkan
+-PRE_EXCLUDE_REGEXES ".*"
++RUNTIME_DEPENDENCY_SET vulkan
++LIBRARY DESTINATION ${OLLAMA_INSTALL_DIR} COMPONENT Vulkan
++)
++if(OLLAMA_INSTALL_RUNTIME_DEPS)
++install(RUNTIME_DEPENDENCY_SET vulkan
++PRE_INCLUDE_REGEXES vulkan
++PRE_EXCLUDE_REGEXES ".*"
+ RUNTIME DESTINATION ${OLLAMA_I

[gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/, sci-ml/ollama/files/

2025-09-15 Thread Paul Zander
commit: a3a6f5a96c0325fb3d22bb3fe7a974aa8bba9aba
Author: Paul Zander  gmail  com>
AuthorDate: Thu Sep 11 13:50:47 2025 +
Commit: Paul Zander  gmail  com>
CommitDate: Thu Sep 11 13:50:53 2025 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a3a6f5a9

sci-ml/ollama: update GNUInstallDirs patch

changed in https://github.com/ollama/ollama/pull/12000
Signed-off-by: Paul Zander  gmail.com>

 .../files/ollama--use-GNUInstallDirs.patch | 26 ++
 sci-ml/ollama/ollama-.ebuild   |  2 +-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/sci-ml/ollama/files/ollama--use-GNUInstallDirs.patch 
b/sci-ml/ollama/files/ollama--use-GNUInstallDirs.patch
new file mode 100644
index 00..6c410be731
--- /dev/null
+++ b/sci-ml/ollama/files/ollama--use-GNUInstallDirs.patch
@@ -0,0 +1,26 @@
+From 3e250053458fa33c97023ff8943e8c5daa4beeca Mon Sep 17 00:00:00 2001
+From: Paul Zander 
+Date: Mon, 31 Mar 2025 18:07:47 +0200
+Subject: [PATCH] use GNUInstallDirs
+
+Signed-off-by: Paul Zander 
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9e107fe..79407ea 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -35,8 +35,9 @@ if (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
+ set(CMAKE_INSTALL_RPATH "@loader_path")
+ endif()
+ 
+-set(OLLAMA_BUILD_DIR ${CMAKE_BINARY_DIR}/lib/ollama)
+-set(OLLAMA_INSTALL_DIR 
${CMAKE_INSTALL_PREFIX}/lib/ollama/${OLLAMA_RUNNER_DIR})
++include(GNUInstallDirs)
++set(OLLAMA_BUILD_DIR ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/ollama)
++set(OLLAMA_INSTALL_DIR 
${CMAKE_INSTALL_FULL_LIBDIR}/ollama/${OLLAMA_RUNNER_DIR})
+ 
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OLLAMA_BUILD_DIR})
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG   ${OLLAMA_BUILD_DIR})
+-- 
+2.49.0
+

diff --git a/sci-ml/ollama/ollama-.ebuild b/sci-ml/ollama/ollama-.ebuild
index 924b9b7b40..c8e23efd95 100644
--- a/sci-ml/ollama/ollama-.ebuild
+++ b/sci-ml/ollama/ollama-.ebuild
@@ -73,7 +73,7 @@ RDEPEND="
 "
 
 PATCHES=(
-   "${FILESDIR}/${PN}-0.6.3-use-GNUInstallDirs.patch"
+   "${FILESDIR}/${PN}--use-GNUInstallDirs.patch"
 )
 
 pkg_pretend() {



[gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/, sci-ml/ollama/files/

2025-03-31 Thread Paul Zander
commit: 362f6858747d1a1ba61b32f101c2b0cdfb5ff1fb
Author: Paul Zander  gmail  com>
AuthorDate: Mon Mar 31 21:27:08 2025 +
Commit: Paul Zander  gmail  com>
CommitDate: Mon Mar 31 21:27:08 2025 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=362f6858

sci-ml/ollama: drop 0.5.7

Closes: https://bugs.gentoo.org/950634
Closes: https://bugs.gentoo.org/950483
Signed-off-by: Paul Zander  gmail.com>

 sci-ml/ollama/Manifest |   2 -
 .../files/ollama-0.5.7-include-cstdint.patch   |  24 ---
 sci-ml/ollama/ollama-0.5.7-r1.ebuild   | 184 -
 3 files changed, 210 deletions(-)

diff --git a/sci-ml/ollama/Manifest b/sci-ml/ollama/Manifest
index c71b7d935..88cd835f1 100644
--- a/sci-ml/ollama/Manifest
+++ b/sci-ml/ollama/Manifest
@@ -1,4 +1,2 @@
-DIST ollama-0.5.7-deps.tar.xz 115361652 BLAKE2B 
8694b35ef2545481c2e1f6a9d7c462177f25e78aab79288197ec4b33190a905c7e92e54734725cde7f122e1161cbdaf9c72ae40cbeb0b8ee0af9075e3dbb6691
 SHA512 
d7abe6266120cb9e731e53f6e14e16d8991e76fbab06348de945f53dc407788324b850308e7200616d92dd17a417ad0a2491eddd543bbe2cfee6a66c8ab81840
-DIST ollama-0.5.7.gh.tar.gz 2345089 BLAKE2B 
7d5063e9f665ab2a957d449b38017e6a9bb435c938749161c711cfc35d8a0361e7f4db214e0782f3b51c70c909fc5be8b76ca342cda6163b5aca5fdd733c55d9
 SHA512 
ea8adcec4f8f932c422a400b8cafb4b983bfa0721cd14383ceb8e0a4f588ecd1289d2e1de46a916c1b34d13e5dab2825ef11a37fc3e797345348dea3bd9144fe
 DIST ollama-0.6.3-vendor.tar.xz 4417068 BLAKE2B 
33aabb08f8582c7f211ebfc51c95af96d7ce1402c6350b656fb0114fe849901ea65f22bf833175a87aa318a685f35c0941b236dfcbf84c81d7766a91d66f6db3
 SHA512 
79044b751daba3d463d7890792d5a6581e96317951de763191b128237e90e81dac578b674654d527e70d48fa059cb62f40831554c432a2a424d659790dbd7a10
 DIST ollama-0.6.3.gh.tar.gz 7950300 BLAKE2B 
4a14bab714b11104753caafe58a1301490d6a24d7af90a374741b6977fafb47792a50fa570e0883b13d5275f621ae1516f2d4055f6c32583e42821725d65e59f
 SHA512 
28a0688f1aa35a161e09af19b643b2a53115fa29ce0b522ed2bd76bcaedc710553a266af2370886bc23408025935f786d13f07297ffb3e783b13132237f10712

diff --git a/sci-ml/ollama/files/ollama-0.5.7-include-cstdint.patch 
b/sci-ml/ollama/files/ollama-0.5.7-include-cstdint.patch
deleted file mode 100644
index 14975ca42..0
--- a/sci-ml/ollama/files/ollama-0.5.7-include-cstdint.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From d711567ba482e80520b5cc36026c80f55f721319 Mon Sep 17 00:00:00 2001
-From: Paul Zander 
-Date: Sat, 25 Jan 2025 19:00:31 +0100
-Subject: [PATCH] include cstdint
-

- llama/llama-mmap.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/llama/llama-mmap.h b/llama/llama-mmap.h
-index ebd7dc16..4c8e3929 100644
 a/llama/llama-mmap.h
-+++ b/llama/llama-mmap.h
-@@ -26,6 +26,7 @@
- 
- #pragma once
- 
-+#include 
- #include 
- #include 
- 
--- 
-2.48.0
-

diff --git a/sci-ml/ollama/ollama-0.5.7-r1.ebuild 
b/sci-ml/ollama/ollama-0.5.7-r1.ebuild
deleted file mode 100644
index 2b920e642..0
--- a/sci-ml/ollama/ollama-0.5.7-r1.ebuild
+++ /dev/null
@@ -1,184 +0,0 @@
-# Copyright 2024-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_VERSION=6.1
-inherit cuda rocm
-inherit go-module systemd
-
-DESCRIPTION="Get up and running with Llama 3, Mistral, Gemma, and other 
language models."
-HOMEPAGE="https://ollama.com";
-
-if [[ ${PV} == ** ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/ollama/ollama.git";
-else
-   SRC_URI="
-   https://github.com/ollama/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.gh.tar.gz
-   
https://github.com/Tapchicoma/ebuild-deps/raw/refs/heads/main/go-deps/${PN}-${PV}-deps.tar.xz
-   "
-   KEYWORDS="~amd64"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-X86_CPU_FLAGS=(
-   avx
-   avx2
-   avx512f
-   avx512vbmi
-   avx512_vnni
-   avx512_bf16
-)
-CPU_FLAGS=("${X86_CPU_FLAGS[@]/#/cpu_flags_x86_}")
-IUSE="${CPU_FLAGS[*]} cuda rocm"
-
-REQUIRED_USE="
-   cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
-   cpu_flags_x86_avx512f? ( cpu_flags_x86_avx2 )
-   cpu_flags_x86_avx512vbmi? ( cpu_flags_x86_avx512f )
-   cpu_flags_x86_avx512_vnni? ( cpu_flags_x86_avx512f )
-   cpu_flags_x86_avx512_bf16? ( cpu_flags_x86_avx512f )
-"
-
-DEPEND="
-   >=dev-lang/go-1.23.4
-   cuda? (
-   dev-util/nvidia-cuda-toolkit:=
-   )
-   rocm? (
-   >=sci-libs/hipBLAS-${ROCM_VERSION}:=[${ROCM_USEDEP}]
-   )
-"
-
-RDEPEND="
-   acct-group/${PN}
-   acct-user/${PN}[cuda?]
-"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.5.7-include-cstdint.patch"
-)
-
-pkg_pretend() {
-   if use rocm; then
-   ewarn "WARNING: AMD support in this ebuild are experimental"
-   einfo "If you run into issues, especially compiling 
dev-libs/rocm-opencl-runtime"
-   einfo "you may try the docker image here 
https://github.com/ROCm/ROCm-docker";
-   einfo "a

[gentoo-commits] repo/proj/guru:dev commit in: sci-ml/ollama/, sci-ml/ollama/files/

2025-03-31 Thread Paul Zander
commit: 6ffd638c2e5fa38aea21ec6d9b13587807588c24
Author: Paul Zander  gmail  com>
AuthorDate: Mon Mar 31 21:32:01 2025 +
Commit: Paul Zander  gmail  com>
CommitDate: Mon Mar 31 21:32:01 2025 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ffd638c

sci-ml/ollama: add 0.6.3, update 

Reworked the openrc init files.
Installs to /usr/$(get_libdir) now.
Avoids pointless copying for CUDA/ROCM files just to delete them afterwards.

Closes: https://bugs.gentoo.org/950633
Closes: https://bugs.gentoo.org/946268
Signed-off-by: Paul Zander  gmail.com>

 sci-ml/ollama/Manifest |  2 +
 .../files/ollama-0.6.3-use-GNUInstallDirs.patch| 26 +++
 sci-ml/ollama/files/ollama.confd   | 11 +
 sci-ml/ollama/files/ollama.init| 27 +---
 .../{ollama-.ebuild => ollama-0.6.3.ebuild}| 51 ++
 sci-ml/ollama/ollama-.ebuild   | 48 +---
 6 files changed, 107 insertions(+), 58 deletions(-)

diff --git a/sci-ml/ollama/Manifest b/sci-ml/ollama/Manifest
index 0d00a5bb0..c71b7d935 100644
--- a/sci-ml/ollama/Manifest
+++ b/sci-ml/ollama/Manifest
@@ -1,2 +1,4 @@
 DIST ollama-0.5.7-deps.tar.xz 115361652 BLAKE2B 
8694b35ef2545481c2e1f6a9d7c462177f25e78aab79288197ec4b33190a905c7e92e54734725cde7f122e1161cbdaf9c72ae40cbeb0b8ee0af9075e3dbb6691
 SHA512 
d7abe6266120cb9e731e53f6e14e16d8991e76fbab06348de945f53dc407788324b850308e7200616d92dd17a417ad0a2491eddd543bbe2cfee6a66c8ab81840
 DIST ollama-0.5.7.gh.tar.gz 2345089 BLAKE2B 
7d5063e9f665ab2a957d449b38017e6a9bb435c938749161c711cfc35d8a0361e7f4db214e0782f3b51c70c909fc5be8b76ca342cda6163b5aca5fdd733c55d9
 SHA512 
ea8adcec4f8f932c422a400b8cafb4b983bfa0721cd14383ceb8e0a4f588ecd1289d2e1de46a916c1b34d13e5dab2825ef11a37fc3e797345348dea3bd9144fe
+DIST ollama-0.6.3-vendor.tar.xz 4417068 BLAKE2B 
33aabb08f8582c7f211ebfc51c95af96d7ce1402c6350b656fb0114fe849901ea65f22bf833175a87aa318a685f35c0941b236dfcbf84c81d7766a91d66f6db3
 SHA512 
79044b751daba3d463d7890792d5a6581e96317951de763191b128237e90e81dac578b674654d527e70d48fa059cb62f40831554c432a2a424d659790dbd7a10
+DIST ollama-0.6.3.gh.tar.gz 7950300 BLAKE2B 
4a14bab714b11104753caafe58a1301490d6a24d7af90a374741b6977fafb47792a50fa570e0883b13d5275f621ae1516f2d4055f6c32583e42821725d65e59f
 SHA512 
28a0688f1aa35a161e09af19b643b2a53115fa29ce0b522ed2bd76bcaedc710553a266af2370886bc23408025935f786d13f07297ffb3e783b13132237f10712

diff --git a/sci-ml/ollama/files/ollama-0.6.3-use-GNUInstallDirs.patch 
b/sci-ml/ollama/files/ollama-0.6.3-use-GNUInstallDirs.patch
new file mode 100644
index 0..5a69109aa
--- /dev/null
+++ b/sci-ml/ollama/files/ollama-0.6.3-use-GNUInstallDirs.patch
@@ -0,0 +1,26 @@
+From 3e250053458fa33c97023ff8943e8c5daa4beeca Mon Sep 17 00:00:00 2001
+From: Paul Zander 
+Date: Mon, 31 Mar 2025 18:07:47 +0200
+Subject: [PATCH] use GNUInstallDirs
+
+Signed-off-by: Paul Zander 
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9e107fe..79407ea 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -35,8 +35,9 @@ if (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
+ set(CMAKE_INSTALL_RPATH "@loader_path")
+ endif()
+ 
+-set(OLLAMA_BUILD_DIR ${CMAKE_BINARY_DIR}/lib/ollama)
+-set(OLLAMA_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib/ollama)
++include(GNUInstallDirs)
++set(OLLAMA_BUILD_DIR ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/ollama)
++set(OLLAMA_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/ollama)
+ 
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OLLAMA_BUILD_DIR})
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG   ${OLLAMA_BUILD_DIR})
+-- 
+2.49.0
+

diff --git a/sci-ml/ollama/files/ollama.confd b/sci-ml/ollama/files/ollama.confd
new file mode 100644
index 0..fccb3dbc4
--- /dev/null
+++ b/sci-ml/ollama/files/ollama.confd
@@ -0,0 +1,11 @@
+# Ollama allows cross-origin requests from 127.0.0.1 and 0.0.0.0 by default.
+# Additional origins can be configured with OLLAMA_ORIGINS.
+# export OLLAMA_ORIGINS=""
+
+# log to syslog
+# output_logger="logger -t \"$RC_SVCNAME\" -p daemon.info"
+# error_logger="logger -t \"$RC_SVCNAME\" -p daemon.err"
+
+# log to file
+output_log="/var/log/ollama/ollama.log"
+error_log="/var/log/ollama/ollama.log"

diff --git a/sci-ml/ollama/files/ollama.init b/sci-ml/ollama/files/ollama.init
index 17e632899..50e2a8d6a 100644
--- a/sci-ml/ollama/files/ollama.init
+++ b/sci-ml/ollama/files/ollama.init
@@ -2,31 +2,8 @@
 # Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License, v2
 
+supervisor=supervise-daemon
 description="Ollama Service"
 command="/usr/bin/ollama"
 command_args="serve"
-command_user="ollama"
-command_group="ollama"
-command_background="yes"
-pidfile="/run/ollama.pid"
-log="/var/log/ollama/ollama.log"
-
-# Ollama allows cross-origin requests from 127.0.0.1 and 0.0.0.0 by default.
-# Additional origins can be configured with OLLAMA_ORIGINS.
-# export OLLAMA_ORIGINS=""
-
-start() {
-   eb