Permalink
Browse files

vsftpd: 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 5ef6d85 commit 417df47ee0bdaf859e8e4c319c185fc59c746949
Showing with 8 additions and 1 deletion.
  1. +1 −1 recipes/vsftpd/files/vsftpd-log.run
  2. +7 −0 recipes/vsftpd/vsftpd.inc
@@ -8,4 +8,4 @@ s6-setuidgid nobody
if { fdmove 1 6 s6-echo ok }
fdclose 6
exec -c
s6-log -b -- s131072 t /var/log/vsftpd
s6-log -b -- __args__ t /var/log/vsftpd
@@ -102,6 +102,13 @@ PACKAGES += "${PN}-s6"
FILES_${PN}-s6 += "${s6rcsrcdir}"
RDEPENDS_${PN}:>USE_s6rc += " ${PN}-s6"
RECIPE_FLAGS += "vsftpd_log_args"
DEFAULT_USE_vsftpd_log_args = "s131072"
do_configure_s6_log() {
sed -i -e "s|__args__|${USE_vsftpd_log_args}|" ${SRCDIR}/vsftpd-log.run
}
do_configure[postfuncs] += "do_configure_s6_log"
# FIXME: do something else!
#pkg_postinst() {
# if [ "x$D" != "x" ]; then

0 comments on commit 417df47

Please sign in to comment.