wok annotate dropbear/receipt @ rev 10467
gst-plugins-good: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 11:40:06 2011 +0200 (2011-05-25) |
parents | 02bbaa9d12ba |
children | 409cb72cb3e0 |
rev | line source |
---|---|
pankso@126 | 1 # SliTaz package receipt. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="dropbear" |
slaxemulator@9833 | 4 VERSION="0.53.1" |
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@2186 | 9 DEPENDS="zlib" |
pascal@1439 | 10 BUILD_DEPENDS="zlib-dev" |
pascal@3628 | 11 SUGGESTED="sftp-server" |
pankso@126 | 12 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pankso@126 | 13 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pascal@1273 | 14 CONFIG_FILES="/etc/dropbear" |
pascal@4904 | 15 PROVIDE="ssh" |
jozee@4934 | 16 TAGS="ssh" |
pankso@126 | 17 |
pankso@126 | 18 # Rules to configure and make the package. |
pankso@126 | 19 compile_rules() |
pankso@126 | 20 { |
pankso@126 | 21 local i |
pankso@126 | 22 local DROPBEARS |
pankso@126 | 23 DROPBEARS="dropbearkey dropbearconvert dbclient scp" |
pankso@126 | 24 cd $src |
pascal@9432 | 25 sed -i -e 's|/usr/.*/xauth|/usr/bin/xauth|' \ |
pascal@9432 | 26 -e 's|/usr/.*/sftp-server|/usr/sbin/sftp-server|' \ |
pascal@3628 | 27 options.h |
pascal@2186 | 28 ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS && |
pascal@1439 | 29 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && |
pascal@1439 | 30 install -d -m 755 $PWD/_pkg/usr/sbin && |
pascal@1439 | 31 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 32 chown root $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 33 chgrp 0 $PWD/_pkg/usr/sbin/dropbear && |
pascal@1439 | 34 install -d -m 755 $PWD/_pkg/usr/bin && |
pascal@1440 | 35 for i in $DROPBEARS ssh; do |
pankso@126 | 36 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i |
pankso@126 | 37 done |
pankso@126 | 38 } |
pankso@126 | 39 |
pankso@126 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 41 genpkg_rules() |
pankso@126 | 42 { |
pankso@126 | 43 mkdir -p $fs/usr |
pankso@126 | 44 cp -a $_pkg/usr/bin $fs/usr |
pankso@126 | 45 cp -a $_pkg/usr/sbin $fs/usr |
pankso@126 | 46 # Config file and init script. |
pankso@126 | 47 mkdir -p $fs/etc |
pankso@126 | 48 cp -a stuff/dropbear $fs/etc |
pankso@126 | 49 cp -a stuff/init.d $fs/etc |
erjo@1410 | 50 touch $fs/etc/dropbear/dropbear_dss_host_key \ |
erjo@1410 | 51 $fs/etc/dropbear/dropbear_rsa_host_key |
erjo@1074 | 52 |
erjo@1074 | 53 # Fix dropbear initscript perms |
pankso@1091 | 54 chown -R root.root $fs |
pankso@126 | 55 } |
pankso@126 | 56 |
pankso@126 | 57 # Post message when installing. |
pankso@126 | 58 post_install() |
pankso@126 | 59 { |
pascal@7304 | 60 while read dropbear openssh ; do |
pascal@7304 | 61 [ -s $openssh ] || continue |
pascal@7304 | 62 dropbearconvert openssh dropbear $1$openssh $1$dropbear |
pascal@7304 | 63 dropbearkey -y -f $1$dropbear | grep Fingerprint |
pascal@7304 | 64 done <<EOT |
pascal@7304 | 65 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 66 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7304 | 67 EOT |
pankso@126 | 68 echo -e "\nTo starts $PACKAGE server you can run :\n" |
pankso@126 | 69 echo "/etc/init.d/$PACKAGE start" |
pankso@126 | 70 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
pankso@126 | 71 } |