wok view dropbear/receipt @ rev 1186

Add unixODBC
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 04 13:28:16 2008 +0000 (2008-08-04)
parents 6f2d3769a339
children f4c5b982b05e
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
45 # Fix dropbear initscript perms
46 chown -R root.root $fs
47 }
49 # Post message when installing.
50 post_install()
51 {
52 echo -e "\nTo starts $PACKAGE server you can run :\n"
53 echo "/etc/init.d/$PACKAGE start"
54 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
55 }