morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 16da91bc4f8b83e172b5b221c808dc4cb04c7611
parent 0916e96ec73a4cd589103a2a8d20ba9b08fc86c7
Author: sin <sin@2f30.org>
Date:   Fri,  6 Sep 2013 12:01:40 +0100

Add dropbear

Diffstat:
Across-scripts/zlib-1.2.8 | 24++++++++++++++++++++++++
Apkgs/dropbear | 30++++++++++++++++++++++++++++++
Mstage0 | 1+
3 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/cross-scripts/zlib-1.2.8 b/cross-scripts/zlib-1.2.8 @@ -0,0 +1,24 @@ +url=$mirror/zlib-1.2.8.tar.gz + +fetch() { + wget -c $url -O src/zlib-1.2.8.tar.gz +} + +unpack() { + pushd src + [ -d zlib-1.2.8 ] || tar xzf zlib-1.2.8.tar.gz + popd +} + +build() { + pushd src/zlib-1.2.8 + CC=musl-gcc ./configure --prefix=$top/cross --static + make CC=musl-gcc -j$nprocs + popd +} + +install() { + pushd src/zlib-1.2.8 + make install + popd +} diff --git a/pkgs/dropbear b/pkgs/dropbear @@ -0,0 +1,30 @@ +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 + popd +} diff --git a/stage0 b/stage0 @@ -21,6 +21,7 @@ ln -s /bin sbin popd ./build cross-scripts/musl-0.9.13 +./build cross-scripts/zlib-1.2.8 PATH=$top/cross/bin:$PATH export PATH