summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh_6.2p2.bb')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_6.2p2.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_6.2p2.bb b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
index ab2eefb9bc..c76f9ac7ee 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
+++ b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
@@ -86,6 +86,13 @@ do_install_append () {
86 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd 86 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd
87 rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin 87 rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin
88 rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run ${D}${localstatedir} 88 rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run ${D}${localstatedir}
89 # Create config files for read-only rootfs
90 install -d ${D}${sysconfdir}/ssh
91 install -m 644 ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/sshd_config_readonly
92 sed -i '/HostKey/d' ${D}${sysconfdir}/ssh/sshd_config_readonly
93 echo "HostKey /var/run/ssh/ssh_host_rsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly
94 echo "HostKey /var/run/ssh/ssh_host_dsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly
95 echo "HostKey /var/run/ssh/ssh_host_ecdsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly
89} 96}
90 97
91ALLOW_EMPTY_${PN} = "1" 98ALLOW_EMPTY_${PN} = "1"
@@ -94,7 +101,7 @@ PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc $
94FILES_${PN}-scp = "${bindir}/scp.${BPN}" 101FILES_${PN}-scp = "${bindir}/scp.${BPN}"
95FILES_${PN}-ssh = "${bindir}/ssh.${BPN} ${sysconfdir}/ssh/ssh_config" 102FILES_${PN}-ssh = "${bindir}/ssh.${BPN} ${sysconfdir}/ssh/ssh_config"
96FILES_${PN}-sshd = "${sbindir}/sshd ${sysconfdir}/init.d/sshd" 103FILES_${PN}-sshd = "${sbindir}/sshd ${sysconfdir}/init.d/sshd"
97FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config" 104FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config ${sysconfdir}/ssh/sshd_config_readonly"
98FILES_${PN}-sftp = "${bindir}/sftp" 105FILES_${PN}-sftp = "${bindir}/sftp"
99FILES_${PN}-sftp-server = "${libexecdir}/sftp-server" 106FILES_${PN}-sftp-server = "${libexecdir}/sftp-server"
100FILES_${PN}-misc = "${bindir}/ssh* ${libexecdir}/ssh*" 107FILES_${PN}-misc = "${bindir}/ssh* ${libexecdir}/ssh*"