wok-tiny annotate dropbear-client/receipt @ rev 175
Up linux 2.6.20 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 14 14:47:52 2021 +0000 (2021-07-14) |
parents | c0783b759e56 |
children | 1e55ea7da8de |
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@157 | 11 DEPENDS="libutil zlib busybox-net" |
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@138 | 28 -e 's|.*MD5_HMAC.*|/*&*/|' \ |
pascal@138 | 29 -e 's|.*_AES128.*|/*&*/|' \ |
pascal@138 | 30 -e 's|.*TWOFISH128.*|/*&*/|' \ |
pascal@136 | 31 options.h |
pascal@136 | 32 ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ |
pascal@138 | 33 --disable-lastlog --disable-utmp --disable-utmpx \ |
pascal@138 | 34 --disable-wtmp --disable-wtmpx \ |
pascal@137 | 35 CC=uclibc-$TARGET-cc && |
pascal@136 | 36 make PROGRAMS="$DROPBEARS" MULTI=1 && |
pascal@136 | 37 install -d -m 755 $DESTDIR/usr/bin && |
pascal@136 | 38 install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient && |
pascal@136 | 39 chown root $DESTDIR/usr/bin/dbclient && |
pascal@136 | 40 chgrp 0 $DESTDIR/usr/bin/dbclient && |
pascal@136 | 41 install -d -m 755 $DESTDIR/usr/bin && |
pascal@136 | 42 for i in scp ssh; do |
pascal@136 | 43 ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i |
pascal@136 | 44 done |
pascal@136 | 45 } |
pascal@136 | 46 |
pascal@136 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@136 | 48 genpkg_rules() |
pascal@136 | 49 { |
pascal@136 | 50 mkdir -p $fs/usr |
pascal@136 | 51 cp -a $install/usr/bin $fs/usr |
pascal@136 | 52 chown -R root.root $fs |
pascal@136 | 53 } |