wok-stable annotate dropbear/receipt @ rev 2053
slim: backup config if exist (mainly keep screen config when upgrade)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 17 23:08:54 2009 +0100 (2009-01-17) |
parents | 084e570de711 |
children | ebf2041fbd1f |
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" |
pascal@1439 | 9 BUILD_DEPENDS="zlib-dev" |
pankso@126 | 10 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pankso@126 | 11 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pascal@1273 | 12 CONFIG_FILES="/etc/dropbear" |
pankso@126 | 13 |
pankso@126 | 14 # Rules to configure and make the package. |
pankso@126 | 15 compile_rules() |
pankso@126 | 16 { |
pankso@126 | 17 local i |
pankso@126 | 18 local DROPBEARS |
pankso@126 | 19 DROPBEARS="dropbearkey dropbearconvert dbclient scp" |
pankso@126 | 20 cd $src |
pascal@1454 | 21 [ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u |
pascal@1454 | 22 touch done.dropbear-xauth.u |
pascal@1439 | 23 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@1439 | 24 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && |
pascal@1439 | 25 install -d -m 755 $PWD/_pkg/usr/sbin && |
pascal@1439 | 26 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 27 chown root $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 28 chgrp 0 $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 29 install -d -m 755 $PWD/_pkg/usr/bin && |
pascal@1440 | 30 for i in $DROPBEARS ssh; do |
pankso@126 | 31 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i |
pankso@126 | 32 done |
pankso@126 | 33 } |
pankso@126 | 34 |
pankso@126 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 36 genpkg_rules() |
pankso@126 | 37 { |
pankso@126 | 38 mkdir -p $fs/usr |
pankso@126 | 39 cp -a $_pkg/usr/bin $fs/usr |
pankso@126 | 40 cp -a $_pkg/usr/sbin $fs/usr |
pankso@126 | 41 strip -s $fs/usr/bin/* |
pankso@126 | 42 strip -s $fs/usr/sbin/* |
pankso@126 | 43 # Config file and init script. |
pankso@126 | 44 mkdir -p $fs/etc |
pankso@126 | 45 cp -a stuff/dropbear $fs/etc |
pankso@126 | 46 cp -a stuff/init.d $fs/etc |
erjo@1410 | 47 touch $fs/etc/dropbear/dropbear_dss_host_key \ |
erjo@1410 | 48 $fs/etc/dropbear/dropbear_rsa_host_key |
erjo@1074 | 49 |
erjo@1074 | 50 # Fix dropbear initscript perms |
pankso@1091 | 51 chown -R root.root $fs |
pankso@126 | 52 } |
pankso@126 | 53 |
pankso@126 | 54 # Post message when installing. |
pankso@126 | 55 post_install() |
pankso@126 | 56 { |
pankso@126 | 57 echo -e "\nTo starts $PACKAGE server you can run :\n" |
pankso@126 | 58 echo "/etc/init.d/$PACKAGE start" |
pankso@126 | 59 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
pankso@126 | 60 } |