mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-30 02:51:25 +00:00
34 lines
812 B
Plaintext
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
|
|
}
|