Re: #yocto - mongodb files missing #yocto


Vincent Prince
 

Hi,

Here's an example of mongodb_%.bbappend file:

-----------------------------------------------------------------------------
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://mongod.conf file://mongod.service"

inherit systemd

do_install_append() {
# config
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/mongod.conf ${D}${sysconfdir}/

# systemd
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/mongod.service ${D}${systemd_unitdir}/system/
}

SYSTEMD_SERVICE_${PN} = "mongod.service"
-----------------------------------------------------------------------------

And create a folder meta-x/recipes-dbs/mongodb/files with
mongod.service and mongod.conf in it.

Best Regards,
Vincent

Le mar. 21 juil. 2020 à 12:11, <srijan.nandi@...> a écrit :

Hello Everyone,

I have built mongodb on zeus. It seems the mongod.service and mongod.conf files are missing. Can anyone show me the procedure to build a .bbappend file to add those.

Thanks and Regards,
-=Srijan Nandi

Join yocto@lists.yoctoproject.org to automatically receive all group messages.