wok view dropbear-pam/receipt @ rev 3611

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