summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-05-17 12:00:03 +0200
committertnut <thierryn1 at hispeed dot ch>2010-05-17 12:00:03 +0200
commit726a62a08e653115063bb2b61c0717196a3bac51 (patch)
treeb4f213bb5b88b39414a618205e7c332febcf8d12 /extra
parentfb58e7c30ea39307d7f0d01c5b3ba1fe56d61513 (diff)
downloadnutyx-pakxe-726a62a08e653115063bb2b61c0717196a3bac51.tar.gz
nutyx-pakxe-726a62a08e653115063bb2b61c0717196a3bac51.tar.bz2
nutyx-pakxe-726a62a08e653115063bb2b61c0717196a3bac51.tar.xz
nutyx-pakxe-726a62a08e653115063bb2b61c0717196a3bac51.zip
ajout de openssh-server#5.5p1-1
Diffstat (limited to 'extra')
-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
-rw-r--r--extra/openssh-server/sshd63
5 files changed, 188 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)
diff --git a/extra/openssh-server/sshd b/extra/openssh-server/sshd
new file mode 100644
index 000000000..468b89973
--- /dev/null
+++ b/extra/openssh-server/sshd
@@ -0,0 +1,63 @@
+#!/bin/sh
+# Begin $rc_base/init.d/sshd
+
+# 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
+
+# $Id: sshd,v 1.2 2007/09/26 10:21:45 install Exp install $
+
+. /etc/sysconfig/rc
+. $rc_functions
+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
+ sleep 1
+ echo "-16" >/proc/`cat /var/run/sshd.pid`/oom_adj
+ ;;
+
+ stop)
+ boot_mesg "Stopping SSH Server..."
+ killproc /usr/sbin/sshd
+ ;;
+
+ reload)
+ boot_mesg "Reloading SSH Server..."
+ reloadproc /usr/sbin/sshd
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /usr/sbin/sshd
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|reload|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/sshd