wok-tiny annotate dropbear-client-without-zlib/receipt @ rev 157

Add geninitramfs & busybox-net
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 28 16:03:43 2020 +0100 (2020-02-28)
parents c0783b759e56
children 86fb26b8cd18
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@137 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@137 31 options.h
pascal@137 32 [ -d $WOK/zlib/taz ] || cook zlib
pascal@137 33 ln -s $WOK/zlib/taz/*/fs/usr/lib/* /usr/share/uclibc-cross-compiler-$TARGET/lib/ 2> /dev/null
pascal@137 34 ln -s /usr/include/z*.h /usr/share/uclibc-cross-compiler-$TARGET/include/ 2> /dev/null
pascal@137 35 ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \
pascal@138 36 --disable-lastlog --disable-utmp --disable-utmpx \
pascal@138 37 --disable-wtmp --disable-wtmpx \
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 }