wok-tiny view dropbear-client/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 1e55ea7da8de
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear-client"
4 SOURCE="dropbear"
5 VERSION="0.53"
6 CATEGORY="security"
7 SHORT_DESC="Light SSH client."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 DEPENDS="libutil zlib busybox-net"
12 [ -n "$TARGET" ] || TARGET="i486"
13 BUILD_DEPENDS="dropbear uclibc-cross-compiler-$TARGET zlib-dev"
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"
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 ./configure --prefix=/usr --without-pam --host=$TARGET-pc-linux-gnu \
33 --disable-lastlog --disable-utmp --disable-utmpx \
34 --disable-wtmp --disable-wtmpx \
35 CC=uclibc-$TARGET-cc &&
36 make PROGRAMS="$DROPBEARS" MULTI=1 &&
37 install -d -m 755 $DESTDIR/usr/bin &&
38 install -m 755 dropbearmulti $DESTDIR/usr/bin/dbclient &&
39 chown root $DESTDIR/usr/bin/dbclient &&
40 chgrp 0 $DESTDIR/usr/bin/dbclient &&
41 install -d -m 755 $DESTDIR/usr/bin &&
42 for i in scp ssh; do
43 ln $DESTDIR/usr/bin/dbclient $DESTDIR/usr/bin/$i
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 chown -R root.root $fs
53 }