mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
mongodb: A little clean up
This cleans up whitespace, and avoids using ${...} for shell
variables.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
c386e5ab79
commit
563577f488
@@ -43,7 +43,6 @@ SRC_URI:append:toolchain-clang = "\
|
|||||||
file://0001-asio-Dont-use-experimental-with-clang.patch \
|
file://0001-asio-Dont-use-experimental-with-clang.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
COMPATIBLE_HOST ?= '(x86_64|i.86|powerpc64|arm|aarch64).*-linux'
|
COMPATIBLE_HOST ?= '(x86_64|i.86|powerpc64|arm|aarch64).*-linux'
|
||||||
@@ -83,44 +82,40 @@ EXTRA_OESCONS = "PREFIX=${prefix} \
|
|||||||
--separate-debug \
|
--separate-debug \
|
||||||
${PACKAGECONFIG_CONFARGS}"
|
${PACKAGECONFIG_CONFARGS}"
|
||||||
|
|
||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
USERADD_PACKAGES = "${PN}"
|
||||||
USERADD_PARAM:${PN} = "--system --no-create-home --home-dir /var/run/${BPN} --shell /bin/false --user-group ${BPN}"
|
USERADD_PARAM:${PN} = "--system --no-create-home --home-dir /var/run/${BPN} --shell /bin/false --user-group ${BPN}"
|
||||||
|
|
||||||
|
|
||||||
scons_do_compile() {
|
scons_do_compile() {
|
||||||
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} install-core || \
|
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} install-core ||
|
||||||
die "scons build execution failed."
|
die "scons build execution failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
scons_do_install() {
|
scons_do_install() {
|
||||||
# install binaries
|
# install binaries
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
for i in mongod mongos mongo
|
for i in mongod mongos mongo; do
|
||||||
do
|
if [ -f ${B}/build/opt/mongo/$i ]; then
|
||||||
if [ -f ${B}/build/opt/mongo/${i} ]
|
install -m 0755 ${B}/build/opt/mongo/$i ${D}${bindir}
|
||||||
then
|
else
|
||||||
install -m 0755 ${B}/build/opt/mongo/${i} ${D}${bindir}/${i}
|
bbnote "$i does not exist"
|
||||||
else
|
fi
|
||||||
bbnote "${i} does not exist"
|
done
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# install config
|
# install config
|
||||||
install -d ${D}${sysconfdir}
|
install -d ${D}${sysconfdir}
|
||||||
install -m 0644 ${S}/debian/mongod.conf ${D}${sysconfdir}/
|
install -m 0644 ${S}/debian/mongod.conf ${D}${sysconfdir}
|
||||||
|
|
||||||
# install systemd service
|
# install systemd service
|
||||||
install -d ${D}${systemd_system_unitdir}
|
install -d ${D}${systemd_system_unitdir}
|
||||||
install -m 0644 ${S}/debian/mongod.service ${D}${systemd_system_unitdir}
|
install -m 0644 ${S}/debian/mongod.service ${D}${systemd_system_unitdir}
|
||||||
|
|
||||||
# install mongo data folder
|
# install mongo data folder
|
||||||
install -m 755 -d ${D}${localstatedir}/lib/${BPN}
|
install -m 755 -d ${D}${localstatedir}/lib/${BPN}
|
||||||
chown ${PN}:${PN} ${D}${localstatedir}/lib/${BPN}
|
chown ${PN}:${PN} ${D}${localstatedir}/lib/${BPN}
|
||||||
|
|
||||||
# Log files
|
# Log files
|
||||||
install -m 755 -d ${D}${localstatedir}/log/${BPN}
|
install -m 755 -d ${D}${localstatedir}/log/${BPN}
|
||||||
chown ${PN}:${PN} ${D}${localstatedir}/log/${BPN}
|
chown ${PN}:${PN} ${D}${localstatedir}/log/${BPN}
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFFILES:${PN} = "${sysconfdir}/mongod.conf"
|
CONFFILES:${PN} = "${sysconfdir}/mongod.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user