Compare commits

...

2 Commits

Author SHA1 Message Date
Oliver Smith 986fc1c11a task-sysmocom-tools: add openssh-sftp-server
Related: SYS#6403
Change-Id: I9882bd76cd57b394b978ed40f64adafb8445e3e3
2023-04-26 17:36:05 +02:00
Oliver Smith 4a06570a1a openssh-sftp-server: new package
Related: SYS#6403
Change-Id: I376bc31413935f7a560afd916a623228550dc6fe
2023-04-26 17:34:30 +02:00
2 changed files with 38 additions and 1 deletions

View File

@ -3,7 +3,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r14"
PR = "r15"
RDEPENDS_${PN} = "\
lmsensors-scripts \
@ -21,4 +21,7 @@ RDEPENDS_${PN} = "\
sysmocom-systemd \
sysmocom-configure \
osmo-config-merge \
openssh-sftp-server \
"
PREFERRED_PROVIDER_openssh-sftp-server = "openssh-sftp-server"

View File

@ -0,0 +1,34 @@
# Package OpenSSH's sftp server, so the openssh client finds it and doesn't
# need to be run with a flag to use the legacy SCP protocol (SYS#6403)
SUMMARY = "OpenSSH's sftp-server"
DESCRIPTION = "OpenSSH's sftp-server, to be used with dropbear"
HOMEPAGE = "http://www.openssh.com/"
SECTION = "console/network"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE;md5=072979064e691d342002f43cd89c0394"
DEPENDS = ""
# SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.gz"
# Official mirror is down as of writing. The github mirror is mentioned here:
# https://www.openssh.com/portable.html
GIT_TAG = "V_9_3_P1"
SRC_URI = "https://github.com/openssh/openssh-portable/archive/refs/tags/${GIT_TAG}.tar.gz"
SRC_URI[md5sum] = "68f7f08269c442e2728656cd97506478"
SRC_URI[sha256sum] = "c5e541b59bdad8950a8c999fe18ca1ad39f6132b042cd85fb29e788ca9f9ce47"
inherit autotools
EXTRA_OECONF += "--without-openssl --without-zlib"
S = "${WORKDIR}/openssh-portable-${GIT_TAG}"
do_compile() {
oe_runmake sftp-server
}
do_install() {
install -Dm755 "${B}"/sftp-server \
-t "${D}"/usr/lib
}
FILES_${PN} = "/usr/lib/sftp-server"