wok annotate dropbear/receipt @ rev 11752
xine-ui: Update desktop file and remove old and ugly icon
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 12:03:23 2012 +0100 (2012-02-22) |
parents | 3cfda88ee539 |
children | fa1321eb3c4e |
rev | line source |
---|---|
pankso@126 | 1 # SliTaz package receipt. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="dropbear" |
devl547@11263 | 4 VERSION="2011.54" |
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@11595 | 10 BUILD_DEPENDS="zlib zlib-dev pam pam-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@11595 | 27 -e 's|ENABLE_SVR_PAM_AUTH|ENABLE_SVR_PASSWORD_AUTH|' \ |
pascal@3628 | 28 options.h |
pascal@2186 | 29 ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS && |
pascal@1439 | 30 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && |
slaxemulator@11100 | 31 install -d -m 755 $DESTDIR/usr/sbin && |
slaxemulator@11100 | 32 install -m 755 dropbearmulti $DESTDIR/usr/sbin/dropbear && |
slaxemulator@11100 | 33 chown root $DESTDIR/usr/sbin/dropbear && |
slaxemulator@11100 | 34 chgrp 0 $DESTDIR/usr/sbin/dropbear && |
pascal@11595 | 35 sed -i 's|ENABLE_SVR_PASSWORD_AUTH|ENABLE_SVR_PAM_AUTH|' \ |
pascal@11595 | 36 options.h |
pascal@11595 | 37 ./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS && |
pascal@11595 | 38 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && |
pascal@11595 | 39 install -m 755 dropbearmulti $DESTDIR/usr/sbin/dropbear-pam && |
pascal@11595 | 40 chown root $DESTDIR/usr/sbin/dropbear-pam && |
pascal@11595 | 41 chgrp 0 $DESTDIR/usr/sbin/dropbear-pam && |
slaxemulator@11100 | 42 install -d -m 755 $DESTDIR/usr/bin && |
pascal@1440 | 43 for i in $DROPBEARS ssh; do |
slaxemulator@11100 | 44 ln -s ../sbin/dropbear $DESTDIR/usr/bin/$i |
pankso@126 | 45 done |
pankso@126 | 46 } |
pankso@126 | 47 |
pankso@126 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@126 | 49 genpkg_rules() |
pankso@126 | 50 { |
pankso@126 | 51 mkdir -p $fs/usr |
pankso@126 | 52 cp -a $_pkg/usr/bin $fs/usr |
pankso@126 | 53 cp -a $_pkg/usr/sbin $fs/usr |
pascal@11595 | 54 rm -f $fs/usr/sbin/dropbear-pam |
pankso@126 | 55 # Config file and init script. |
pankso@126 | 56 mkdir -p $fs/etc |
slaxemulator@11100 | 57 cp -a $stuff/dropbear $fs/etc |
slaxemulator@11100 | 58 cp -a $stuff/init.d $fs/etc |
slaxemulator@11100 | 59 cp -a $stuff/sshx $fs/usr/bin |
erjo@1410 | 60 touch $fs/etc/dropbear/dropbear_dss_host_key \ |
erjo@1410 | 61 $fs/etc/dropbear/dropbear_rsa_host_key |
erjo@1074 | 62 |
erjo@1074 | 63 # Fix dropbear initscript perms |
pankso@1091 | 64 chown -R root.root $fs |
pankso@126 | 65 } |
pankso@126 | 66 |
pankso@126 | 67 # Post message when installing. |
pankso@126 | 68 post_install() |
pankso@126 | 69 { |
pascal@7304 | 70 while read dropbear openssh ; do |
pascal@7304 | 71 [ -s $openssh ] || continue |
pascal@7304 | 72 dropbearconvert openssh dropbear $1$openssh $1$dropbear |
pascal@7304 | 73 dropbearkey -y -f $1$dropbear | grep Fingerprint |
pascal@7304 | 74 done <<EOT |
pascal@7304 | 75 /etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key |
pascal@7305 | 76 /etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key |
pascal@7304 | 77 EOT |
pankso@126 | 78 echo -e "\nTo starts $PACKAGE server you can run :\n" |
pankso@126 | 79 echo "/etc/init.d/$PACKAGE start" |
pankso@126 | 80 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
pankso@126 | 81 } |