wok-next view dropbear/receipt @ rev 965
Up: pcmanfm (0.4.5)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jun 30 11:48:39 2008 +0200 (2008-06-30) |
parents | 98ca9b0019e7 |
children | 6f2d3769a339 |
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 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 }