From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 80B301581C1 for ; Fri, 12 Jul 2024 00:36:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A88852BC028; Fri, 12 Jul 2024 00:36:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86C662BC028 for ; Fri, 12 Jul 2024 00:36:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55C74335C96 for ; Fri, 12 Jul 2024 00:36:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A440510CD for ; Fri, 12 Jul 2024 00:36:33 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1720744431.5614ba834e57416c7a6f60c3fa85cc0d16cafc57.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/ollama/files/, app-misc/ollama/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/ollama/files/ollama app-misc/ollama/ollama-9999.ebuild X-VCS-Directories: app-misc/ollama/ app-misc/ollama/files/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 5614ba834e57416c7a6f60c3fa85cc0d16cafc57 X-VCS-Branch: dev Date: Fri, 12 Jul 2024 00:36:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 80dd6897-f22d-436d-ad0f-cb17bf95e0ec X-Archives-Hash: 91728ff3f72a7197ae7b250cec01aff1 commit: 5614ba834e57416c7a6f60c3fa85cc0d16cafc57 Author: Lucio Sauer posteo net> AuthorDate: Thu Jul 11 23:09:59 2024 +0000 Commit: Lucio Sauer posteo 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 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() {