From: Jose V Beneyto Date: Tue, 14 Jun 2011 08:01:02 +0000 (+0200) Subject: dropbear: moved from core collection X-Git-Url: http://gitweb/?a=commitdiff_plain;h=refs%2Fheads%2F2.7;p=attic%2Fports%2Fopt-cross.git dropbear: moved from core collection --- diff --git a/dropbear/.footprint b/dropbear/.footprint new file mode 100644 index 0000000..bf5f91f --- /dev/null +++ b/dropbear/.footprint @@ -0,0 +1,19 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/dropbear/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/dropbear +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/dbclient +-rwxr-xr-x root/root usr/bin/dropbearconvert +-rwxr-xr-x root/root usr/bin/dropbearkey +-rwxr-xr-x root/root usr/bin/scp +lrwxrwxrwx root/root usr/bin/ssh -> dbclient +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/dbclient.1.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/dropbear.8.gz +-rw-r--r-- root/root usr/man/man8/dropbearkey.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/dropbear diff --git a/dropbear/.md5sum b/dropbear/.md5sum new file mode 100644 index 0000000..cca5756 --- /dev/null +++ b/dropbear/.md5sum @@ -0,0 +1,2 @@ +e499ac93e2ce3c14c3806c4f74e74371 dropbear +6b8d901859d9b8a18e2f6bfe0a892a03 dropbear-0.53.1.tar.gz diff --git a/dropbear/Pkgfile b/dropbear/Pkgfile new file mode 100644 index 0000000..291f2e5 --- /dev/null +++ b/dropbear/Pkgfile @@ -0,0 +1,27 @@ +# Description: Small and secure SSH2 server and client +# URL: http://matt.ucc.asn.au/dropbear/dropbear.html +# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: zlib + +name=dropbear +version=0.53.1 +release=1 +source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.gz + $name) + +build () { + cd $name-$version + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr + + make PROGRAMS="dropbear dbclient scp dropbearkey dropbearconvert" SCPPROGRESS=1 + make DESTDIR=$PKG install + install -m 755 scp $PKG/usr/bin + install -d $PKG/{etc/{rc.d,$name},usr/man/man{1,8}} + install -m 644 dbclient.1 $PKG/usr/man/man1 + install -m 644 dropbear{.8,key.8} $PKG/usr/man/man8 + install -m 755 $SRC/$name $PKG/etc/rc.d + ln -s dbclient $PKG/usr/bin/ssh +} diff --git a/dropbear/dropbear b/dropbear/dropbear new file mode 100644 index 0000000..4fa2a90 --- /dev/null +++ b/dropbear/dropbear @@ -0,0 +1,43 @@ +#!/bin/sh +# +# /etc/rc.d/dropbear: start/stop dropbear ssh daemon +# + +CONV=/usr/bin/dropbearconvert +KEYG=/usr/bin/dropbearkey + +RSA=/etc/dropbear/dropbear_rsa_host_key +DSS=/etc/dropbear/dropbear_dss_host_key + +case $1 in +start) + if [ ! -f $RSA ]; then + if [ -f /etc/ssh/ssh_host_rsa_key ]; then + $CONV openssh dropbear /etc/ssh/ssh_host_rsa_key $RSA + else + $KEYG -t rsa -f $RSA + fi + fi + if [ ! -f $DSS ]; then + if [ -f /etc/ssh/ssh_host_dsa_key ]; then + $CONV openssh dropbear /etc/ssh/ssh_host_dsa_key $DSS + else + $KEYG -t dss -f $DSS + fi + fi + /usr/sbin/dropbear + ;; +stop) + killall -q /usr/sbin/dropbear + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file