First Commit
This commit is contained in:
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal 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
11
debian/control
vendored
Normal 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
10
debian/copyright
vendored
Normal 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
3
debian/install
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
ollama-linux-amd64/* usr/
|
||||
usr/* usr/
|
||||
var/* var/
|
||||
16
debian/rules
vendored
Executable file
16
debian/rules
vendored
Executable 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
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
22
usr/lib/systemd/system/ollama.service
Normal file
22
usr/lib/systemd/system/ollama.service
Normal 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
|
||||
2
usr/lib/sysusers.d/ollama.conf
Normal file
2
usr/lib/sysusers.d/ollama.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
g ollama - -
|
||||
u! ollama - "ollama user" /var/lib/ollama
|
||||
1
usr/lib/tmpfiles.d/ollama.conf
Normal file
1
usr/lib/tmpfiles.d/ollama.conf
Normal file
@@ -0,0 +1 @@
|
||||
Q /var/lib/ollama 0755 ollama ollama
|
||||
Reference in New Issue
Block a user