First Commit

This commit is contained in:
2025-11-19 01:25:10 -07:00
parent ca62845bbd
commit 166fd7c886
9 changed files with 71 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@@ -0,0 +1,5 @@
ollama (0.12.11rakuos1) unstable; urgency=medium
* Initial packaging.
-- Joshua Webb <tohur@rakuos.org> Thu, 06 Nov 2025 22:40:00 -0700

11
debian/control vendored Normal file
View File

@@ -0,0 +1,11 @@
Source: ollama
Section: metapackages
Priority: optional
Maintainer: RakuOS Team <tohur@rakuos.org>
Build-Depends: debhelper-compat (= 13),
Standards-Version: 4.6.2
Package: ollama
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends},
Description: Create, run and share large language models (LLMs).

10
debian/copyright vendored Normal file
View File

@@ -0,0 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: RakuOS Branding
Upstream-Contact: Joshua Webb <contact@rakuos.org>
Source: https://rakuos.org/
Files: *
Copyright: 2025 Joshua Webb
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 or later.

3
debian/install vendored Normal file
View File

@@ -0,0 +1,3 @@
ollama-linux-amd64/* usr/
usr/* usr/
var/* var/

16
debian/rules vendored Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/make -f
# Simple dh (debhelper) build rules file
%:
dh $@
# Prevent dh_strip from running on this package
override_dh_strip:
@echo "Skipping dh_strip for Ollama (bundled libs)"
override_dh_shlibdeps:
@echo "Skipping dh_shlibdeps for Ollama (bundled libs)"
override_dh_fixperms:
dh_fixperms
chmod 755 debian/ollama/usr/bin/ollama
chmod u+x debian/ollama/usr/bin/ollama

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Ollama Service
Wants=network-online.target
After=network.target network-online.target
[Service]
ExecStart=/usr/bin/ollama serve
WorkingDirectory=/var/lib/ollama
Environment="HOME=/var/lib/ollama"
Environment="OLLAMA_MODELS=/var/lib/ollama"
User=ollama
Group=ollama
Restart=on-failure
RestartSec=3
RestartPreventExitStatus=1
Type=simple
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,2 @@
g ollama - -
u! ollama - "ollama user" /var/lib/ollama

View File

@@ -0,0 +1 @@
Q /var/lib/ollama 0755 ollama ollama