From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/ollama/files/, app-misc/ollama/
Date: Fri, 12 Jul 2024 00:36:33 +0000 (UTC) [thread overview]
Message-ID: <1720744431.5614ba834e57416c7a6f60c3fa85cc0d16cafc57.watermanpaint@gentoo> (raw)
commit: 5614ba834e57416c7a6f60c3fa85cc0d16cafc57
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jul 11 23:09:59 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Fri Jul 12 00:33:51 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5614ba83
app-misc/ollama: create log dir for ollama user in "${ED}"
Fixes build and improves package, because there's no need for Portage to
track and potentially remove individual log files upon package removal.
Fixes: f6b23710f8146d9d665addb37da03f8573180977
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
app-misc/ollama/files/ollama | 2 +-
app-misc/ollama/ollama-9999.ebuild | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app-misc/ollama/files/ollama b/app-misc/ollama/files/ollama
index cbd787768..9359f48a1 100644
--- a/app-misc/ollama/files/ollama
+++ b/app-misc/ollama/files/ollama
@@ -7,7 +7,7 @@ command_user="ollama"
command_group="ollama"
command_background="yes"
pidfile="/run/ollama.pid"
-log="/var/log/ollama.log"
+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.
diff --git a/app-misc/ollama/ollama-9999.ebuild b/app-misc/ollama/ollama-9999.ebuild
index 3db009887..ded584254 100644
--- a/app-misc/ollama/ollama-9999.ebuild
+++ b/app-misc/ollama/ollama-9999.ebuild
@@ -62,8 +62,8 @@ src_install() {
}
pkg_preinst() {
- touch /var/log/ollama.log || die
- fowners ollama:ollama /var/log/ollama.log
+ keepdir /var/log/ollama
+ fowners ollama:ollama /var/log/ollama
}
pkg_postinst() {
next reply other threads:[~2024-07-12 0:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 0:36 Lucio Sauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-08 21:46 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/ollama/files/, app-misc/ollama/ Paul Zander
2025-03-08 11:21 Ivan Lloro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1720744431.5614ba834e57416c7a6f60c3fa85cc0d16cafc57.watermanpaint@gentoo \
--to=watermanpaint@posteo.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox