app-containers/podman: Sync with Gentoo

It's from Gentoo commit 209678c6bc454b852a392a616aff1a60aee28ab7.
This commit is contained in:
Flatcar Buildbot 2025-04-28 07:12:00 +00:00
parent 55c34da210
commit 6f49c6407e
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# Config file for /etc/user/init.d/podman
# Sets the API service daemon log level
# valid levels: debug, info, warn, error, fatal or panic
#LOG_LEVEL="error"

View File

@ -0,0 +1,23 @@
#!/sbin/openrc-run
# Copyright 2015-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
supervisor=supervise-daemon
description="Podman API Service"
RUN_PATH="${XDG_RUNTIME_DIR}/podman"
LOG_PATH="${RUN_PATH}/log"
output_log="${LOG_PATH}/${RC_SVCNAME}.log"
error_log="${LOG_PATH}/${RC_SVCNAME}.log"
pidfile="${RUN_PATH}/${RC_SVCNAME}.pid"
socket="unix://${RUN_PATH}/${RC_SVCNAME}.sock"
# command_user="${RUN_AS_USER:=root:root}"
command="/usr/bin/podman"
command_args="--log-level ${LOG_LEVEL:-error} system service --time 0 ${socket}"
command_background="true"
start() {
checkpath -o $USER -d "${RUN_PATH}" "${LOG_PATH}"
default_start
}

View File

@ -123,6 +123,12 @@ src_install() {
insinto /etc/logrotate.d
newins "${FILESDIR}/podman.logrotated" podman
exeinto /etc/user/init.d
newexe "${FILESDIR}/podman-5.0.0_rc4.user.initd" podman
insinto /etc/user/conf.d
newins "${FILESDIR}/podman-5.0.0_rc4.user.confd" podman
fi
keepdir /var/lib/containers

View File

@ -123,6 +123,12 @@ src_install() {
insinto /etc/logrotate.d
newins "${FILESDIR}/podman.logrotated" podman
exeinto /etc/user/init.d
newexe "${FILESDIR}/podman-5.0.0_rc4.user.initd" podman
insinto /etc/user/conf.d
newins "${FILESDIR}/podman-5.0.0_rc4.user.confd" podman
fi
keepdir /var/lib/containers