summaryrefslogtreecommitdiffstats
path: root/extra/openssh-server
diff options
context:
space:
mode:
authorSibelle <lesibel@ree.fr>2010-05-17 14:10:33 +0200
committerSibelle <lesibel@ree.fr>2010-05-17 14:10:33 +0200
commitef511880d74ce589ea598ed842bc3e2753934ad6 (patch)
treeb5697309f14277bc17e5a47dfcac572a67af21ea /extra/openssh-server
parentfa269eac0ef5029d2a3ff885e7da5153b3b34a2d (diff)
parentacbcb6921de8c5345a552b097c7b23fc130419c0 (diff)
downloadnutyx-pakxe-ef511880d74ce589ea598ed842bc3e2753934ad6.tar.gz
nutyx-pakxe-ef511880d74ce589ea598ed842bc3e2753934ad6.tar.bz2
nutyx-pakxe-ef511880d74ce589ea598ed842bc3e2753934ad6.tar.xz
nutyx-pakxe-ef511880d74ce589ea598ed842bc3e2753934ad6.zip
Merge remote branch 'nutyx-attapu/master'
Diffstat (limited to 'extra/openssh-server')
-rw-r--r--extra/openssh-server/.footprint40
-rw-r--r--extra/openssh-server/.md5sum2
-rwxr-xr-xextra/openssh-server/Pkgfile39
-rw-r--r--extra/openssh-server/service-01.patch44
4 files changed, 125 insertions, 0 deletions
diff --git a/extra/openssh-server/.footprint b/extra/openssh-server/.footprint
new file mode 100644
index 000000000..9bb7a3910
--- /dev/null
+++ b/extra/openssh-server/.footprint
@@ -0,0 +1,40 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-- root/root etc/rc.d/init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc0.d/
+lrwxrwxrwx root/root etc/rc.d/rc0.d/K30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+lrwxrwxrwx root/root etc/rc.d/rc1.d/K30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc2.d/
+lrwxrwxrwx root/root etc/rc.d/rc2.d/K30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/S30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/S30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rc6.d/
+lrwxrwxrwx root/root etc/rc.d/rc6.d/K30sshd -> ../init.d/sshd
+drwxr-xr-x root/root etc/rc.d/rcsysinit.d/
+drwxr-xr-x root/root etc/ssh/
+-rw-r--r-- root/root etc/ssh/sshd_config
+drwxr-xr-x root/root etc/sysconfig/
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/openssh/
+-rwxr-xr-x root/root usr/lib/openssh/sftp-server
+-rws--x--x root/root usr/lib/openssh/ssh-keysign
+-rwxr-xr-x root/root usr/lib/openssh/ssh-pkcs11-helper
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/sshd
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/sftp-server.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ssh-keysign.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ssh-pkcs11-helper.8.gz
+-rw-r--r-- root/root usr/share/man/man8/sshd.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwx------ root/sys var/lib/sshd/
diff --git a/extra/openssh-server/.md5sum b/extra/openssh-server/.md5sum
new file mode 100644
index 000000000..d4cd86ece
--- /dev/null
+++ b/extra/openssh-server/.md5sum
@@ -0,0 +1,2 @@
+88633408f4cb1eb11ec7e2ec58b519eb openssh-5.5p1.tar.gz
+23ed262e5382897d3ac764a7367c5bf2 service-01.patch
diff --git a/extra/openssh-server/Pkgfile b/extra/openssh-server/Pkgfile
new file mode 100755
index 000000000..b72fa93bd
--- /dev/null
+++ b/extra/openssh-server/Pkgfile
@@ -0,0 +1,39 @@
+# Description: Services de shell sécurisé openssh
+# URL: http://www.openssh.org/
+# Maintainer: NuTyX coreteam
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: openssh
+
+name=openssh-server
+version=5.5p1
+release=1
+source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz\
+ service-01.patch)
+
+build() {
+ source /etc/blfs-bootscripts
+ wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+ cd openssh-$version
+ sed -i "s:-lcrypto:/usr/lib/libcrypto.a -ldl:g" configure
+ sed -i "s/lkrb5 -ldes/lkrb5/" configure
+ install -v -m700 -d $PKG/var/lib/sshd
+ chown -v 0:2 $PKG/var/lib/sshd
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/ssh \
+ --libexecdir=/usr/lib/openssh \
+ --with-tcp-wrappers --with-md5-passwords \
+ --with-privsep-path=/var/lib/sshd \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-debug
+ make DESTDIR=$PKG install
+ cd ../$scripts-$scriptsversion
+ patch -Np1 -i ../service-01.patch
+ make DESTDIR=$PKG install-sshd
+ echo "PermitRootLogin no" >> $PKG/etc/ssh/sshd_config
+ # Suppression du client et ses man
+ rm $PKG/etc/ssh/{ssh_config,moduli}
+ rm -r $PKG/usr/bin
+ rm -r $PKG/usr/share/man/man{1,5}
+}
diff --git a/extra/openssh-server/service-01.patch b/extra/openssh-server/service-01.patch
new file mode 100644
index 000000000..08e32e1bc
--- /dev/null
+++ b/extra/openssh-server/service-01.patch
@@ -0,0 +1,44 @@
+--- blfs-bootscripts-20090302.original/blfs/init.d/sshd 2008-03-12 22:45:44.000000000 +0100
++++ blfs-bootscripts-20090302/blfs/init.d/sshd 2010-04-20 15:06:38.000000000 +0200
+@@ -3,22 +3,35 @@
+
+ # Based on sysklogd script from LFS-3.1 and earlier.
+ # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
++# Add create user and Groups - thierryn1@hispeed.ch
+
+-#$LastChangedBy: dnicholson $
+-#$Date: 2008-03-12 21:45:44 +0000 (Wed, 12 Mar 2008) $
++# $Id: sshd,v 1.2 2007/09/26 10:21:45 install Exp install $
+
+ . /etc/sysconfig/rc
+ . $rc_functions
+-
+-pidfile=/var/run/sshd.pid
++newgroup=sshd
++newuser=sshd
++newid=50
++getent group $newgroup > /dev/null || /usr/sbin/groupadd -g $newid $newgroup
++getent passwd $newuser > /dev/null || /usr/sbin/useradd -g $newgroup \
++-u $newid -d /var/lib/sshd -s /bin/false -c "sshd PrivSep" $newuser
+
+ case "$1" in
+ start)
+ boot_mesg "Starting SSH Server..."
++ if [ ! -f /etc/ssh/ssh_host_key ]; then
++ /usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key
++ fi
++ if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
++ /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
++ fi
++ if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
++ /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
++ fi
+ # Also prevent ssh from being killed by out of memory conditions
+- loadproc /usr/sbin/sshd
++ loadproc /usr/sbin/sshd
+ sleep 1
+- echo "-16" >/proc/`cat $pidfile`/oom_adj
++ echo "-16" >/proc/`cat /var/run/sshd.pid`/oom_adj
+ ;;
+
+ stop)