From: Rongqing Li <rongqing.li@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH] vsftpd: fix install warning
Date: Tue, 15 Jul 2014 15:23:27 +0800 [thread overview]
Message-ID: <53C4D6EF.6050708@windriver.com> (raw)
In-Reply-To: <1405385986-27334-1-git-send-email-rongqing.li@windriver.com>
It should be in meta-networking
On 07/15/2014 08:59 AM, rongqing.li@windriver.com wrote:
> From: Wenzong Fan <wenzong.fan@windriver.com>
>
> WARNING: QA Issue: vsftpd: Files/directories were installed but not shipped
> /run
> /run/vsftpd
> /run/vsftpd/empty
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
> meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb | 16 +++++++++++++++-
> 1 file changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
> index 0698a63..5df8211 100644
> --- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
> +++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
> @@ -70,7 +70,11 @@ do_install() {
> sed -i "s:/lib/security:${base_libdir}/security:" ${D}${sysconfdir}/pam.d/vsftpd
> sed -i "s:ftpusers:vsftpd.ftpusers:" ${D}${sysconfdir}/pam.d/vsftpd
> fi
> - install -d ${D}${localstatedir}/run/vsftpd/empty
> + if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
> + install -d ${D}${sysconfdir}/tmpfiles.d
> + echo "d /var/run/vsftpd/empty 0755 root root -" \
> + > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
> + fi
> }
>
> INITSCRIPT_PACKAGES = "${PN}"
> @@ -82,3 +86,13 @@ USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp
> --shell /bin/false ftp "
> GROUPADD_PARAM_${PN} = "-r ftp"
>
> +pkg_postinst_${PN}() {
> + if [ -n "$D" ]; then
> + exit 0
> + fi
> + if type systemd-tmpfiles >/dev/null; then
> + systemd-tmpfiles --create
> + elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
> + ${sysconfdir}/init.d/populate-volatile.sh update
> + fi
> +}
>
--
Best Reagrds,
Roy | RongQing Li
prev parent reply other threads:[~2014-07-15 7:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 0:59 [PATCH] vsftpd: fix install warning rongqing.li
2014-07-15 7:23 ` Rongqing Li [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C4D6EF.6050708@windriver.com \
--to=rongqing.li@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox