source: clfs-embedded/BOOK/beyond-clfs3/common/dropbear.xml@ 99e5b35

Last change on this file since 99e5b35 was 4fc3670, checked in by Maarten Lankhorst <m.b.lankhorst@…>, 18 years ago

Update dropbear stuff

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[3bb8e6a]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-bclfs-dropbear" role="wrap">
9 <?dbhtml filename="dropbear.html"?>
10
11 <title>Dropbear-&dropbear-version;</title>
12
13 <indexterm zone="ch-bclfs-dropbear">
14 <primary sortas="a-Dropbear">Dropbear</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>Dropbear is a relatively small SSH 2 server and client. Dropbear has a small
21 memory footprint suitable for memory-constrained environments, while still having
22 the same features as OpenSSH. It does not depend on OpenSSL and it has a MIT
23 style license. Optionally it can even be made smaller.
24 </para>
25
26 </sect2>
27
28 <sect2 role="installation">
29 <title>Installation of Dropbear</title>
30
[4fc3670]31 <para os="p1">Dropbear doesn't accept our ${CLFS_TARGET} by default, so a patch is needed to make it recognise it:</para>
32
33 <para os="p2"><userinput>patch -Np1 -i ../dropbear-&dropbear-version;-autotools-1.patch</userinput></para>
34
[3bb8e6a]35 <para os="a">Configure dropbear:</para>
36
[4fc3670]37<screen os="b"><userinput>CC="${CC} ${BUILD}" ./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
[3bb8e6a]38
[8520e58]39 <para os="c">Now we will utilize /dev/urandom instead of /dev/random. To allow
[83ea4ad]40 this to be utilized we use the following sed:</para>
[8520e58]41
42<screen os="d"><userinput>cp -v options.h options.h.backup
43sed -e "s@/dev/random@/dev/urandom@" options.h.backup > options.h</userinput></screen>
44
45 <note os="e">
[3bb8e6a]46 <para>We are just telling dropbear to use the default configuration.
47 For those for more adventureous, edit options.h to further configure dropbear.</para>
48 </note>
49
[8520e58]50 <para os="f">Compile the package:</para>
[3bb8e6a]51
[8520e58]52<screen os="g"><userinput>make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"</userinput></screen>
[3bb8e6a]53
[8520e58]54 <para os="h">Install the package:</para>
[3bb8e6a]55
[8520e58]56<screen os="i"><userinput>make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install DESTDIR=${CLFS}
[e8916bf]57ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/sbin/dropbear
58ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/sbin/dbclient
59ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearkey
60ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearconvert
61ln -svf ../../usr/bin/dropbearmulti ${CLFS}/usr/bin/scp</userinput></screen>
[3bb8e6a]62
[cff0bb4]63 <para os="j">Create the directory for the dropbear key files:</para>
64
65<screen os="k"><userinput>install -dv ${CLFS}/etc/ssh</userinput></screen>
66
[3bb8e6a]67 </sect2>
68
69 <sect2 id="contents-dropbear" role="content">
70 <title>Contents of Dropbear</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74
75 <seglistitem>
76 <seg>To be Written</seg>
77 </seglistitem>
78 </segmentedlist>
79
80 </sect2>
81
82</sect1>
Note: See TracBrowser for help on using the repository browser.