wok-tiny rev 136
Add dropbear-client
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 05 15:58:24 2018 +0100 (2018-03-05) |
parents | 8ba3b695a2b7 |
children | 817547059bd8 |
files | dropbear-client/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dropbear-client/receipt Mon Mar 05 15:58:24 2018 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dropbear-client" 1.7 +SOURCE="dropbear" 1.8 +VERSION="0.53" 1.9 +CATEGORY="security" 1.10 +SHORT_DESC="Light SSH client without compression support." 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +LICENSE="MIT" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +DEPENDS="libutil" 1.15 +[ -n "$TARGET" ] || TARGET="i486" 1.16 +BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET" 1.17 +WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" 1.18 +WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" 1.19 +CONFIG_FILES="/etc/dropbear /etc/daemons.conf /etc/rcS.conf" 1.20 +PROVIDE="ssh scp" 1.21 +TAGS="ssh" 1.22 + 1.23 +# Rules to configure and make the package. 1.24 +compile_rules() 1.25 +{ 1.26 + local i 1.27 + local DROPBEARS 1.28 + DROPBEARS="dbclient scp" 1.29 + sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \ 1.30 + -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ 1.31 + options.h 1.32 + ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ 1.33 + --disable-zlib CC=uclibc-$TARGET-cc && 1.34 + make PROGRAMS="$DROPBEARS" MULTI=1 && 1.35 + install -d -m 755 $DESTDIR/usr/bin && 1.36 + install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient && 1.37 + chown root $DESTDIR/usr/bin/dbclient && 1.38 + chgrp 0 $DESTDIR/usr/bin/dbclient && 1.39 + install -d -m 755 $DESTDIR/usr/bin && 1.40 + for i in scp ssh; do 1.41 + ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i 1.42 + done 1.43 +} 1.44 + 1.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 +genpkg_rules() 1.47 +{ 1.48 + mkdir -p $fs/usr 1.49 + cp -a $install/usr/bin $fs/usr 1.50 + chown -R root.root $fs 1.51 +}