source: custom/examples_CLFS-E/950-dropbear@ b734bfb

ablfs-more legacy trunk
Last change on this file since b734bfb was fd4a798, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove $Id$ comments, they are useless with git

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[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]11PKG="DROPBEAR"
[ddca240]12PKG_VERSION="0.48.1"
[7b79679]13PKG_FILE="${PKG}-${PKG_VERSION}.tar.gz"
14URL="http://matt.ucc.asn.au/dropbear/releases/${PKG_FILE}"
[ddca240]15MD5="ca8e53a766faec831882831364568421"
16for i in PATCH{1..10}; do
17 unset $i
18done
19PATCH1="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
23patch -Np1 -i ../dropbear-0.48.1-autotool-1.patch
24
25cp Makefile.in{,.orig}
26sed -e s/@LD@/@CC@/ Makefile.in.orig > Makefile.in
27
28CC="${CC} ${BUILD}" ./configure --prefix=/usr --host=${CLFS_TARGET}
29
30cp -v options.h options.h.backup
31sed -e "s@/dev/random@/dev/urandom@" options.h.backup > options.h
32
33make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
34
35make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install DESTDIR=${CLFS}
36ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/sbin/dropbear
37ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dbclient
38ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearkey
39ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearconvert
40ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/scp
41
42install -dv ${CLFS}/etc/ssh
43
44
45xEOFx
46) > tmp
Note: See TracBrowser for help on using the repository browser.