wok view dropbear-pam/receipt @ rev 2198

Up dropbear (0.52)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 14:46:03 2009 +0000 (2009-02-09)
parents ebf2041fbd1f
children 194e6709d5f3
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear-pam"
4 VERSION="0.52"
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 sed -i 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' options.h
25 ./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS &&
26 make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
27 install -d -m 755 $PWD/_pkg/usr/sbin &&
28 install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
29 chown root $PWD/_pkg/usr/sbin/dropbear &&
30 chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
31 install -d -m 755 $PWD/_pkg/usr/bin &&
32 for i in $DROPBEARS ssh; do
33 ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
34 done
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/sbin $fs/usr
43 strip -s $fs/usr/bin/*
44 strip -s $fs/usr/sbin/*
45 # Config file and init script.
46 mkdir -p $fs/etc
47 cp -a stuff/dropbear $fs/etc
48 cp -a stuff/init.d $fs/etc
49 touch $fs/etc/dropbear/dropbear_dss_host_key \
50 $fs/etc/dropbear/dropbear_rsa_host_key
52 # Fix dropbear initscript perms
53 chown -R root.root $fs
54 }
56 # Post message when installing.
57 post_install()
58 {
59 echo -e "\nTo starts $PACKAGE server you can run :\n"
60 echo "/etc/init.d/$PACKAGE start"
61 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
62 }