diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-17 14:22:11 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-17 14:22:11 +0100 |
| commit | 13be4a07ec1d2933bd4320c8e06f0c810f4d6a13 (patch) | |
| tree | aa9f05a7f34a963de233aa3b135cb708bb7acda6 /meta-systemd/oe-core | |
| parent | 2dbefd2915663e609d1c343ac58cf0960080b4d0 (diff) | |
| download | meta-openembedded-13be4a07ec1d2933bd4320c8e06f0c810f4d6a13.tar.gz | |
meta-systemd: connman, openssh: move bbappends to oe-core dir
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd/oe-core')
5 files changed, 48 insertions, 0 deletions
diff --git a/meta-systemd/oe-core/recipes-connectivity/connman/connman_1.10.bbappend b/meta-systemd/oe-core/recipes-connectivity/connman/connman_1.10.bbappend new file mode 100644 index 0000000000..a9d13e627c --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/connman/connman_1.10.bbappend | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | inherit systemd | ||
| 2 | |||
| 3 | PRINC := "${@int(PRINC) + 1}" | ||
| 4 | |||
| 5 | EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/" | ||
| 6 | |||
| 7 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
| 8 | SYSTEMD_SERVICE_${PN}-systemd = "connman.service" | ||
diff --git a/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket new file mode 100644 index 0000000000..753a33b393 --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd.socket | |||
| @@ -0,0 +1,11 @@ | |||
| 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 new file mode 100644 index 0000000000..d118490bdb --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshd@.service | |||
| @@ -0,0 +1,9 @@ | |||
| 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 new file mode 100644 index 0000000000..c717214c55 --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh/sshdgenkeys.service | |||
| @@ -0,0 +1,10 @@ | |||
| 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.0p1.bbappend b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.0p1.bbappend new file mode 100644 index 0000000000..a708a36c1c --- /dev/null +++ b/meta-systemd/oe-core/recipes-connectivity/openssh/openssh_6.0p1.bbappend | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 3 | PRINC := "${@int(PRINC) + 3}" | ||
| 4 | |||
| 5 | SYSTEMD_PACKAGES = "openssh-sshd-systemd" | ||
| 6 | SYSTEMD_SERVICE = "sshd.socket" | ||
| 7 | |||
| 8 | inherit systemd | ||
| 9 | |||
| 10 | SRC_URI += "file://sshd.socket file://sshd@.service file://sshdgenkeys.service" | ||
