wok annotate dropbear-pam/receipt @ rev 2186
Add dropbear-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 09:44:28 2009 +0000 (2009-02-09) |
parents | |
children | a21224b0a7b8 |
rev | line source |
---|---|
pascal@2186 | 1 # SliTaz package receipt. |
pascal@2186 | 2 |
pascal@2186 | 3 PACKAGE="dropbear-pam" |
pascal@2186 | 4 VERSION="0.51" |
pascal@2186 | 5 CATEGORY="security" |
pascal@2186 | 6 SHORT_DESC="Light SSH client and server using PAM." |
pascal@2186 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2186 | 8 SOURCE="dropbear" |
pascal@2186 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2186 | 10 DEPENDS="zlib pam" |
pascal@2186 | 11 BUILD_DEPENDS="zlib zlib-dev pam pam-dev" |
pascal@2186 | 12 WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
pascal@2186 | 13 WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" |
pascal@2186 | 14 CONFIG_FILES="/etc/dropbear" |
pascal@2186 | 15 PROVIDE="dropbear:pam" |
pascal@2186 | 16 |
pascal@2186 | 17 # Rules to configure and make the package. |
pascal@2186 | 18 compile_rules() |
pascal@2186 | 19 { |
pascal@2186 | 20 local i |
pascal@2186 | 21 local DROPBEARS |
pascal@2186 | 22 DROPBEARS="dropbearkey dropbearconvert dbclient scp" |
pascal@2186 | 23 cd $src |
pascal@2186 | 24 [ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u |
pascal@2186 | 25 touch done.dropbear-xauth.u |
pascal@2186 | 26 ./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS && |
pascal@2186 | 27 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 && |
pascal@2186 | 28 install -d -m 755 $PWD/_pkg/usr/sbin && |
pascal@2186 | 29 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear && |
pascal@2186 | 30 chown root $PWD/_pkg/usr/sbin/dropbear && |
pascal@2186 | 31 chgrp 0 $PWD/_pkg/usr/sbin/dropbear && |
pascal@2186 | 32 install -d -m 755 $PWD/_pkg/usr/bin && |
pascal@2186 | 33 for i in $DROPBEARS ssh; do |
pascal@2186 | 34 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i |
pascal@2186 | 35 done |
pascal@2186 | 36 } |
pascal@2186 | 37 |
pascal@2186 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2186 | 39 genpkg_rules() |
pascal@2186 | 40 { |
pascal@2186 | 41 mkdir -p $fs/usr |
pascal@2186 | 42 cp -a $_pkg/usr/bin $fs/usr |
pascal@2186 | 43 cp -a $_pkg/usr/sbin $fs/usr |
pascal@2186 | 44 strip -s $fs/usr/bin/* |
pascal@2186 | 45 strip -s $fs/usr/sbin/* |
pascal@2186 | 46 # Config file and init script. |
pascal@2186 | 47 mkdir -p $fs/etc |
pascal@2186 | 48 cp -a stuff/dropbear $fs/etc |
pascal@2186 | 49 cp -a stuff/init.d $fs/etc |
pascal@2186 | 50 touch $fs/etc/dropbear/dropbear_dss_host_key \ |
pascal@2186 | 51 $fs/etc/dropbear/dropbear_rsa_host_key |
pascal@2186 | 52 |
pascal@2186 | 53 # Fix dropbear initscript perms |
pascal@2186 | 54 chown -R root.root $fs |
pascal@2186 | 55 } |
pascal@2186 | 56 |
pascal@2186 | 57 # Post message when installing. |
pascal@2186 | 58 post_install() |
pascal@2186 | 59 { |
pascal@2186 | 60 echo -e "\nTo starts $PACKAGE server you can run :\n" |
pascal@2186 | 61 echo "/etc/init.d/$PACKAGE start" |
pascal@2186 | 62 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
pascal@2186 | 63 } |