summaryrefslogtreecommitdiffstats
path: root/openssh
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /openssh
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'openssh')
-rw-r--r--openssh/.footprint43
-rw-r--r--openssh/.md5sum2
-rw-r--r--openssh/Pkgfile19
-rw-r--r--openssh/Pkgfile.old27
-rwxr-xr-xopenssh/sshd37
5 files changed, 128 insertions, 0 deletions
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..91fb993
--- /dev/null
+++ b/openssh/.md5sum
@@ -0,0 +1,2 @@
+e6ee52e47c768bf0ec42a232b5d18fb0 openssh-5.6p1.tar.gz
+7eafe1c58bfa642ee3546e13fb4609ab sshd
diff --git a/openssh/Pkgfile b/openssh/Pkgfile
new file mode 100644
index 0000000..7c069d3
--- /dev/null
+++ b/openssh/Pkgfile
@@ -0,0 +1,19 @@
+description="Secure SHell server and client tools"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://www.openssh.org/"
+depends=(openssl zlib tcp_wrappers)
+
+name=openssh
+version=5.6p1
+release=1
+source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.6p1.tar.gz sshd)
+build ()
+{
+ cd $name-$version;
+ ./configure --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;
+ make;
+ make DESTDIR=$PKG install;
+ install -D -m 755 $SRC/sshd $PKG/etc/rc.d/sshd;
+ rm -rf $PKG/usr/share $PKG/var
+}
diff --git a/openssh/Pkgfile.old b/openssh/Pkgfile.old
new file mode 100644
index 0000000..7285955
--- /dev/null
+++ b/openssh/Pkgfile.old
@@ -0,0 +1,27 @@
+# Description: Secure SHell server and client tools
+# URL: http://www.openssh.org/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Depends on: openssl zlib tcp_wrappers
+
+name=openssh
+version=5.6p1
+release=1
+source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
+
+build() {
+ cd $name-$version
+ ./configure --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
+ make
+ make DESTDIR=$PKG 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..d6d24ed
--- /dev/null
+++ b/openssh/sshd
@@ -0,0 +1,37 @@
+#!/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
+ /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