1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-29 23:21:20 +00:00
morpheus/pkgs/dropbear
2013-09-06 12:32:02 +01:00

34 lines
812 B
Plaintext

url=$mirror/dropbear-2013.56.tar.bz2
fetch() {
wget -c $url -O src/dropbear-2013.56.tar.bz2
}
unpack() {
pushd src
[ -d dropbear-2013.56 ] || tar xjf dropbear-2013.56.tar.bz2
popd
}
build() {
pushd src/dropbear-2013.56
CC=musl-gcc ./configure CFLAGS="-I$top/cross/include" \
LDFLAGS="-static -L$top/cross/lib" --prefix=$root
for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do
echo "#define DISABLE_$i" >> config.h
done
make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" \
prefix=$root sbindir=$root/bin -j$nprocs STATIC=1
popd
}
install() {
pushd src/dropbear-2013.56
make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" prefix=$root \
sbindir=$root/bin -j$nprocs install STATIC=1
pushd $root/bin
ln -s dbclient ssh
popd
popd
}