wok-tiny rev 137

Add dropbear-client-without-zlib
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 05 16:43:41 2018 +0100 (2018-03-05)
parents f16721d1439f
children c0783b759e56
files dropbear-client-without-zlib/receipt dropbear-client/receipt fbvnc-ssh/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbear-client-without-zlib/receipt	Mon Mar 05 16:43:41 2018 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dropbear-client-without-zlib"
     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 dropbear-client"
    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 +	[ -d $WOK/zlib/taz ] || cook zlib
    1.33 +	ln -s $WOK/zlib/taz/*/fs/usr/lib/* /usr/share/uclibc-cross-compiler-$TARGET/lib/ 2> /dev/null
    1.34 +	ln -s /usr/include/z*.h /usr/share/uclibc-cross-compiler-$TARGET/include/ 2> /dev/null
    1.35 +	./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \
    1.36 +		--disable-zlib CC=uclibc-$TARGET-cc &&
    1.37 +	make PROGRAMS="$DROPBEARS" MULTI=1 &&
    1.38 +	install -d -m 755 $DESTDIR/usr/bin &&
    1.39 +	install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient &&
    1.40 +	chown root $DESTDIR/usr/bin/dbclient &&
    1.41 +	chgrp 0 $DESTDIR/usr/bin/dbclient &&
    1.42 +	install -d -m 755 $DESTDIR/usr/bin &&
    1.43 +	for i in scp ssh; do
    1.44 +		ln  $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i
    1.45 +	done
    1.46 +}
    1.47 +
    1.48 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.49 +genpkg_rules()
    1.50 +{
    1.51 +	mkdir -p $fs/usr
    1.52 +	cp -a $install/usr/bin $fs/usr
    1.53 +	chown -R root.root $fs
    1.54 +}
     2.1 --- a/dropbear-client/receipt	Mon Mar 05 15:58:24 2018 +0100
     2.2 +++ b/dropbear-client/receipt	Mon Mar 05 16:43:41 2018 +0100
     2.3 @@ -4,13 +4,13 @@
     2.4  SOURCE="dropbear"
     2.5  VERSION="0.53"
     2.6  CATEGORY="security"
     2.7 -SHORT_DESC="Light SSH client without compression support."
     2.8 +SHORT_DESC="Light SSH client."
     2.9  MAINTAINER="pascal.bellard@slitaz.org"
    2.10  LICENSE="MIT"
    2.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    2.12 -DEPENDS="libutil"
    2.13 +DEPENDS="libutil zlib"
    2.14  [ -n "$TARGET" ] || TARGET="i486"
    2.15 -BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET"
    2.16 +BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET zlib-dev"
    2.17  WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
    2.18  WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
    2.19  CONFIG_FILES="/etc/dropbear /etc/daemons.conf /etc/rcS.conf"
    2.20 @@ -27,7 +27,7 @@
    2.21  		-e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
    2.22  		options.h
    2.23  	./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \
    2.24 -		--disable-zlib CC=uclibc-$TARGET-cc &&
    2.25 +		CC=uclibc-$TARGET-cc &&
    2.26  	make PROGRAMS="$DROPBEARS" MULTI=1 &&
    2.27  	install -d -m 755 $DESTDIR/usr/bin &&
    2.28  	install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient &&
     3.1 --- a/fbvnc-ssh/receipt	Mon Mar 05 15:58:24 2018 +0100
     3.2 +++ b/fbvnc-ssh/receipt	Mon Mar 05 16:43:41 2018 +0100
     3.3 @@ -8,7 +8,7 @@
     3.4  MAINTAINER="pascal.bellard@slitaz.org"
     3.5  LICENSE="BSD"
     3.6  WEB_SITE="http://tiny.slitaz.org/"
     3.7 -DEPENDS="base-tiny fbvnc-config dropbear"
     3.8 +DEPENDS="base-tiny fbvnc-config dropbear-client"
     3.9  
    3.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.11  genpkg_rules()