diff options
Diffstat (limited to 'meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb')
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb index 72ba8c0227..5486f89ae7 100644 --- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | |||
@@ -8,10 +8,12 @@ SRC_URI = "file://run-postinsts \ | |||
8 | file://run-postinsts.init \ | 8 | file://run-postinsts.init \ |
9 | file://run-postinsts.service" | 9 | file://run-postinsts.service" |
10 | 10 | ||
11 | S = "${WORKDIR}" | 11 | S = "${UNPACKDIR}" |
12 | 12 | ||
13 | inherit allarch systemd update-rc.d | 13 | inherit allarch systemd update-rc.d |
14 | 14 | ||
15 | RDEPENDS:${PN} = "util-linux-fcntl-lock" | ||
16 | |||
15 | INITSCRIPT_NAME = "run-postinsts" | 17 | INITSCRIPT_NAME = "run-postinsts" |
16 | INITSCRIPT_PARAMS = "start 99 S ." | 18 | INITSCRIPT_PARAMS = "start 99 S ." |
17 | 19 | ||
@@ -27,13 +29,13 @@ do_compile () { | |||
27 | 29 | ||
28 | do_install() { | 30 | do_install() { |
29 | install -d ${D}${sbindir} | 31 | install -d ${D}${sbindir} |
30 | install -m 0755 ${WORKDIR}/run-postinsts ${D}${sbindir}/ | 32 | install -m 0755 ${S}/run-postinsts ${D}${sbindir}/ |
31 | 33 | ||
32 | install -d ${D}${sysconfdir}/init.d/ | 34 | install -d ${D}${sysconfdir}/init.d/ |
33 | install -m 0755 ${WORKDIR}/run-postinsts.init ${D}${sysconfdir}/init.d/run-postinsts | 35 | install -m 0755 ${S}/run-postinsts.init ${D}${sysconfdir}/init.d/run-postinsts |
34 | 36 | ||
35 | install -d ${D}${systemd_system_unitdir}/ | 37 | install -d ${D}${systemd_system_unitdir}/ |
36 | install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${systemd_system_unitdir}/ | 38 | install -m 0644 ${S}/run-postinsts.service ${D}${systemd_system_unitdir}/ |
37 | 39 | ||
38 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ | 40 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ |
39 | -e 's:#SBINDIR#:${sbindir}:g' \ | 41 | -e 's:#SBINDIR#:${sbindir}:g' \ |