summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-06-10 21:46:39 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-16 09:39:05 +0200
commit326e027816d7af4d4896e9e6d74842aa327352e0 (patch)
tree2d6c61b77a7e3999de347b2339662f09bda6d461
parent519d60e71767933eee082ee506b5deb2ad06fd3f (diff)
downloadmeta-openembedded-326e027816d7af4d4896e9e6d74842aa327352e0.tar.gz
busybox: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
-rw-r--r--meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend20
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in (renamed from meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in)0
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in (renamed from meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in)0
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend23
4 files changed, 25 insertions, 18 deletions
diff --git a/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend b/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
index 786e1d52d..e9dd4ac9e 100644
--- a/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
+++ b/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
@@ -1,27 +1,11 @@
1inherit systemd 1PRINC := "${@int(PRINC) + 5}"
2
3PRINC := "${@int(PRINC) + 4}"
4 2
5# look for files in the layer first 3# look for files in the layer first
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 4FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7 5
8SRC_URI += "file://busybox-syslog.service.in \ 6SRC_URI += "file://busybox-syslog.default"
9 file://busybox-klogd.service.in \
10 file://busybox-syslog.default"
11
12SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
13SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
14 7
15do_install_append() { 8do_install_append() {
16 install -d ${D}${sysconfdir}/default 9 install -d ${D}${sysconfdir}/default
17 install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog 10 install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
18
19 install -d ${D}${systemd_unitdir}/system
20 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
21 > ${D}${systemd_unitdir}/system/busybox-syslog.service
22 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
23 > ${D}${systemd_unitdir}/system/busybox-klogd.service
24
25 ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
26} 11}
27FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service"
diff --git a/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in
index d7c77558f..d7c77558f 100644
--- a/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in
diff --git a/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in
index 27b9831da..27b9831da 100644
--- a/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in
diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend b/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
new file mode 100644
index 000000000..a0ae2ce18
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
@@ -0,0 +1,23 @@
1inherit systemd
2
3PRINC := "${@int(PRINC) + 1}"
4
5# look for files in the layer first
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7
8SRC_URI += "file://busybox-syslog.service.in \
9 file://busybox-klogd.service.in"
10
11SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
12SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
13
14do_install_append() {
15 install -d ${D}${systemd_unitdir}/system
16 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
17 > ${D}${systemd_unitdir}/system/busybox-syslog.service
18 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
19 > ${D}${systemd_unitdir}/system/busybox-klogd.service
20
21 ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
22}
23FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service"