wok-tiny view dropbear-client-without-zlib/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 86fb26b8cd18
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear-client-without-zlib"
4 SOURCE="dropbear"
5 VERSION="0.53"
6 CATEGORY="security"
7 GROUP="network"
8 SHORT_DESC="Light SSH client without compression support."
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="MIT"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 DEPENDS="libutil busybox-net"
13 [ -n "$TARGET" ] || TARGET="i486"
14 BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET"
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 dropbear-client"
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|.*define NON_INETD_MODE.*|/*&*/|' \
29 -e 's|.*sftp-server.*|/*&*/|' \
30 -e 's|.*MD5_HMAC.*|/*&*/|' \
31 -e 's|.*_AES128.*|/*&*/|' \
32 -e 's|.*TWOFISH128.*|/*&*/|' \
33 options.h
34 echo "#define DISABLE_X11FWD" >> options.h
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-pututline --disable-pututxline \
39 --disable-zlib CC=uclibc-$TARGET-cc &&
40 make PROGRAMS="$DROPBEARS" MULTI=1 &&
41 install -d -m 755 $DESTDIR/usr/bin &&
42 install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient &&
43 chown root $DESTDIR/usr/bin/dbclient &&
44 chgrp 0 $DESTDIR/usr/bin/dbclient &&
45 install -d -m 755 $DESTDIR/usr/bin &&
46 for i in scp ssh; do
47 ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i
48 done
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr
55 cp -a $install/usr/bin $fs/usr
56 chown -R root.root $fs
57 }