wok rev 126

Add : dropbear, isapnptools-*, lzma
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jan 06 14:01:40 2008 +0100 (2008-01-06)
parents 191c8f0c8bb3
children 587c8b5a3803
files dropbear/receipt dropbear/stuff/dropbear/banner dropbear/stuff/init.d/dropbear isapnptools-dev/receipt isapnptools/receipt lzma/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbear/receipt	Sun Jan 06 14:01:40 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 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dropbear/stuff/dropbear/banner	Sun Jan 06 14:01:40 2008 +0100
     2.3 @@ -0,0 +1,2 @@
     2.4 +
     2.5 +Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/dropbear/stuff/init.d/dropbear	Sun Jan 06 14:01:40 2008 +0100
     3.3 @@ -0,0 +1,64 @@
     3.4 +#!/bin/sh
     3.5 +# /etc/init.d/dropbear : Start, stop and restart SSH server on SliTaz, at 
     3.6 +# boot time or with the command line.
     3.7 +#
     3.8 +# To start SSH server at boot time, just put dropbear in the $RUN_DAEMONS
     3.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    3.10 +#
    3.11 +. /etc/init.d/rc.functions
    3.12 +. /etc/daemons.conf
    3.13 +
    3.14 +NAME=Dropbear
    3.15 +DESC="SSH server"
    3.16 +DAEMON=/usr/sbin/dropbear
    3.17 +OPTIONS=$DROPBEAR_OPTIONS
    3.18 +PIDFILE=/var/run/dropbear.pid
    3.19 +
    3.20 +case "$1" in
    3.21 +  start)
    3.22 +    # We need rsa and dss host key file to start dropbear.
    3.23 +    if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
    3.24 +      echo "Generating $NAME rsa key... "
    3.25 +      dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
    3.26 +    fi
    3.27 +    if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
    3.28 +      echo "Generating $NAME dss key... "
    3.29 +      dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
    3.30 +    fi
    3.31 +    if [ -f $PIDFILE ] ; then
    3.32 +      echo "$NAME already running."
    3.33 +      exit 1
    3.34 +    fi
    3.35 +    echo -n "Starting $DESC: $NAME... "
    3.36 +    $DAEMON $OPTIONS
    3.37 +    status
    3.38 +    ;;
    3.39 +  stop)
    3.40 +    if [ ! -f $PIDFILE ] ; then
    3.41 +      echo "$NAME is not running."
    3.42 +      exit 1
    3.43 +    fi
    3.44 +    echo -n "Stopping $DESC: $NAME... "
    3.45 +    kill `cat $PIDFILE`
    3.46 +    status
    3.47 +    ;;
    3.48 +  restart)
    3.49 +    if [ ! -f $PIDFILE ] ; then
    3.50 +      echo "$NAME is not running."
    3.51 +      exit 1
    3.52 +    fi
    3.53 +    echo -n "Restarting $DESC: $NAME... "
    3.54 +    kill `cat $PIDFILE`
    3.55 +    sleep 2
    3.56 +    $DAEMON $OPTIONS
    3.57 +    status
    3.58 +    ;;
    3.59 +  *)
    3.60 +    echo ""
    3.61 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    3.62 +    echo ""
    3.63 +    exit 1
    3.64 +    ;;
    3.65 +esac
    3.66 +
    3.67 +exit 0
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/isapnptools-dev/receipt	Sun Jan 06 14:01:40 2008 +0100
     4.3 @@ -0,0 +1,17 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="isapnptools-dev"
     4.7 +VERSION="1.27"
     4.8 +CATEGORY="extra"
     4.9 +SHORT_DESC="ISA Plug-And-Play configuration devel files."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +WANTED="isapnptools"
    4.12 +WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/"
    4.13 +
    4.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.15 +genpkg_rules()
    4.16 +{
    4.17 +	mkdir $fs/usr
    4.18 +	cp -a $_pkg/usr/include $fs/usr
    4.19 +	cp -a $_pkg/usr/lib $fs/usr
    4.20 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/isapnptools/receipt	Sun Jan 06 14:01:40 2008 +0100
     5.3 @@ -0,0 +1,29 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="isapnptools"
     5.7 +VERSION="1.27"
     5.8 +CATEGORY="extra"
     5.9 +SHORT_DESC="ISA Plug-And-Play configuration."
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +TARBALL="$PACKAGE-$VERSION.tgz"
    5.12 +WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/"
    5.13 +WGET_URL="ftp://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
    5.14 +
    5.15 +# Rules to configure and make the package.
    5.16 +compile_rules()
    5.17 +{
    5.18 +	cd $src
    5.19 +	./configure --prefix=/usr --bindir=/bin \
    5.20 +	--libexecdir=/usr/bin --mandir=/usr/share/man \
    5.21 +	$CONFIGURE_ARGS
    5.22 +	make
    5.23 +	make DESTDIR=$PWD/_pkg install
    5.24 +}
    5.25 +
    5.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.27 +genpkg_rules()
    5.28 +{
    5.29 +	# move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
    5.30 +	cp -a $_pkg/usr/sbin $fs
    5.31 +	strip -s $fs/sbin/*
    5.32 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/lzma/receipt	Sun Jan 06 14:01:40 2008 +0100
     6.3 @@ -0,0 +1,27 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="lzma"
     6.7 +VERSION="4.22"
     6.8 +CATEGORY="extra"
     6.9 +SHORT_DESC="Compressor with a high compression ratio."
    6.10 +MAINTAINER="pascal.bellard@slitaz.org"
    6.11 +TARBALL="lzma422.tar.bz2"
    6.12 +WEB_SITE="http://www.7-zip.org/"
    6.13 +WGET_URL="${WEB_SITE}dl/$TARBALL"
    6.14 +
    6.15 +# Rules to configure and make the package.
    6.16 +compile_rules()
    6.17 +{
    6.18 +	cd SRC/7zip/Compress/LZMA_Alone
    6.19 +	make
    6.20 +}
    6.21 +
    6.22 +
    6.23 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.24 +genpkg_rules()
    6.25 +{
    6.26 +	mkdir -p $fs/usr/bin
    6.27 +	cp -a SRC/7zip/Compress/LZMA_Alone/lzma $fs/usr/bin
    6.28 +	strip -s $fs/usr/bin/*
    6.29 +}
    6.30 +