aboutsummaryrefslogtreecommitdiff
path: root/scripts/openssh.sh
blob: ac59fd3e9976588f1c19c8db081d0a466488ab48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
. ./.vars
VERSION=7.7p1
BUILD_DIR="${build_dir}/openssh-$VERSION"
if ! [ -d "$BUILD_DIR" ] ; then
	cd "$build_dir"
	tar xfzv ${dist_dir}/openssh-$VERSION.tar.gz
fi
cd "$BUILD_DIR"
export CFLAGS="-I$prefix/usr/include"
export LDFLAGS="-static -L$prefix/usr/lib/"
export DESTDIR="$prefix"
rm config.log || echo ""
make clean || echo ""
./configure \
	--host=$BUILD_TGT \
	--prefix=/usr \
	--without-openssl
cp Makefile Makefile.bak
sed -e"s@^DESTDIR.*\$@DESTDIR = $prefix@g" Makefile.bak > Makefile
make -j$(numproc)
make install-nokeys