aboutsummaryrefslogtreecommitdiff
path: root/scripts/openssh.sh
blob: 1f1f5b29aaa9183576696fe091127f8149405106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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"
./configure \
	--host=$BUILD_TGT \
	--sysconfdir=/etc \
	--prefix=/usr \
	--without-openssl
cp Makefile Makefile.bak
sed -e"s@^DESTDIR.*\$@DESTDIR = $prefix@g" Makefile.bak > Makefile
make -j$(numproc)
make install-nokeys