wok-next view dropbear/receipt @ rev 1439

update BUILD_DEPENDS for bastet dropbear enchant gamin htop lame and nano
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 02 13:37:38 2008 +0000 (2008-10-02)
parents c8fcc267ac25
children 084e570de711
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear"
4 VERSION="0.51"
5 CATEGORY="security"
6 SHORT_DESC="Light SSH client and server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 BUILD_DEPENDS="zlib-dev"
10 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
11 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
12 CONFIG_FILES="/etc/dropbear"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 local i
18 local DROPBEARS
19 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
20 cd $src
21 patch -p1 < ../stuff/dropbear-xauth.u
22 ./configure --prefix=/usr $CONFIGURE_ARGS &&
23 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
24 install -d -m 755 $PWD/_pkg/usr/sbin &&
25 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
26 chown root $PWD/_pkg/usr/sbin/dropbear &&
27 chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
28 install -d -m 755 $PWD/_pkg/usr/bin &&
29 for i in $DROPBEARS ssh; do &&
30 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
31 done
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/sbin $fs/usr
40 strip -s $fs/usr/bin/*
41 strip -s $fs/usr/sbin/*
42 # Config file and init script.
43 mkdir -p $fs/etc
44 cp -a stuff/dropbear $fs/etc
45 cp -a stuff/init.d $fs/etc
46 touch $fs/etc/dropbear/dropbear_dss_host_key \
47 $fs/etc/dropbear/dropbear_rsa_host_key
49 # Fix dropbear initscript perms
50 chown -R root.root $fs
51 }
53 # Post message when installing.
54 post_install()
55 {
56 echo -e "\nTo starts $PACKAGE server you can run :\n"
57 echo "/etc/init.d/$PACKAGE start"
58 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
59 }