ssh-pregen-hostkeys_1.0.bb 637 B

1234567891011121314151617181920212223
  1. SUMMARY = "Pre generated host keys mainly for speeding up our qemu tests"
  2. SRC_URI = "file://dropbear_rsa_host_key \
  3. file://openssh"
  4. LICENSE = "MIT"
  5. LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
  6. S = "${UNPACKDIR}"
  7. INHIBIT_DEFAULT_DEPS = "1"
  8. COMPATIBLE_MACHINE = "^qemu.*$"
  9. do_install () {
  10. install -d ${D}${sysconfdir}/dropbear
  11. install ${UNPACKDIR}/dropbear_rsa_host_key -m 0600 ${D}${sysconfdir}/dropbear/
  12. install -d ${D}${sysconfdir}/ssh
  13. install ${UNPACKDIR}/openssh/* ${D}${sysconfdir}/ssh/
  14. chmod 0600 ${D}${sysconfdir}/ssh/*
  15. chmod 0644 ${D}${sysconfdir}/ssh/*.pub
  16. }