From 326e027816d7af4d4896e9e6d74842aa327352e0 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Sun, 10 Jun 2012 21:46:39 +0000 Subject: busybox: move systemd support to meta-systemd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../busybox/busybox/busybox-klogd.service.in | 8 -------- .../busybox/busybox/busybox-syslog.service.in | 13 ------------ .../recipes-core/busybox/busybox_1.19.4.bbappend | 20 ++----------------- .../busybox/busybox/busybox-klogd.service.in | 8 ++++++++ .../busybox/busybox/busybox-syslog.service.in | 13 ++++++++++++ .../recipes-core/busybox/busybox_1.19.4.bbappend | 23 ++++++++++++++++++++++ 6 files changed, 46 insertions(+), 39 deletions(-) delete mode 100644 meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in delete mode 100644 meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in create mode 100644 meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in create mode 100644 meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in create mode 100644 meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend diff --git a/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in b/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in deleted file mode 100644 index d7c77558f..000000000 --- a/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Kernel Logging Service - -[Service] -ExecStart=@base_sbindir@/klogd -n - -[Install] -WantedBy=multi-user.target diff --git a/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in b/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in deleted file mode 100644 index 27b9831da..000000000 --- a/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=System Logging Service -Wants=busybox-klogd.service - -[Service] -ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service -EnvironmentFile=-/etc/default/busybox-syslog -ExecStart=@base_sbindir@/syslogd -n $OPTIONS -Sockets=syslog.socket - -[Install] -WantedBy=multi-user.target -Also=busybox-klogd.service 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 @@ -inherit systemd - -PRINC := "${@int(PRINC) + 4}" +PRINC := "${@int(PRINC) + 5}" # look for files in the layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI += "file://busybox-syslog.service.in \ - file://busybox-klogd.service.in \ - file://busybox-syslog.default" - -SYSTEMD_PACKAGES = "${PN}-syslog-systemd" -SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service" +SRC_URI += "file://busybox-syslog.default" do_install_append() { install -d ${D}${sysconfdir}/default install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog - - install -d ${D}${systemd_unitdir}/system - sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \ - > ${D}${systemd_unitdir}/system/busybox-syslog.service - sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \ - > ${D}${systemd_unitdir}/system/busybox-klogd.service - - ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service } -FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service" diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in new file mode 100644 index 000000000..d7c77558f --- /dev/null +++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in @@ -0,0 +1,8 @@ +[Unit] +Description=Kernel Logging Service + +[Service] +ExecStart=@base_sbindir@/klogd -n + +[Install] +WantedBy=multi-user.target diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in new file mode 100644 index 000000000..27b9831da --- /dev/null +++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in @@ -0,0 +1,13 @@ +[Unit] +Description=System Logging Service +Wants=busybox-klogd.service + +[Service] +ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service +EnvironmentFile=-/etc/default/busybox-syslog +ExecStart=@base_sbindir@/syslogd -n $OPTIONS +Sockets=syslog.socket + +[Install] +WantedBy=multi-user.target +Also=busybox-klogd.service 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 @@ +inherit systemd + +PRINC := "${@int(PRINC) + 1}" + +# look for files in the layer first +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://busybox-syslog.service.in \ + file://busybox-klogd.service.in" + +SYSTEMD_PACKAGES = "${PN}-syslog-systemd" +SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service" + +do_install_append() { + install -d ${D}${systemd_unitdir}/system + sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \ + > ${D}${systemd_unitdir}/system/busybox-syslog.service + sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \ + > ${D}${systemd_unitdir}/system/busybox-klogd.service + + ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service +} +FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service" -- cgit v1.2.3-54-g00ecf