blob: 291cd16b2ae0e24c8429fbdfc45a76cad3732251 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
4
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005SRC_URI = "file://init \
Patrick Williamsc0f7c042017-02-23 20:41:17 -06006 file://weston.service \
7 file://weston-start"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9S = "${WORKDIR}"
10
11do_install() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060012 install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
13 install -Dm0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014
Patrick Williamsc0f7c042017-02-23 20:41:17 -060015 # Install weston-start script
16 install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
17 sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start
18 sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019}
20
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021inherit allarch update-rc.d distro_features_check systemd
22
23# rdepends on weston which depends on virtual/egl
24REQUIRED_DISTRO_FEATURES = "opengl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025
26RDEPENDS_${PN} = "weston kbd"
27
28INITSCRIPT_NAME = "weston"
29INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050030
31SYSTEMD_SERVICE_${PN} = "weston.service"