wok-6.x view dropbear/receipt @ rev 1794

Apache: update ssl config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 30 21:21:48 2008 +0000 (2008-11-30)
parents 084e570de711
children ebf2041fbd1f
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 [ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u
22 touch done.dropbear-xauth.u
23 ./configure --prefix=/usr $CONFIGURE_ARGS &&
24 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
25 install -d -m 755 $PWD/_pkg/usr/sbin &&
26 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
27 chown root $PWD/_pkg/usr/sbin/dropbear &&
28 chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
29 install -d -m 755 $PWD/_pkg/usr/bin &&
30 for i in $DROPBEARS ssh; do
31 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
32 done
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/sbin $fs/usr
41 strip -s $fs/usr/bin/*
42 strip -s $fs/usr/sbin/*
43 # Config file and init script.
44 mkdir -p $fs/etc
45 cp -a stuff/dropbear $fs/etc
46 cp -a stuff/init.d $fs/etc
47 touch $fs/etc/dropbear/dropbear_dss_host_key \
48 $fs/etc/dropbear/dropbear_rsa_host_key
50 # Fix dropbear initscript perms
51 chown -R root.root $fs
52 }
54 # Post message when installing.
55 post_install()
56 {
57 echo -e "\nTo starts $PACKAGE server you can run :\n"
58 echo "/etc/init.d/$PACKAGE start"
59 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
60 }