wok-tiny annotate dropbear-client-without-zlib/receipt @ rev 168
memtest: 386 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 30 16:35:54 2021 +0000 (2021-04-30) |
parents | a28c45a86936 |
children | 1e55ea7da8de |
rev | line source |
---|---|
pascal@137 | 1 # SliTaz package receipt. |
pascal@137 | 2 |
pascal@137 | 3 PACKAGE="dropbear-client-without-zlib" |
pascal@137 | 4 SOURCE="dropbear" |
pascal@137 | 5 VERSION="0.53" |
pascal@137 | 6 CATEGORY="security" |
pascal@137 | 7 SHORT_DESC="Light SSH client without compression support." |
pascal@137 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@137 | 9 LICENSE="MIT" |
pascal@137 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@157 | 11 DEPENDS="libutil busybox-net" |
pascal@137 | 12 [ -n "$TARGET" ] || TARGET="i486" |
pascal@137 | 13 BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET" |
pascal@137 | 14 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pascal@137 | 15 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pascal@137 | 16 CONFIG_FILES="/etc/dropbear /etc/daemons.conf /etc/rcS.conf" |
pascal@137 | 17 PROVIDE="ssh scp dropbear-client" |
pascal@137 | 18 TAGS="ssh" |
pascal@137 | 19 |
pascal@137 | 20 # Rules to configure and make the package. |
pascal@137 | 21 compile_rules() |
pascal@137 | 22 { |
pascal@137 | 23 local i |
pascal@137 | 24 local DROPBEARS |
pascal@137 | 25 DROPBEARS="dbclient scp" |
pascal@137 | 26 sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \ |
pascal@163 | 27 -e 's|.*define NON_INETD_MODE.*|/*&*/|' \ |
pascal@163 | 28 -e 's|.*sftp-server.*|/*&*/|' \ |
pascal@138 | 29 -e 's|.*MD5_HMAC.*|/*&*/|' \ |
pascal@138 | 30 -e 's|.*_AES128.*|/*&*/|' \ |
pascal@138 | 31 -e 's|.*TWOFISH128.*|/*&*/|' \ |
pascal@137 | 32 options.h |
pascal@163 | 33 echo "#define DISABLE_X11FWD" >> options.h |
pascal@137 | 34 ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \ |
pascal@138 | 35 --disable-lastlog --disable-utmp --disable-utmpx \ |
pascal@138 | 36 --disable-wtmp --disable-wtmpx \ |
pascal@163 | 37 --disable-pututline --disable-pututxline \ |
pascal@137 | 38 --disable-zlib CC=uclibc-$TARGET-cc && |
pascal@137 | 39 make PROGRAMS="$DROPBEARS" MULTI=1 && |
pascal@137 | 40 install -d -m 755 $DESTDIR/usr/bin && |
pascal@137 | 41 install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient && |
pascal@137 | 42 chown root $DESTDIR/usr/bin/dbclient && |
pascal@137 | 43 chgrp 0 $DESTDIR/usr/bin/dbclient && |
pascal@137 | 44 install -d -m 755 $DESTDIR/usr/bin && |
pascal@137 | 45 for i in scp ssh; do |
pascal@137 | 46 ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i |
pascal@137 | 47 done |
pascal@137 | 48 } |
pascal@137 | 49 |
pascal@137 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@137 | 51 genpkg_rules() |
pascal@137 | 52 { |
pascal@137 | 53 mkdir -p $fs/usr |
pascal@137 | 54 cp -a $install/usr/bin $fs/usr |
pascal@137 | 55 chown -R root.root $fs |
pascal@137 | 56 } |