8.6. Dropbear-2013.60

Dropbear is a relatively small SSH server and client. Dropbear has a small memory footprint suitable for memory-constrained environments, while still having the same features as OpenSSH. It does not depend on OpenSSL and it has a MIT style license.

Dropbear depends on zlib.

8.6.1. Installation of Dropbear

Fix dropbear so it doesn't install man pages:

sed -i 's/.*mandir.*//g' Makefile.in

Configure dropbear:

CC="${CC} -Os" ./configure --prefix=/usr --host=${CLFS_TARGET}
[Note]

Note

We are just telling dropbear to use the default configuration plus scp. For those who are more adventurous, edit options.h to further configure dropbear.

Compile the package:

make MULTI=1 \
  PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"

Install the package:

make MULTI=1 \
  PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
  install DESTDIR=${CLFS}/targetfs

Create the directory for the dropbear key files:

install -dv ${CLFS}/targetfs/etc/dropbear

8.6.2. Installation of Dropbear Bootscripts

From the clfs-bootscripts package, install the Dropbear bootscripts:

make install-dropbear DESTDIR=${CLFS}/targetfs

8.6.3. Contents of Dropbear

Installed programs: /usr/bin/dropbearmulti