27 lines
689 B
Plaintext
27 lines
689 B
Plaintext
|
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
|
||
|
|
||
|
SRC_URI_append = " \
|
||
|
file://weston.service \
|
||
|
file://weston.sh \
|
||
|
"
|
||
|
|
||
|
inherit systemd
|
||
|
|
||
|
SYSTEMD_PACKAGES = "${PN}"
|
||
|
SYSTEMD_SERVICE_${PN} = "weston.service"
|
||
|
|
||
|
do_install_append() {
|
||
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||
|
install -d ${D}${systemd_unitdir}/system/
|
||
|
install -m 0644 ${WORKDIR}/weston.service ${D}${systemd_unitdir}/system
|
||
|
fi
|
||
|
|
||
|
install -d ${D}/${sysconfdir}/profile.d
|
||
|
install -m 0755 ${WORKDIR}/weston.sh ${D}/${sysconfdir}/profile.d/weston.sh
|
||
|
}
|
||
|
|
||
|
FILES_${PN} += " \
|
||
|
${systemd_unitdir}/system/weston.service \
|
||
|
${sysconfdir}/profile.d/weston.sh \
|
||
|
"
|