blob: cc7e56c45168f537276484eb266995c211ebe737 [file] [log] [blame]
CamVan Nguyenb6f7e102018-02-20 13:28:52 -06001# 0001-Only-load-dropbear-default-host-keys-if-a-key-is-not.patch
2# has been upstreamed. This patch can be removed once we upgrade
3# to yocto 2.5 or later which will pull in the latest dropbear code.
Patrick Williams12fc9392021-08-06 09:16:53 -05004FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Ed Tanous9936f862022-09-19 09:13:20 -07005
Jeremy Kerrfac2e5c2016-04-12 11:38:13 +08006SRC_URI += "file://dropbearkey.service \
Richard Marian Thomaiyar19e81d32019-09-23 22:30:10 +05307 file://localoptions.h \
8 file://dropbear.default \
Patrick Williamsa0e20ab2023-05-05 16:31:59 -05009 file://dropbear-migrate-key-location.service \
10 file://migrate-key-location \
Richard Marian Thomaiyar19e81d32019-09-23 22:30:10 +053011 "
Zev Weiss26dbcdb2021-09-10 18:22:41 -050012
Adriana Kobylakb758ca42024-01-22 15:30:51 -060013do_configure:append() {
14 install -m 0644 ${WORKDIR}/localoptions.h ${B}
15}
16
Zev Weiss26dbcdb2021-09-10 18:22:41 -050017# pull in OpenSSH's /usr/libexec/sftp-server so we don't have to rely
18# on the crufty old scp protocol for file transfer
19RDEPENDS:${PN} += "openssh-sftp-server"
Patrick Williamsa0e20ab2023-05-05 16:31:59 -050020
21# Add service to migrate the dropbear keys from /var/lib to /etc.
22do_install:append() {
23 install -d ${D}${base_libdir}/systemd/system
24 install -m 0644 ${WORKDIR}/dropbear-migrate-key-location.service \
25 ${D}${base_libdir}/systemd/system
26
27 install -d ${D}${libexecdir}/${BPN}
28 install -m 0755 ${WORKDIR}/migrate-key-location ${D}${libexecdir}/${BPN}
29}
30SYSTEMD_SERVICE:${PN}:append = " dropbear-migrate-key-location.service"