diff options
Diffstat (limited to 'meta-systemd/oe-core/recipes-core')
10 files changed, 107 insertions, 0 deletions
diff --git a/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-klogd.service.in b/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-klogd.service.in new file mode 100644 index 0000000000..d7c77558f3 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-klogd.service.in | |||
@@ -0,0 +1,8 @@ | |||
1 | [Unit] | ||
2 | Description=Kernel Logging Service | ||
3 | |||
4 | [Service] | ||
5 | ExecStart=@base_sbindir@/klogd -n | ||
6 | |||
7 | [Install] | ||
8 | WantedBy=multi-user.target | ||
diff --git a/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-syslog.service.in b/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-syslog.service.in new file mode 100644 index 0000000000..2e04321385 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/busybox/busybox/busybox-syslog.service.in | |||
@@ -0,0 +1,13 @@ | |||
1 | [Unit] | ||
2 | Description=System Logging Service | ||
3 | Wants=busybox-klogd.service | ||
4 | |||
5 | [Service] | ||
6 | EnvironmentFile=-/etc/default/busybox-syslog | ||
7 | ExecStart=@base_sbindir@/syslogd -n $OPTIONS | ||
8 | Sockets=syslog.socket | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
12 | Also=busybox-klogd.service | ||
13 | Alias=syslog.service | ||
diff --git a/meta-systemd/oe-core/recipes-core/busybox/busybox_%.bbappend b/meta-systemd/oe-core/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 0000000000..6362bdba65 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/busybox/busybox_%.bbappend | |||
@@ -0,0 +1,25 @@ | |||
1 | inherit systemd | ||
2 | |||
3 | # look for files in the layer first | ||
4 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
5 | |||
6 | SRC_URI += "file://busybox-syslog.service.in \ | ||
7 | file://busybox-klogd.service.in" | ||
8 | |||
9 | SYSTEMD_PACKAGES = "${PN}-syslog" | ||
10 | SYSTEMD_SERVICE_${PN}-syslog = "busybox-syslog.service" | ||
11 | |||
12 | do_install_append() { | ||
13 | install -d ${D}${systemd_unitdir}/system | ||
14 | sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \ | ||
15 | > ${D}${systemd_unitdir}/system/busybox-syslog.service | ||
16 | sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \ | ||
17 | > ${D}${systemd_unitdir}/system/busybox-klogd.service | ||
18 | |||
19 | ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service | ||
20 | } | ||
21 | FILES_${PN}-syslog += "${systemd_unitdir}/system/syslog.service" | ||
22 | |||
23 | RPROVIDES_${PN}-syslog += "${PN}-syslog-systemd" | ||
24 | RREPLACES_${PN}-syslog += "${PN}-syslog-systemd" | ||
25 | RCONFLICTS_${PN}-syslog += "${PN}-syslog-systemd" | ||
diff --git a/meta-systemd/oe-core/recipes-core/dbus/dbus_%.bbappend b/meta-systemd/oe-core/recipes-core/dbus/dbus_%.bbappend new file mode 100644 index 0000000000..f006b3fb5b --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/dbus/dbus_%.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | RPROVIDES_${PN} += "${PN}-systemd" | ||
2 | RREPLACES_${PN} += "${PN}-systemd" | ||
3 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
diff --git a/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear.socket b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear.socket new file mode 100644 index 0000000000..e5c61b755e --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear.socket | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Conflicts=dropbear.service | ||
3 | |||
4 | [Socket] | ||
5 | ListenStream=22 | ||
6 | Accept=yes | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=sockets.target | ||
10 | Also=dropbearkey.service | ||
diff --git a/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear@.service b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear@.service new file mode 100644 index 0000000000..59ed07b6d0 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbear@.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=SSH Per-Connection Server | ||
3 | Requires=dropbearkey.service | ||
4 | After=syslog.target dropbearkey.service | ||
5 | |||
6 | [Service] | ||
7 | EnvironmentFile=-/etc/default/dropbear | ||
8 | ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 $DROPBEAR_EXTRA_ARGS | ||
9 | ExecReload=/bin/kill -HUP $MAINPID | ||
10 | StandardInput=socket | ||
11 | KillMode=process | ||
diff --git a/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbearkey.service b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbearkey.service new file mode 100644 index 0000000000..7f03000ebc --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/dropbear/dropbear/dropbearkey.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=SSH Key Generation | ||
3 | ConditionPathExists=|!/etc/dropbear/dropbear_rsa_host_key | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=/usr/sbin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key | ||
7 | RemainAfterExit=yes | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-systemd/oe-core/recipes-core/dropbear/dropbear_%.bbappend b/meta-systemd/oe-core/recipes-core/dropbear/dropbear_%.bbappend new file mode 100644 index 0000000000..fc18ea8e32 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/dropbear/dropbear_%.bbappend | |||
@@ -0,0 +1,21 @@ | |||
1 | inherit systemd | ||
2 | |||
3 | # look for files in the layer first | ||
4 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
5 | |||
6 | SRC_URI += "file://dropbearkey.service \ | ||
7 | file://dropbear@.service \ | ||
8 | file://dropbear.socket" | ||
9 | |||
10 | RPROVIDES_${PN} += "${PN}-systemd" | ||
11 | RREPLACES_${PN} += "${PN}-systemd" | ||
12 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
13 | SYSTEMD_SERVICE_${PN} = "dropbear.socket" | ||
14 | |||
15 | do_install_append() { | ||
16 | install -d ${D}${systemd_unitdir}/system | ||
17 | install -m 0644 ${WORKDIR}/dropbearkey.service ${D}${systemd_unitdir}/system | ||
18 | install -m 0644 ${WORKDIR}/dropbear@.service ${D}${systemd_unitdir}/system | ||
19 | install -m 0644 ${WORKDIR}/dropbear.socket ${D}${systemd_unitdir}/system | ||
20 | ln -sf /dev/null ${D}${systemd_unitdir}/system/dropbear.service | ||
21 | } | ||
diff --git a/meta-systemd/oe-core/recipes-core/systemd/systemd_%.bbappend b/meta-systemd/oe-core/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 0000000000..f5aa547f13 --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/systemd/systemd_%.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | RPROVIDES_udev += "udev-systemd" | ||
2 | RREPLACES_udev += "udev-systemd" | ||
3 | RCONFLICTS_udev += "udev-systemd" | ||
diff --git a/meta-systemd/oe-core/recipes-core/util-linux/util-linux_%.bbappend b/meta-systemd/oe-core/recipes-core/util-linux/util-linux_%.bbappend new file mode 100644 index 0000000000..f006b3fb5b --- /dev/null +++ b/meta-systemd/oe-core/recipes-core/util-linux/util-linux_%.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | RPROVIDES_${PN} += "${PN}-systemd" | ||
2 | RREPLACES_${PN} += "${PN}-systemd" | ||
3 | RCONFLICTS_${PN} += "${PN}-systemd" | ||