wok-tiny view dropbear-client/receipt @ rev 183

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