dev-util/clair: Initial version

Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
Manuel Rüger
2017-06-06 00:21:21 +02:00
parent d51f4e652b
commit 8598811910
5 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/sbin/openrc-run
# Copyright 2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Clair Vulnerability Static Analysis for Containers"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
user=${user:-${SVCNAME}}
group=${group:-${SVCNAME}}
command="/usr/bin/clair"
command_args="${command_args:--config=/etc/clair/config.yaml}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
depend() {
need net
after net
}
start_pre() {
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
}