Fs dropbear

From masu
Jump to: navigation, search

Contents

[edit] Initial setting

Here is the environment variables description and directory structure which must be setup/present before any other action is taken.

[edit] Cleaning

[ -d ~/workdir/apps/dropbear ] && rm -rf ~/workdir/apps/dropbear/dropbear-2014.63

[edit] Getting source code

mkdir ~/workdir/apps/dropbear
cd ~/workdir/apps/dropbear
wget http://matt.ucc.asn.au/dropbear/releases/dropbear-2014.63.tar.bz2
tar xvjf dropbear-2014.63.tar.bz2
cd dropbear-2014.63

[edit] Prepare

[edit] Compile

CC="${CLFS_TARGET}-gcc -Os" ./configure --prefix=/usr --host=${CLFS_TARGET}

For both

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

[edit] Install

sudo cp -avp ${PREFIX_INSTALL}/usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/bin/dropbearmulti
sudo ln -svf /usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/sbin/dropbear
sudo ln -svf /usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/bin/dbclient
sudo ln -svf /usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/bin/dropbearkey
sudo ln -svf /usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/bin/dropbearconvert
sudo ln -svf /usr/bin/dropbearmulti ${PREFIX_ROOTFS}/usr/bin/scp
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
„Láska vdaných žen je nejcennější na světě, manželé o tom ovšem nevědí.“ Oscar Wilde