wok view dropbear/receipt @ rev 1273

dropbear: declare config files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 18 11:56:29 2008 +0000 (2008-08-18)
parents 8bf276abef41
children fa8bcceddce2
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"
11 CONFIG_FILES="/etc/dropbear"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 local i
17 local DROPBEARS
18 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
19 cd $src
20 patch -p1 < ../stuff/dropbear-xauth.u
21 ./configure --prefix=/usr $CONFIGURE_ARGS
22 make PROGRAMS="dropbear $DROPBEARS" MULTI=1
23 install -d -m 755 $PWD/_pkg/usr/sbin
24 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear
25 chown root $PWD/_pkg/usr/sbin/dropbear
26 chgrp 0 $PWD/_pkg/usr/sbin/dropbear
27 install -d -m 755 $PWD/_pkg/usr/bin
28 for i in $DROPBEARS ssh; do
29 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
30 done
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/sbin $fs/usr
39 strip -s $fs/usr/bin/*
40 strip -s $fs/usr/sbin/*
41 # Config file and init script.
42 mkdir -p $fs/etc
43 cp -a stuff/dropbear $fs/etc
44 cp -a stuff/init.d $fs/etc
45 touch $fs/etc/dropbear/dropbear_dss_host_key \
46 $fs/etc/dropbear/dropbear_rsa_host_key
48 # Fix dropbear initscript perms
49 chown -R root.root $fs
50 }
52 # Post message when installing.
53 post_install()
54 {
55 echo -e "\nTo starts $PACKAGE server you can run :\n"
56 echo "/etc/init.d/$PACKAGE start"
57 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
58 }