# SliTaz package receipt. PACKED_SIZE="88.0K" UNPACKED_SIZE="236.0K" PACKAGE="dropbear" VERSION="0.53" CATEGORY="security" SHORT_DESC="Light SSH client and server." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" DEPENDS="libutil zlib" [ -n "$TARGET" ] || TARGET="i486" BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET" SUGGESTED="sftp-server" WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" CONFIG_FILES="/etc/dropbear /etc/daemons.conf /etc/rcS.conf" PROVIDE="ssh" TAGS="ssh" # Rules to configure and make the package. compile_rules() { local i local DROPBEARS DROPBEARS="dbclient scp" cd $src sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \ -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ options.h ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ CC=uclibc-$TARGET-cc && make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && install -d -m 755 $PWD/_pkg/usr/sbin && install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear && chown root $PWD/_pkg/usr/sbin/dropbear && chgrp 0 $PWD/_pkg/usr/sbin/dropbear && install -d -m 755 $PWD/_pkg/usr/bin && for i in $DROPBEARS ssh; do ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i done } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr $fs/etc/init.d $fs/etc/dropbear cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/sbin $fs/usr ln -s daemon $fs/etc/init.d/dropbear cat > $fs/etc/dropbear/banner <> $1/etc/daemons.conf < /dev/null 2>&1 DSSKEY="$(uuencode -m - < /tmp/mkssh$$)" rm -f /tmp/mkssh$$ fi uudecode - > /tmp/mkssh$$ < /dev/null 2>&1 RSAKEY="$(uuencode -m - < /tmp/mkssh$$)" rm -f /tmp/mkssh$$ fi uudecode - > /tmp/mkssh$$ < Start server during boot
Server options
DSS key
RSA key
You can set your dropbear key
# uuencode -m - < /etc/dropbear/dropbear_dss_host_key
Or your ssh key
# dropbearconvert openssh dropbear /etc/ssh/id_dsa /dev/stdout | uuencode -m -
Default DSS public key is
$DSSPUB
Default RSA public key is
$RSAPUB
EOT }