wok-4.x view dropbear/receipt @ rev 4122
Fix: libgomp VERSION must match gcc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Sep 20 13:46:14 2009 +0200 (2009-09-20) |
parents | a21224b0a7b8 |
children | 85210ad650ac |
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbear"
4 VERSION="0.52"
5 CATEGORY="security"
6 SHORT_DESC="Light SSH client and server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 DEPENDS="zlib"
10 BUILD_DEPENDS="zlib-dev"
11 SUGGESTED="sftp-server"
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"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 local i
20 local DROPBEARS
21 DROPBEARS="dropbearkey dropbearconvert dbclient scp"
22 cd $src
23 sed -i -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \
24 -e 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \
25 options.h
26 ./configure --prefix=/usr --without-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 }