[ddca240] | 1 | # Code taken from CLFS-Embedded
|
---|
| 2 | # Chapter 12 Beyond CLFS Embedded
|
---|
| 3 | #
|
---|
| 4 | # Dropbear is a relatively small SSH 2 server and client.
|
---|
| 5 | # Dropbear has a small memory footprint suitable for memory-constrained
|
---|
| 6 | # environments, while still having the same features as OpenSSH. It
|
---|
| 7 | # does not depend on OpenSSL and it has a MIT style license. Optionally
|
---|
| 8 | # it can even be made smaller.
|
---|
| 9 | #
|
---|
| 10 |
|
---|
[7b79679] | 11 | PKG="DROPBEAR"
|
---|
[ddca240] | 12 | PKG_VERSION="0.48.1"
|
---|
[7b79679] | 13 | PKG_FILE="${PKG}-${PKG_VERSION}.tar.gz"
|
---|
| 14 | URL="http://matt.ucc.asn.au/dropbear/releases/${PKG_FILE}"
|
---|
[ddca240] | 15 | MD5="ca8e53a766faec831882831364568421"
|
---|
| 16 | for i in PATCH{1..10}; do
|
---|
| 17 | unset $i
|
---|
| 18 | done
|
---|
| 19 | PATCH1="http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-embedded/patches/dropbear-0.48.1-autotool-1.patch"
|
---|
| 20 |
|
---|
| 21 | ( cat << "xEOFx"
|
---|
| 22 |
|
---|
| 23 | patch -Np1 -i ../dropbear-0.48.1-autotool-1.patch
|
---|
| 24 |
|
---|
| 25 | cp Makefile.in{,.orig}
|
---|
| 26 | sed -e s/@LD@/@CC@/ Makefile.in.orig > Makefile.in
|
---|
| 27 |
|
---|
| 28 | CC="${CC} ${BUILD}" ./configure --prefix=/usr --host=${CLFS_TARGET}
|
---|
| 29 |
|
---|
| 30 | cp -v options.h options.h.backup
|
---|
| 31 | sed -e "s@/dev/random@/dev/urandom@" options.h.backup > options.h
|
---|
| 32 |
|
---|
| 33 | make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
|
---|
| 34 |
|
---|
| 35 | make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install DESTDIR=${CLFS}
|
---|
| 36 | ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/sbin/dropbear
|
---|
| 37 | ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dbclient
|
---|
| 38 | ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearkey
|
---|
| 39 | ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearconvert
|
---|
| 40 | ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/scp
|
---|
| 41 |
|
---|
| 42 | install -dv ${CLFS}/etc/ssh
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | xEOFx
|
---|
| 46 | ) > tmp
|
---|