source: custom/examples_CLFS-E/950-dropbear@ 1a39790

2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 1a39790 was 7b79679, checked in by George Boudreau <georgeb@…>, 18 years ago

bad commit, too many typos

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