Replace app-misc/ollama-bin-0.5.12 to app-misc/ollama-0.5.13

This commit is contained in:
saundersp
2025-03-07 15:22:53 +01:00
parent e5d36cac70
commit 3461b82dea
6 changed files with 31 additions and 42 deletions

1
app-misc/ollama/Manifest Normal file
View File

@ -0,0 +1 @@
DIST ollama-0.5.13.tar.gz 5846692 BLAKE2B f31b56cf5845bc38d042fbb36d9bc1f39d4a5d677602d3aa3314a8118531218ae039a4a9e4fd3875ef6f930c59d0132db4b75af8386a4e70ebfddee14367b285 SHA512 eee60baeaa2b66e201876bc4a719bcf533527a29e6d6b79ac58f109c98ac8cc76deee0542122d8f463286ab51d2c4ccc4374482b17f8a3b12da6b636f857b92f

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>negril.nx+gentoo@gmail.com</email>
<name>Paul Zander</name>
</maintainer>
<longdescription lang="en">
Get up and running with large language models.
Run Llama 3.3, DeepSeek-R1, Phi-4, Mistral, Gemma 2, and other models, locally.
</longdescription>
<use>
<flag name="rocm">Enable ROCm gpu computing support</flag>
</use>
<upstream>
<remote-id type="github">ollama/ollama</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,57 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
EAPI=8
inherit go-module
DESCRIPTION='Get up and running with large language models.'
HOMEPAGE='https://ollama.com https://github.com/ollama/ollama'
SRC_URI="https://github.com/ollama/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE='MIT'
SLOT='0'
KEYWORDS='~amd64 ~arm64'
IUSE='+systemd rocm'
DEPEND='dev-vcs/git acct-user/ollama acct-group/ollama'
RDEPEND='acct-user/ollama acct-group/ollama'
DOCS=( {SECURITY,CONTRIBUTING,README}.md docs )
src_compile() {
ego build -o bin/ollama \
-ldflags "-X main.version=${PV}"
}
src_install() {
dobin bin/ollama
einstalldocs
}
pkg_postinst() {
einfo 'Quick guide:'
einfo 'ollama serve'
einfo 'ollama run llama3:70b'
einfo 'See available models at https://ollama.com/library'
if use systemd; then
einfo 'Creating systemd service file...'
{
echo '[Unit]'
echo 'Description=Ollama Service'
echo 'After=network-online.target'
echo ''
echo '[Service]'
echo 'ExecStart=/opt/Ollama/bin/ollama serve'
echo 'User=ollama'
echo 'Group=ollama'
echo 'Restart=always'
echo 'RestartSec=3'
echo ''
echo '[Install]'
echo 'WantedBy=default.target'
} > /usr/lib/systemd/system/ollama.service
einfo 'Service file created at /etc/systemd/system/ollama.service'
einfo 'Making service user-startable...'
mkdir -p /etc/systemd/user
ln -s /usr/lib/systemd/system/ollama.service /etc/systemd/user/ollama.service
ln -s /usr/lib/systemd/system/ollama.service /etc/systemd/system/ollama.service
fi
}