wok-6.x view dropbear/receipt @ rev 11563
Add pysdm form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:19:21 2011 +0100 (2011-12-25) |
parents | 39711785320f |
children | 890a8d86a257 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear"
4 VERSION="2011.54"
5 CATEGORY="security"
6 SHORT_DESC="Light SSH client and server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 DEPENDS="zlib"
10 BUILD_DEPENDS="zlib-dev"
11 SUGGESTED="sftp-server"
12 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
13 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
14 CONFIG_FILES="/etc/dropbear"
15 PROVIDE="ssh"
16 TAGS="ssh"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 local i
22 local DROPBEARS
23 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
24 cd $src
25 sed -i -e 's|/usr/.*/xauth|/usr/bin/xauth|' \
26 -e 's|/usr/.*/sftp-server|/usr/sbin/sftp-server|' \
27 options.h
28 ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS &&
29 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
30 install -d -m 755 $DESTDIR/usr/sbin &&
31 install -m 755 dropbearmulti $DESTDIR/usr/sbin/dropbear &&
32 chown root $DESTDIR/usr/sbin/dropbear &&
33 chgrp 0 $DESTDIR/usr/sbin/dropbear &&
34 install -d -m 755 $DESTDIR/usr/bin &&
35 for i in $DROPBEARS ssh; do
36 ln -s ../sbin/dropbear $DESTDIR/usr/bin/$i
37 done
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
46 # Config file and init script.
47 mkdir -p $fs/etc
48 cp -a $stuff/dropbear $fs/etc
49 cp -a $stuff/init.d $fs/etc
50 cp -a $stuff/sshx $fs/usr/bin
51 touch $fs/etc/dropbear/dropbear_dss_host_key \
52 $fs/etc/dropbear/dropbear_rsa_host_key
54 # Fix dropbear initscript perms
55 chown -R root.root $fs
56 }
58 # Post message when installing.
59 post_install()
60 {
61 while read dropbear openssh ; do
62 [ -s $openssh ] || continue
63 dropbearconvert openssh dropbear $1$openssh $1$dropbear
64 dropbearkey -y -f $1$dropbear | grep Fingerprint
65 done <<EOT
66 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key
67 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key
68 EOT
69 echo -e "\nTo starts $PACKAGE server you can run :\n"
70 echo "/etc/init.d/$PACKAGE start"
71 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
72 }