mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-29 22:41:20 +00:00
Add dropbear
This commit is contained in:
parent
0916e96ec7
commit
16da91bc4f
24
cross-scripts/zlib-1.2.8
Normal file
24
cross-scripts/zlib-1.2.8
Normal file
@ -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
|
||||
}
|
30
pkgs/dropbear
Normal file
30
pkgs/dropbear
Normal file
@ -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
|
||||
}
|
1
stage0
1
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
|
||||
|
Loading…
Reference in New Issue
Block a user