Permalink
Browse files

openssh: Allow USE flag configuration of s6-log args

Useful for managing system specific limits on diskspace usage for log files.

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
  • Loading branch information...
esben committed Aug 24, 2018
1 parent a1f5aba commit 0a00fa664f3aff44aed510ab6363f8452d67e0e5
Showing with 10 additions and 1 deletion.
  1. +1 −1 recipes/openssh/files/openssh-log.run
  2. +9 −0 recipes/openssh/openssh.inc
@@ -9,4 +9,4 @@ if { fdmove 1 6 s6-echo ok }
fdclose 6
pipeline { tr -d "\r" }
exec -c
s6-log -b -- s131072 t /var/log/openssh
s6-log -b -- __args__ t /var/log/openssh
@@ -146,6 +146,15 @@ do_install_HOST_KEYTYPES = ""
do_install_HOST_KEYTYPES:USE_s6rc = "do_install_host_keytypes"
do_install[postfuncs] += "${do_install_HOST_KEYTYPES}"
RECIPE_FLAGS += "openssh_log_args"
DEFAULT_USE_openssh_log_args = "s131072"
do_configure_s6_log() {
sed -i \
-e "s|__args__|${USE_openssh_log_args}|" \
${SRCDIR}/openssh-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"
RDEPENDS_${PN}-sshd:>USE_s6rc = " util/tr"
PACKAGEQA_TARGET_BINDIRS += "${target_libexecdir}"

0 comments on commit 0a00fa6

Please sign in to comment.