wok view dropbear/receipt @ rev 4916
Add zsync
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 15 09:50:33 2010 +0100 (2010-02-15) |
parents | a975000773d0 |
children | 74a6a43bf614 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear"
4 VERSION="0.52"
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"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 local i
21 local DROPBEARS
22 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
23 cd $src
24 sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \
25 -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
26 options.h
27 ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS &&
28 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
29 install -d -m 755 $PWD/_pkg/usr/sbin &&
30 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
31 chown root $PWD/_pkg/usr/sbin/dropbear &&
32 chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
33 install -d -m 755 $PWD/_pkg/usr/bin &&
34 for i in $DROPBEARS ssh; do
35 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
36 done
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/sbin $fs/usr
45 strip -s $fs/usr/bin/*
46 strip -s $fs/usr/sbin/*
47 # Config file and init script.
48 mkdir -p $fs/etc
49 cp -a stuff/dropbear $fs/etc
50 cp -a stuff/init.d $fs/etc
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 echo -e "\nTo starts $PACKAGE server you can run :\n"
62 echo "/etc/init.d/$PACKAGE start"
63 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
64 }