31 lines
No EOL
989 B
Bash
Executable file
31 lines
No EOL
989 B
Bash
Executable file
#!/bin/bash
|
|
# sftp-server from openssh
|
|
#git clone https://github.com/openssh/openssh-portable
|
|
set -e
|
|
|
|
wget -c https://code.teampandory.com/thirdparty/openssh-portable/-/archive/V_8_1_P1/openssh-portable-V_8_1_P1.tar.gz
|
|
tar xvf openssh-portable-V_8_1_P1.tar.gz
|
|
cd openssh-portable-V_8_1_P1
|
|
|
|
|
|
export STRIP_OPT=""
|
|
export CFLAGS="-I$PREFIX/include -O3"
|
|
export CPPFLAGS="-I$PREFIX/include -O3"
|
|
export LDFLAGS="-L$PREFIX/lib"
|
|
|
|
autoreconf
|
|
./configure --prefix="$PREFIX" --host="$xHOST"
|
|
make sftp-server
|
|
cp -fv sftp-server "$PREFIX/bin/"
|
|
|
|
# ssh server from dropbear
|
|
#git clone https://github.com/mkj/dropbear.git
|
|
wget -c https://code.teampandory.com/thirdparty/dropbear/-/archive/DROPBEAR_2022.83/dropbear-DROPBEAR_2022.83.tar.gz
|
|
tar xvf dropbear-DROPBEAR_2022.83.tar.gz
|
|
cd dropbear-DROPBEAR_2022.83
|
|
|
|
sed -i "s#/usr/libexec/sftp-server#LD_LIBRARY_PATH=/tmp/pandory/lib /tmp/pandory/bin/sftp-server#g" default_options.h
|
|
|
|
./configure --prefix="$PREFIX" --host="$xHOST"
|
|
make -j$(nproc)
|
|
make install |