aboutsummaryrefslogtreecommitdiff
path: root/extra/sftp/build
blob: d2a9aa39b87c5b7f3e2f97c20411e5296f50a29f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -e

# Standalone sftp client crashes without
# libedit, so it is mandatory.

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --datadir=/usr/share/openssh \
    --sysconfdir=/etc/ssh \
    --without-selinux \
    --with-privsep-user=nobody \
    --with-mantype=doc \
    --without-rpath \
    --disable-strip \
    --with-ssl-engine \
    --with-pid-dir=/run \
    --disable-wtmp \
    --disable-utmp \
    --with-libedit \

make sftp sftp-server

mkdir -p "$1/usr/bin" "$1/usr/libexec"

cp sftp        "$1/usr/bin"
cp sftp-server "$1/usr/libexec"

chmod 755 "$1/usr/bin/sftp" "$1/usr/libexec/sftp-server"