[yocto] How do I write a yocto/bitbake recipe to replace the default vsftpd.conf file with my own filE?
Bacheh Karaji
bachehkaraji at yahoo.com
Thu Jul 27 00:43:10 PDT 2017
Ok, thanks very much ...
On Tuesday, July 25, 2017, 11:18:13 PM GMT+4:30, Ayoub Zaki <ayoub.zaki at embexus.com> wrote:
On 24.07.2017 07:18, Mohammad Nouri wrote:
> Hi,
> I want to replace the default vsftpd.conf file with my own file!
> My bitbake file looks following:
>
> bbexample_1.0.bb
> DESCRIPTION = "Configuration and extra files for TX28"
> LICENSE = "CLOSED"
> LIC_FILES_CHKSUM = ""
>
> S = "${WORKDIR}"
>
> SRC_URI += " \
> file://ld.so.conf \
> file://vsftpd.conf \
> file://nginx/nginx.conf \
> file://init.d/myscript.sh"
>
> inherit allarch
>
> do_install () {
> install -d ${D}${sysconfdir}
> install -d ${D}${sysconfdir}/nginx
> install -d ${D}${sysconfdir}/init.d
> rm -f ${D}${sysconfdir}/ld.so.conf
> rm -f ${D}${sysconfdir}/vsftpd.conf
> install -m 0755 ${WORKDIR}/ld.so.conf ${D}${sysconfdir}
> install -m 0755 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}
> install -m 0755 ${WORKDIR}/nginx/nginx.conf ${D}${sysconfdir}/nginx/
> install -m 0755 ${WORKDIR}/init.d/myscript.sh ${D}${sysconfdir}/init.d/
> }
>
> But, the file could not be replaced!
> What is wrong?
you should add to your recipe :
FILES_${PN} += " list of files you installed"
--
Ayoub Zaki
ayoub.zaki at embexus.com
Mobile: +49(0)176-62901545
Skype: ayoub.zaki_2
https://embexus.com
--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170727/8b324217/attachment.html>
More information about the yocto
mailing list