# HG changeset patch # User Christophe Lincoln # Date 1199624500 -3600 # Node ID cef0dff31baa9205441145c99033737d0a28fe7f # Parent 191c8f0c8bb374ab2c80405293fcb368ade96837 Add : dropbear, isapnptools-*, lzma diff -r 191c8f0c8bb3 -r cef0dff31baa dropbear/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbear/receipt Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="dropbear" +VERSION="0.50" +CATEGORY="base-apps" +SHORT_DESC="Light SSH client and server." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html" +WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + local i + local DROPBEARS + DROPBEARS="dropbearkey dropbearconvert dbclient scp" + cd $src + ./configure --prefix=/usr $CONFIGURE_ARGS + make PROGRAMS="dropbear $DROPBEARS" MULTI=1 + install -d -m 755 $PWD/_pkg/usr/sbin + install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear + chown root $PWD/_pkg/usr/sbin/dropbear + chgrp 0 $PWD/_pkg/usr/sbin/dropbear + install -d -m 755 $PWD/_pkg/usr/bin + for i in $DROPBEARS ssh; do + ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i + done +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + strip -s $fs/usr/bin/* + strip -s $fs/usr/sbin/* + # Config file and init script. + mkdir -p $fs/etc + cp -a stuff/dropbear $fs/etc + cp -a stuff/init.d $fs/etc +} + +# Post message when installing. +post_install() +{ + echo -e "\nTo starts $PACKAGE server you can run :\n" + echo "/etc/init.d/$PACKAGE start" + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" +} diff -r 191c8f0c8bb3 -r cef0dff31baa dropbear/stuff/dropbear/banner --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbear/stuff/dropbear/banner Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,2 @@ + +Secure login on SliTaz GNU/Linux powered by Dropbear SSH server. diff -r 191c8f0c8bb3 -r cef0dff31baa dropbear/stuff/init.d/dropbear --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbear/stuff/init.d/dropbear Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,64 @@ +#!/bin/sh +# /etc/init.d/dropbear : Start, stop and restart SSH server on SliTaz, at +# boot time or with the command line. +# +# To start SSH server at boot time, just put dropbear in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=Dropbear +DESC="SSH server" +DAEMON=/usr/sbin/dropbear +OPTIONS=$DROPBEAR_OPTIONS +PIDFILE=/var/run/dropbear.pid + +case "$1" in + start) + # We need rsa and dss host key file to start dropbear. + if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then + echo "Generating $NAME rsa key... " + dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key + fi + if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then + echo "Generating $NAME dss key... " + dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key + fi + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r 191c8f0c8bb3 -r cef0dff31baa isapnptools-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/isapnptools-dev/receipt Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="isapnptools-dev" +VERSION="1.27" +CATEGORY="extra" +SHORT_DESC="ISA Plug-And-Play configuration devel files." +MAINTAINER="pascal.bellard@slitaz.org" +WANTED="isapnptools" +WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir $fs/usr + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib $fs/usr +} diff -r 191c8f0c8bb3 -r cef0dff31baa isapnptools/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/isapnptools/receipt Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="isapnptools" +VERSION="1.27" +CATEGORY="extra" +SHORT_DESC="ISA Plug-And-Play configuration." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tgz" +WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/" +WGET_URL="ftp://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --bindir=/bin \ + --libexecdir=/usr/bin --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr + cp -a $_pkg/usr/sbin $fs + strip -s $fs/sbin/* +} diff -r 191c8f0c8bb3 -r cef0dff31baa lzma/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lzma/receipt Sun Jan 06 14:01:40 2008 +0100 @@ -0,0 +1,27 @@ +# SliTaz package receipt. + +PACKAGE="lzma" +VERSION="4.22" +CATEGORY="extra" +SHORT_DESC="Compressor with a high compression ratio." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="lzma422.tar.bz2" +WEB_SITE="http://www.7-zip.org/" +WGET_URL="${WEB_SITE}dl/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd SRC/7zip/Compress/LZMA_Alone + make +} + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a SRC/7zip/Compress/LZMA_Alone/lzma $fs/usr/bin + strip -s $fs/usr/bin/* +} +