wok view dropbear/receipt @ rev 2731
Add: wmctrl, xdotool
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Apr 24 07:36:51 2009 +0000 (2009-04-24) |
parents | ebf2041fbd1f |
children | a975000773d0 |
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 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
12 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
13 CONFIG_FILES="/etc/dropbear"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 local i
19 local DROPBEARS
20 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
21 cd $src
22 sed -i 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' options.h
23 ./configure --prefix=/usr --without-pam $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 }