1 SUMMARY = "Runs AGL postinstall scripts on first boot of the target device"
5 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
6 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
8 SRC_URI = "file://run-agl-postinsts \
9 file://run-agl-postinsts.service"
13 inherit allarch systemd
15 SYSTEMD_SERVICE_${PN} = "run-agl-postinsts.service"
17 SYSTEMD_SERVICE_AFTER ?= "dbus.service cynara.service"
28 install -d ${D}${sbindir}
29 install -m 0755 ${WORKDIR}/run-agl-postinsts ${D}${sbindir}/
31 install -d ${D}${systemd_unitdir}/system/
32 install -m 0644 ${WORKDIR}/run-agl-postinsts.service ${D}${systemd_unitdir}/system/
34 sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \
35 -e 's:#SBINDIR#:${sbindir}:g' \
36 -e 's:#BASE_BINDIR#:${base_bindir}:g' \
37 -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \
38 ${D}${sbindir}/run-agl-postinsts \
39 ${D}${systemd_unitdir}/system/run-agl-postinsts.service
41 sed -i -e 's:#SYSTEMD_SERVICE_AFTER#:${SYSTEMD_SERVICE_AFTER}:g' \
42 ${D}${systemd_unitdir}/system/run-agl-postinsts.service