wok-tiny view dropbear-client-without-zlib/receipt @ rev 142

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