wok view dropbear/receipt @ rev 6498

Up: libv4l, libv4l-dev to 0.8.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 01 04:09:43 2010 +0000 (2010-10-01)
parents 85210ad650ac
children d1de0ef9ae8b
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"
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/X11R6/bin/xauth|/usr/bin/xauth|' \
26 -e 's|/usr/libexec/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 $PWD/_pkg/usr/sbin &&
31 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
32 chown root $PWD/_pkg/usr/sbin/dropbear &&
33 chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
34 install -d -m 755 $PWD/_pkg/usr/bin &&
35 for i in $DROPBEARS ssh; do
36 ln -s ../sbin/dropbear $PWD/_pkg/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 strip -s $fs/usr/bin/*
47 strip -s $fs/usr/sbin/*
48 # Config file and init script.
49 mkdir -p $fs/etc
50 cp -a stuff/dropbear $fs/etc
51 cp -a stuff/init.d $fs/etc
52 touch $fs/etc/dropbear/dropbear_dss_host_key \
53 $fs/etc/dropbear/dropbear_rsa_host_key
55 # Fix dropbear initscript perms
56 chown -R root.root $fs
57 }
59 # Post message when installing.
60 post_install()
61 {
62 echo -e "\nTo starts $PACKAGE server you can run :\n"
63 echo "/etc/init.d/$PACKAGE start"
64 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
65 }