wok-tiny annotate dropbear-client/receipt @ 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 |
rev | line source |
---|---|
pascal@136 | 1 # SliTaz package receipt. |
pascal@136 | 2 |
pascal@136 | 3 PACKAGE="dropbear-client" |
pascal@136 | 4 SOURCE="dropbear" |
pascal@136 | 5 VERSION="0.53" |
pascal@136 | 6 CATEGORY="security" |
pascal@137 | 7 SHORT_DESC="Light SSH client." |
pascal@136 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@136 | 9 LICENSE="MIT" |
pascal@136 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@137 | 11 DEPENDS="libutil zlib" |
pascal@136 | 12 [ -n "$TARGET" ] || TARGET="i486" |
pascal@137 | 13 BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET zlib-dev" |
pascal@136 | 14 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pascal@136 | 15 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pascal@136 | 16 CONFIG_FILES="/etc/dropbear /etc/daemons.conf /etc/rcS.conf" |
pascal@136 | 17 PROVIDE="ssh scp" |
pascal@136 | 18 TAGS="ssh" |
pascal@136 | 19 |
pascal@136 | 20 # Rules to configure and make the package. |
pascal@136 | 21 compile_rules() |
pascal@136 | 22 { |
pascal@136 | 23 local i |
pascal@136 | 24 local DROPBEARS |
pascal@136 | 25 DROPBEARS="dbclient scp" |
pascal@136 | 26 sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \ |
pascal@136 | 27 -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ |
pascal@136 | 28 options.h |
pascal@136 | 29 ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ |
pascal@137 | 30 CC=uclibc-$TARGET-cc && |
pascal@136 | 31 make PROGRAMS="$DROPBEARS" MULTI=1 && |
pascal@136 | 32 install -d -m 755 $DESTDIR/usr/bin && |
pascal@136 | 33 install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient && |
pascal@136 | 34 chown root $DESTDIR/usr/bin/dbclient && |
pascal@136 | 35 chgrp 0 $DESTDIR/usr/bin/dbclient && |
pascal@136 | 36 install -d -m 755 $DESTDIR/usr/bin && |
pascal@136 | 37 for i in scp ssh; do |
pascal@136 | 38 ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i |
pascal@136 | 39 done |
pascal@136 | 40 } |
pascal@136 | 41 |
pascal@136 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@136 | 43 genpkg_rules() |
pascal@136 | 44 { |
pascal@136 | 45 mkdir -p $fs/usr |
pascal@136 | 46 cp -a $install/usr/bin $fs/usr |
pascal@136 | 47 chown -R root.root $fs |
pascal@136 | 48 } |