1ff075f6eSBrad Bishop# 0001-Only-load-dropbear-default-host-keys-if-a-key-is-not.patch 2ff075f6eSBrad Bishop# has been upstreamed. This patch can be removed once we upgrade 3ff075f6eSBrad Bishop# to yocto 2.5 or later which will pull in the latest dropbear code. 412fc939cSPatrick WilliamsFILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 59936f86dSEd Tanous 6ff075f6eSBrad BishopSRC_URI += "file://dropbearkey.service \ 719e81d3fSRichard Marian Thomaiyar file://localoptions.h \ 819e81d3fSRichard Marian Thomaiyar file://dropbear.default \ 9a0e20ab1SPatrick Williams file://dropbear-migrate-key-location.service \ 10a0e20ab1SPatrick Williams file://migrate-key-location \ 1119e81d3fSRichard Marian Thomaiyar " 1226dbcdbdSZev Weiss 13*b758ca40SAdriana Kobylakdo_configure:append() { 14*b758ca40SAdriana Kobylak install -m 0644 ${WORKDIR}/localoptions.h ${B} 15*b758ca40SAdriana Kobylak} 16*b758ca40SAdriana Kobylak 1726dbcdbdSZev Weiss# pull in OpenSSH's /usr/libexec/sftp-server so we don't have to rely 1826dbcdbdSZev Weiss# on the crufty old scp protocol for file transfer 1926dbcdbdSZev WeissRDEPENDS:${PN} += "openssh-sftp-server" 20a0e20ab1SPatrick Williams 21a0e20ab1SPatrick Williams# Add service to migrate the dropbear keys from /var/lib to /etc. 22a0e20ab1SPatrick Williamsdo_install:append() { 23a0e20ab1SPatrick Williams install -d ${D}${base_libdir}/systemd/system 24a0e20ab1SPatrick Williams install -m 0644 ${WORKDIR}/dropbear-migrate-key-location.service \ 25a0e20ab1SPatrick Williams ${D}${base_libdir}/systemd/system 26a0e20ab1SPatrick Williams 27a0e20ab1SPatrick Williams install -d ${D}${libexecdir}/${BPN} 28a0e20ab1SPatrick Williams install -m 0755 ${WORKDIR}/migrate-key-location ${D}${libexecdir}/${BPN} 29a0e20ab1SPatrick Williams} 30a0e20ab1SPatrick WilliamsSYSTEMD_SERVICE:${PN}:append = " dropbear-migrate-key-location.service" 31