From: Victor Martinez Date: Tue, 5 Apr 2011 14:50:12 +0000 (+0000) Subject: openssh: initial import (verified compilation). X-Git-Url: http://gitweb/?a=commitdiff_plain;h=fe2701c68940a0cf74a46c87863e8f33bf60c7aa;p=crossrootfs.git openssh: initial import (verified compilation). --- diff --git a/openssh/.footprint b/openssh/.footprint new file mode 100644 index 0000000..8548114 --- /dev/null +++ b/openssh/.footprint @@ -0,0 +1,43 @@ +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 diff --git a/openssh/.md5sum b/openssh/.md5sum new file mode 100644 index 0000000..4448f73 --- /dev/null +++ b/openssh/.md5sum @@ -0,0 +1,2 @@ +86f5e1c23b4c4845f23b9b7b493fb53d openssh-5.8p1.tar.gz +ce4ef44c7d80f6451170e6fe5c07d3f4 sshd diff --git a/openssh/Pkgfile b/openssh/Pkgfile new file mode 100644 index 0000000..070f0fb --- /dev/null +++ b/openssh/Pkgfile @@ -0,0 +1,35 @@ +# 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 +} diff --git a/openssh/sshd b/openssh/sshd new file mode 100755 index 0000000..11a1c26 --- /dev/null +++ b/openssh/sshd @@ -0,0 +1,40 @@ +#!/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