2015-12-01 15:35:56 +00:00
|
|
|
SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor"
|
2013-03-27 17:50:42 +00:00
|
|
|
LICENSE = "MIT"
|
2014-01-02 14:19:45 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
|
2013-03-27 17:50:42 +00:00
|
|
|
|
2015-12-01 15:35:56 +00:00
|
|
|
SRC_URI = "file://init \
|
|
|
|
file://weston.service"
|
2013-03-27 17:50:42 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -d ${D}/${sysconfdir}/init.d
|
|
|
|
install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
|
2015-12-01 15:35:56 +00:00
|
|
|
|
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
|
install -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}
|
2013-03-27 17:50:42 +00:00
|
|
|
}
|
|
|
|
|
2015-12-01 15:35:56 +00:00
|
|
|
inherit allarch update-rc.d distro_features_check systemd
|
|
|
|
|
2015-10-21 08:23:55 +00:00
|
|
|
# rdepends on weston which depends on virtual/egl
|
|
|
|
REQUIRED_DISTRO_FEATURES = "opengl"
|
2013-03-27 17:50:42 +00:00
|
|
|
|
2013-11-07 11:55:35 +00:00
|
|
|
RDEPENDS_${PN} = "weston kbd"
|
|
|
|
|
2013-03-27 17:50:42 +00:00
|
|
|
INITSCRIPT_NAME = "weston"
|
|
|
|
INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
|
2015-12-01 15:35:56 +00:00
|
|
|
|
|
|
|
SYSTEMD_SERVICE_${PN} = "weston.service"
|