diff options
4 files changed, 0 insertions, 46 deletions
diff --git a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket deleted file mode 100644 index 753a33b393..0000000000 --- a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Conflicts=sshd.service | ||
| 3 | |||
| 4 | [Socket] | ||
| 5 | ExecStartPre=/bin/mkdir -p /var/run/sshd | ||
| 6 | ListenStream=22 | ||
| 7 | Accept=yes | ||
| 8 | |||
| 9 | [Install] | ||
| 10 | WantedBy=sockets.target | ||
| 11 | Also=sshdgenkeys.service | ||
diff --git a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd@.service b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd@.service deleted file mode 100644 index d118490bdb..0000000000 --- a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd@.service +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=OpenSSH Per-Connection Daemon | ||
| 3 | After=sshdgenkeys.service | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | ExecStart=-/usr/sbin/sshd -i | ||
| 7 | ExecReload=/bin/kill -HUP $MAINPID | ||
| 8 | StandardInput=socket | ||
| 9 | StandardError=syslog | ||
diff --git a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshdgenkeys.service b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshdgenkeys.service deleted file mode 100644 index c717214c55..0000000000 --- a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshdgenkeys.service +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SSH Key Generation | ||
| 3 | |||
| 4 | [Service] | ||
| 5 | ExecStart=/usr/bin/ssh-keygen -A | ||
| 6 | Type=oneshot | ||
| 7 | RemainAfterExit=yes | ||
| 8 | |||
| 9 | [Install] | ||
| 10 | WantedBy=multi-user.target | ||
diff --git a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.2p2.bbappend b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.2p2.bbappend index d9ad9ba2a5..dadbc14991 100644 --- a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.2p2.bbappend +++ b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.2p2.bbappend | |||
| @@ -1,19 +1,3 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 3 | SYSTEMD_PACKAGES = "${PN}-sshd" | ||
| 4 | SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket" | ||
| 5 | FILES_${PN}-sshd += "${systemd_unitdir}/system/sshd.socket" | ||
| 6 | RPROVIDES_${PN}-sshd += "${PN}-sshd-systemd" | 1 | RPROVIDES_${PN}-sshd += "${PN}-sshd-systemd" |
| 7 | RREPLACES_${PN}-sshd += "${PN}-sshd-systemd" | 2 | RREPLACES_${PN}-sshd += "${PN}-sshd-systemd" |
| 8 | RCONFLICTS_${PN}-sshd += "${PN}-sshd-systemd" | 3 | RCONFLICTS_${PN}-sshd += "${PN}-sshd-systemd" |
| 9 | |||
| 10 | inherit systemd | ||
| 11 | |||
| 12 | SRC_URI += "file://sshd.socket file://sshd@.service file://sshdgenkeys.service" | ||
| 13 | do_install_append() { | ||
| 14 | install -d ${D}${systemd_unitdir}/system | ||
| 15 | install -m 0644 ${WORKDIR}/sshd.socket ${D}${systemd_unitdir}/system | ||
| 16 | install -m 0644 ${WORKDIR}/sshd@.service ${D}${systemd_unitdir}/system | ||
| 17 | install -m 0644 ${WORKDIR}/sshdgenkeys.service ${D}${systemd_unitdir}/system | ||
| 18 | } | ||
| 19 | |||
