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