added sftp-server package

This commit is contained in:
Alexander Zhirov 2024-03-14 18:58:40 +03:00
parent 8fafe981ef
commit ebc66b0362
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Description: Secure SHell server and client tools
# URL: https://www.openssh.org/
# Maintainer: Alexander Zhirov
# Depends on: linux-pam openssl zlib
name=sftp-server
version=9.7p1
release=1
source=(http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz)
build() {
cd openssh-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/ssh \
--sysconfdir=/etc/ssh \
--with-mantype=man \
--mandir=/usr/share/man \
--with-pid-dir=/run \
--with-privsep-user=nobody \
--with-privsep-path=/var/empty \
--with-xauth=/usr/bin/xauth
make
make DESTDIR=$SRC/installed install
install -dm00755 $PKG/usr/lib/ssh
install -m00755 $SRC/installed/usr/lib/ssh/sftp-server $PKG/usr/lib/ssh
}