wok-6.x annotate dropbear/receipt @ rev 956
syslinux: add web entry
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 28 06:21:26 2008 +0000 (2008-06-28) |
parents | 98ca9b0019e7 |
children | 6f2d3769a339 |
rev | line source |
---|---|
pankso@126 | 1 # SliTaz package receipt. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="dropbear" |
pascal@702 | 4 VERSION="0.51" |
pankso@209 | 5 CATEGORY="security" |
pankso@126 | 6 SHORT_DESC="Light SSH client and server." |
pankso@126 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pankso@126 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@126 | 9 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pankso@126 | 10 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pankso@126 | 11 |
pankso@126 | 12 # Rules to configure and make the package. |
pankso@126 | 13 compile_rules() |
pankso@126 | 14 { |
pankso@126 | 15 local i |
pankso@126 | 16 local DROPBEARS |
pankso@126 | 17 DROPBEARS="dropbearkey dropbearconvert dbclient scp" |
pankso@126 | 18 cd $src |
pascal@348 | 19 patch -p1 < ../stuff/dropbear-xauth.u |
pankso@126 | 20 ./configure --prefix=/usr $CONFIGURE_ARGS |
pankso@126 | 21 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 |
pankso@126 | 22 install -d -m 755 $PWD/_pkg/usr/sbin |
pankso@126 | 23 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear |
pankso@126 | 24 chown root $PWD/_pkg/usr/sbin/dropbear |
pankso@126 | 25 chgrp 0 $PWD/_pkg/usr/sbin/dropbear |
pankso@126 | 26 install -d -m 755 $PWD/_pkg/usr/bin |
pankso@126 | 27 for i in $DROPBEARS ssh; do |
pankso@126 | 28 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i |
pankso@126 | 29 done |
pankso@126 | 30 } |
pankso@126 | 31 |
pankso@126 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 33 genpkg_rules() |
pankso@126 | 34 { |
pankso@126 | 35 mkdir -p $fs/usr |
pankso@126 | 36 cp -a $_pkg/usr/bin $fs/usr |
pankso@126 | 37 cp -a $_pkg/usr/sbin $fs/usr |
pankso@126 | 38 strip -s $fs/usr/bin/* |
pankso@126 | 39 strip -s $fs/usr/sbin/* |
pankso@126 | 40 # Config file and init script. |
pankso@126 | 41 mkdir -p $fs/etc |
pankso@126 | 42 cp -a stuff/dropbear $fs/etc |
pankso@126 | 43 cp -a stuff/init.d $fs/etc |
pankso@126 | 44 } |
pankso@126 | 45 |
pankso@126 | 46 # Post message when installing. |
pankso@126 | 47 post_install() |
pankso@126 | 48 { |
pankso@126 | 49 echo -e "\nTo starts $PACKAGE server you can run :\n" |
pankso@126 | 50 echo "/etc/init.d/$PACKAGE start" |
pankso@126 | 51 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
pankso@126 | 52 } |