# SliTaz package receipt. PACKED_SIZE="76.0K" UNPACKED_SIZE="184.0K" PACKAGE="dropbear-client" SOURCE="dropbear" VERSION="0.53" CATEGORY="security" SHORT_DESC="Light SSH client." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" TARBALL="$SOURCE-$VERSION.tar.gz" DEPENDS="libutil zlib busybox-net" [ -n "$TARGET" ] || TARGET="i486" BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET zlib-dev" 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 scp" TAGS="ssh" # Rules to configure and make the package. compile_rules() { local i local DROPBEARS DROPBEARS="dbclient scp" sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \ -e 's|.*define NON_INETD_MODE.*|/*&*/|' \ -e 's|.*sftp-server.*|/*&*/|' \ -e 's|.*MD5_HMAC.*|/*&*/|' \ -e 's|.*_AES128.*|/*&*/|' \ -e 's|.*TWOFISH128.*|/*&*/|' \ options.h echo "#define DISABLE_X11FWD" >> options.h ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ --disable-lastlog --disable-utmp --disable-utmpx \ --disable-wtmp --disable-wtmpx \ CC=uclibc-$TARGET-cc && make PROGRAMS="$DROPBEARS" MULTI=1 && install -d -m 755 $DESTDIR/usr/bin && install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient && chown root $DESTDIR/usr/bin/dbclient && chgrp 0 $DESTDIR/usr/bin/dbclient && install -d -m 755 $DESTDIR/usr/bin && for i in scp ssh; do ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i done } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr chown -R root.root $fs }