[oe] Change to vsftpd recipe

Diego Sueiro diego.sueiro at gmail.com
Thu Nov 28 22:02:43 UTC 2013


Joe,

Looking at your commit, you are populating "/var/run/vsftpd/empty" using
the file "/etc/default/volatiles/99_vsftpd". This file is used in a
sysVinit system.

Since I'm using systemd, I believe that "/etc/default/volatiles/" is not
scanned by Yocto as you can see here:
http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh

So, I think we need an universal solution.

Regards,

--
*dS
Diego Sueiro

/*long live rock 'n roll*/


On Thu, Nov 28, 2013 at 5:02 PM, Joe MacDonald <joe at deserted.net> wrote:

> [Re: [oe] Change to vsftpd recipe] On 13.11.28 (Thu 16:52) Diego Sueiro
> wrote:
>
> > On Thu, Nov 28, 2013 at 4:24 PM, Joe MacDonald <joe at deserted.net> wrote:
> >
> > > Care to take a run at reverting 1c4921817 in your tree and see if that
> > > clears things up for you?  I'd do it myself but I'm waist-deep in a
> > > different investigation right now and it sounds like you might be able
> > > to do a quick test.
> > >
> >
> > Joe,
> >
> > I did not get this QA error.
> > The installed directory should be "/var/run/vsftpd/empty" and not
> > "/run/vsftpd/empty" as pointed on error message.
> > Did you added "install -d ${D}${localstatedir}/run/vsftpd/empty" on
> > do_install function?
>
> Yep, here's the modified do_install in its entirety:
>
> ------------------------------------------------------------------------
> do_install() {
>     install -d ${D}${sbindir}
>     install -d ${D}${mandir}/man8
>     install -d ${D}${mandir}/man5
>     oe_runmake 'DESTDIR=${D}' install
>     install -d ${D}${sysconfdir}
>     install -m 600 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}/vsftpd.conf
>     install -d ${D}${sysconfdir}/init.d/
>     install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/vsftpd
>     install -d ${D}/${sysconfdir}/default/volatiles
>     install -m 644 ${WORKDIR}/volatiles.99_vsftpd
> ${D}/${sysconfdir}/default/volatiles/99_vsftpd
>
>     install -m 600 ${WORKDIR}/vsftpd.ftpusers ${D}${sysconfdir}/
>     install -m 600 ${WORKDIR}/vsftpd.user_list ${D}${sysconfdir}/
>     if ! test -z "${PAMLIB}" ; then
>         install -d ${D}${sysconfdir}/pam.d/
>         cp ${S}/RedHat/vsftpd.pam ${D}${sysconfdir}/pam.d/vsftpd
>         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
> }
> ------------------------------------------------------------------------
>
> -J.
>
> >
> > Regards,
> >
> > --
> > *dS
> > Diego Sueiro
> >
> > /*long live rock 'n roll*/
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> -Joe MacDonald.
> :wq
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>



More information about the Openembedded-devel mailing list