# HG changeset patch # User Pascal Bellard # Date 1316189741 -7200 # Node ID d62defb9bb77d34f559f7dac4a0f07b1d8e264c3 # Parent 5b93527a19eb7585f6d85feeaa3519ba1541e301 Add dropbear-without-zlib diff -r 5b93527a19eb -r d62defb9bb77 dropbear-without-zlib/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbear-without-zlib/receipt Fri Sep 16 18:15:41 2011 +0200 @@ -0,0 +1,136 @@ +# SliTaz package receipt. + +PACKAGE="dropbear-without-zlib" +VERSION="0.53" +CATEGORY="security" +SHORT_DESC="Light SSH client and server without compression support." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +DEPENDS="libutil" +[ -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 dropbear" +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 \ + --disable-zlib 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$$ < + +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 +} diff -r 5b93527a19eb -r d62defb9bb77 dropbear/receipt --- a/dropbear/receipt Mon Sep 12 15:43:10 2011 +0200 +++ b/dropbear/receipt Fri Sep 16 18:15:41 2011 +0200 @@ -6,7 +6,7 @@ SHORT_DESC="Light SSH client and server." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" -DEPENDS="libutil" +DEPENDS="libutil zlib" [ -n "$TARGET" ] || TARGET="i486" BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET" SUGGESTED="sftp-server" @@ -27,7 +27,7 @@ -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ options.h ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ - --disable-zlib CC=uclibc-$TARGET-cc && + 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 &&