summaryrefslogtreecommitdiff
path: root/recipes-connectivity/openssh
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
committerJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
commite243c30f04c18722dc65effe6d4f275a3f35de46 (patch)
tree807610ce8af0ead02681d6c3cc89d902ec941652 /recipes-connectivity/openssh
downloadmeta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.gz
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.bz2
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.zip
initial commit of mLinux layer
Diffstat (limited to 'recipes-connectivity/openssh')
-rw-r--r--recipes-connectivity/openssh/openssh/ssh.default2
-rw-r--r--recipes-connectivity/openssh/openssh_6.5p1.bbappend21
2 files changed, 23 insertions, 0 deletions
diff --git a/recipes-connectivity/openssh/openssh/ssh.default b/recipes-connectivity/openssh/openssh/ssh.default
new file mode 100644
index 0000000..d5c0507
--- /dev/null
+++ b/recipes-connectivity/openssh/openssh/ssh.default
@@ -0,0 +1,2 @@
+# put keys here
+SYSCONFDIR=/var/config/ssh
diff --git a/recipes-connectivity/openssh/openssh_6.5p1.bbappend b/recipes-connectivity/openssh/openssh_6.5p1.bbappend
new file mode 100644
index 0000000..87891c8
--- /dev/null
+++ b/recipes-connectivity/openssh/openssh_6.5p1.bbappend
@@ -0,0 +1,21 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://ssh.default"
+
+KEYFILES = "ssh_host_dsa_key \
+ssh_host_dsa_key.pub \
+ssh_host_ecdsa_key \
+ssh_host_ecdsa_key.pub \
+ssh_host_rsa_key \
+ssh_host_rsa_key.pub \
+ssh_host_ed25519_key \
+ssh_host_ed25519_key.pub \
+"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/default
+ install -m 644 ${WORKDIR}/ssh.default ${D}${sysconfdir}/default/ssh
+ for f in ${KEYFILES}; do
+ ln -sf /var/config/ssh/$f ${D}${sysconfdir}/ssh/$f
+ done
+}