blob: 22ba5f3fb3e25ad3d6f1acf9a084b5825c3f60e9 [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"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
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"