wok-6.x diff dropbear/receipt @ rev 151

Add : Midnight Commander, sudo.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jan 26 00:27:46 2008 +0100 (2008-01-26)
parents
children cdac43c3f44f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbear/receipt	Sat Jan 26 00:27:46 2008 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dropbear"
     1.7 +VERSION="0.50"
     1.8 +CATEGORY="base-apps"
     1.9 +SHORT_DESC="Light SSH client and server."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
    1.13 +WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	local i
    1.19 +	local DROPBEARS
    1.20 +	DROPBEARS="dropbearkey dropbearconvert dbclient scp"
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr $CONFIGURE_ARGS
    1.23 +	make PROGRAMS="dropbear $DROPBEARS" MULTI=1
    1.24 +	install -d -m 755 $PWD/_pkg/usr/sbin
    1.25 +	install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear
    1.26 +	chown root $PWD/_pkg/usr/sbin/dropbear
    1.27 +	chgrp 0 $PWD/_pkg/usr/sbin/dropbear
    1.28 +	install -d -m 755 $PWD/_pkg/usr/bin
    1.29 +	for i in $DROPBEARS ssh; do
    1.30 +		ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
    1.31 +	done
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr
    1.38 +	cp -a $_pkg/usr/bin $fs/usr
    1.39 +	cp -a $_pkg/usr/sbin $fs/usr
    1.40 +	strip -s $fs/usr/bin/*
    1.41 +	strip -s $fs/usr/sbin/*
    1.42 +	# Config file and init script.
    1.43 +	mkdir -p $fs/etc
    1.44 +	cp -a stuff/dropbear $fs/etc
    1.45 +	cp -a stuff/init.d $fs/etc
    1.46 +}
    1.47 +
    1.48 +# Post message when installing.
    1.49 +post_install()
    1.50 +{
    1.51 +	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.52 +	echo "/etc/init.d/$PACKAGE start"
    1.53 +	echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
    1.54 +}