wok-4.x view dropbear/receipt @ rev 602
Add apps translation to locale-pack
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 17 22:16:16 2008 +0200 (2008-04-17) |
parents | ccf126429a43 |
children | cd39ea872fb3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear"
4 VERSION="0.50"
5 CATEGORY="security"
6 SHORT_DESC="Light SSH client and server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
10 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 local i
16 local DROPBEARS
17 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
18 cd $src
19 patch -p1 < ../stuff/dropbear-xauth.u
20 ./configure --prefix=/usr $CONFIGURE_ARGS
21 make PROGRAMS="dropbear $DROPBEARS" MULTI=1
22 install -d -m 755 $PWD/_pkg/usr/sbin
23 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear
24 chown root $PWD/_pkg/usr/sbin/dropbear
25 chgrp 0 $PWD/_pkg/usr/sbin/dropbear
26 install -d -m 755 $PWD/_pkg/usr/bin
27 for i in $DROPBEARS ssh; do
28 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
29 done
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 strip -s $fs/usr/bin/*
39 strip -s $fs/usr/sbin/*
40 # Config file and init script.
41 mkdir -p $fs/etc
42 cp -a stuff/dropbear $fs/etc
43 cp -a stuff/init.d $fs/etc
44 }
46 # Post message when installing.
47 post_install()
48 {
49 echo -e "\nTo starts $PACKAGE server you can run :\n"
50 echo "/etc/init.d/$PACKAGE start"
51 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
52 }