2018-02-12 22:09:48 -05:00
|
|
|
|
|
|
|
DESCRIPTION = "Install systemd unit file to automatically start primary-user-appimg container"
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SECTION = ""
|
|
|
|
DEPENDS = ""
|
|
|
|
|
|
|
|
inherit systemd
|
|
|
|
|
2018-02-16 18:20:05 -05:00
|
|
|
SRC_URI = "file://primary-user-appimg.path file://primary-user-appimg.service file://primary.nspawn file://watch-run-user.path file://watch-run-user.service file://run-in-image"
|
2018-02-12 22:09:48 -05:00
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2018-02-16 18:20:05 -05:00
|
|
|
SYSTEMD_SERVICE_${PN} = "watch-run-user.path"
|
2018-02-12 22:09:48 -05:00
|
|
|
RDEPENDS_${PN} = "bash"
|
|
|
|
|
2018-02-16 18:20:05 -05:00
|
|
|
FILES_${PN} += "\
|
|
|
|
${systemd_system_unitdir}/watch-run-user.service \
|
|
|
|
${systemd_system_unitdir}/primary-user-appimg.path \
|
|
|
|
${systemd_system_unitdir}/primary-user-appimg.service \
|
|
|
|
"
|
|
|
|
|
2018-02-12 22:09:48 -05:00
|
|
|
do_install() {
|
|
|
|
install -d ${D}${systemd_system_unitdir}
|
2018-02-16 18:20:05 -05:00
|
|
|
install -m 644 ${WORKDIR}/primary-user-appimg.path ${D}${systemd_system_unitdir}
|
2018-02-12 22:09:48 -05:00
|
|
|
install -m 644 ${WORKDIR}/primary-user-appimg.service ${D}${systemd_system_unitdir}
|
2018-02-16 18:20:05 -05:00
|
|
|
install -m 644 ${WORKDIR}/watch-run-user.path ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/watch-run-user.service ${D}${systemd_system_unitdir}
|
2018-02-12 22:09:48 -05:00
|
|
|
install -d ${D}${sysconfdir}/systemd/nspawn
|
|
|
|
install -m 644 ${WORKDIR}/primary.nspawn ${D}${sysconfdir}/systemd/nspawn
|
|
|
|
install -d ${D}${libexecdir}
|
|
|
|
install -m 755 ${WORKDIR}/run-in-image ${D}${libexecdir}
|
|
|
|
}
|