summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/run-agl-postinsts/run-agl-postinsts_1.0.bb
blob: 31503aa2fbbfc51ffb39fedafd8a1ddd8a7c2187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { c
SUMMARY = "Runs AGL postinstall scripts on first boot of the target device"
SECTION = "devel"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://run-agl-postinsts \
           file://run-agl-postinsts.service"

S = "${WORKDIR}"

inherit allarch systemd

SYSTEMD_SERVICE_${PN} = "run-agl-postinsts.service"

SYSTEMD_SERVICE_AFTER ?= "dbus.service cynagora.service"

SYSTEMD_SERVICE_BEFORE ?= "systemd-user-sessions.service"

do_configure() {
    :
}

do_compile () {
    :
}

do_install() {
    install -d ${D}${sbindir}
    install -m 0755 ${WORKDIR}/run-agl-postinsts ${D}${sbindir}/

    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${WORKDIR}/run-agl-postinsts.service ${D}${systemd_unitdir}/system/

    sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \
               -e 's:#SBINDIR#:${sbindir}:g' \
               -e 's:#BASE_BINDIR#:${base_bindir}:g' \
               -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \
               ${D}${sbindir}/run-agl-postinsts \
               ${D}${systemd_unitdir}/system/run-agl-postinsts.service

    sed -i -e 's:#SYSTEMD_SERVICE_AFTER#:${SYSTEMD_SERVICE_AFTER}:g' \
               -e 's:#SYSTEMD_SERVICE_BEFORE#:${SYSTEMD_SERVICE_BEFORE}:g' \
               ${D}${systemd_unitdir}/system/run-agl-postinsts.service
}