--- /dev/null
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/sshd
+drwxr-xr-x root/root etc/ssh/
+-rw-r--r-- root/root etc/ssh/moduli
+-rw-r--r-- root/root etc/ssh/ssh_config
+-rw-r--r-- root/root etc/ssh/sshd_config
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/scp
+-rwxr-xr-x root/root usr/bin/sftp
+lrwxrwxrwx root/root usr/bin/slogin -> ./ssh
+-rwxr-xr-x root/root usr/bin/ssh
+-rwxr-xr-x root/root usr/bin/ssh-add
+-rwxr-xr-x root/root usr/bin/ssh-agent
+-rwxr-xr-x root/root usr/bin/ssh-keygen
+-rwxr-xr-x root/root usr/bin/ssh-keyscan
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/ssh/
+-rwxr-xr-x root/root usr/lib/ssh/sftp-server
+-rws--x--x root/root usr/lib/ssh/ssh-keysign
+-rwxr-xr-x root/root usr/lib/ssh/ssh-pkcs11-helper
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/scp.1.gz
+-rw-r--r-- root/root usr/man/man1/sftp.1.gz
+lrwxrwxrwx root/root usr/man/man1/slogin.1.gz -> ssh.1.gz
+-rw-r--r-- root/root usr/man/man1/ssh-add.1.gz
+-rw-r--r-- root/root usr/man/man1/ssh-agent.1.gz
+-rw-r--r-- root/root usr/man/man1/ssh-keygen.1.gz
+-rw-r--r-- root/root usr/man/man1/ssh-keyscan.1.gz
+-rw-r--r-- root/root usr/man/man1/ssh.1.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/moduli.5.gz
+-rw-r--r-- root/root usr/man/man5/ssh_config.5.gz
+-rw-r--r-- root/root usr/man/man5/sshd_config.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/sftp-server.8.gz
+-rw-r--r-- root/root usr/man/man8/ssh-keysign.8.gz
+-rw-r--r-- root/root usr/man/man8/ssh-pkcs11-helper.8.gz
+-rw-r--r-- root/root usr/man/man8/sshd.8.gz
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/sshd
--- /dev/null
+# Description: Secure SHell server and client tools
+# URL: http://www.openssh.org/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: openssl zlib tcp_wrappers
+
+name=openssh
+version=5.8p1
+release=1
+source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
+
+build() {
+ cd $name-$version
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/ssh \
+ --sysconfdir=/etc/ssh \
+ --with-mantype=man \
+ --mandir=/usr/man \
+ --with-tcp-wrappers \
+ --with-md5-passwords \
+ --with-privsep-user=nobody \
+ --with-privsep-path=/var/empty \
+ --with-xauth=/usr/bin/xauth \
+ --with-zlib="$CLFS/usr" \
+ --with-ssl-dir="$CLFS/usr" \
+ --with-libs="$LIBS -L$CLFS/usr/lib" \
+ --with-cflags="$CFLAGS -I$CLFS/usr/include"
+
+ make AR="$AR" RANLIB="$RANLIB" AS="$AS" LD="$CC"
+ make DESTDIR=$PKG STRIP_OPT="-s --strip-program=$STRIP" AR="$AR" RANLIB="$RANLIB" AS="$AS" install
+ install -D -m 755 $SRC/sshd $PKG/etc/rc.d/sshd
+ rm -rf $PKG/usr/share $PKG/var
+}
--- /dev/null
+#!/bin/sh
+#
+# /etc/rc.d/sshd: start/stop ssh daemon
+#
+
+case $1 in
+start)
+ if [ ! -f /etc/ssh/ssh_host_key ]; then
+ /usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key > /dev/null
+ fi
+ if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
+ /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key > /dev/null
+ fi
+ if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
+ /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key > /dev/null
+ fi
+ if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
+ /usr/bin/ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key > /dev/null
+ fi
+ /usr/sbin/sshd
+ ;;
+stop)
+ if [ -f /var/run/sshd.pid ]; then
+ kill $(< /var/run/sshd.pid)
+ rm -f /var/run/sshd.pid
+ else
+ killall -q /usr/sbin/sshd
+ fi
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file