summaryrefslogtreecommitdiffstats
path: root/base/openssh/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:32:20 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:32:20 +0200
commit7e06f22a97d094f7c8f87f0fa5b1e242f9a26477 (patch)
tree2e5b7091b4eb10b4863971186d3f113550e82533 /base/openssh/Pkgfile
parente07992417e54600a336ef2eafe09cc329893b815 (diff)
downloadnutyx-extra-7e06f22a97d094f7c8f87f0fa5b1e242f9a26477.tar.gz
nutyx-extra-7e06f22a97d094f7c8f87f0fa5b1e242f9a26477.tar.bz2
nutyx-extra-7e06f22a97d094f7c8f87f0fa5b1e242f9a26477.tar.xz
nutyx-extra-7e06f22a97d094f7c8f87f0fa5b1e242f9a26477.zip
Ajout de openssh#5.2p1-1
Diffstat (limited to 'base/openssh/Pkgfile')
-rwxr-xr-xbase/openssh/Pkgfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/base/openssh/Pkgfile b/base/openssh/Pkgfile
new file mode 100755
index 000000000..551e8799a
--- /dev/null
+++ b/base/openssh/Pkgfile
@@ -0,0 +1,37 @@
+# Description: Outils client et serveur de shell sécurisé
+# URL: http://www.openssh.org/
+# Maintainer: NuTyX coreteam
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: openssl, zlib, tcp_wrappers
+
+name=openssh
+version=5.2p1
+release=1
+source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz\
+ sshd\
+)
+
+build() {
+ source /etc/blfs-bootscripts
+ wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+ cd $name-$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
+ make DESTDIR=$PKG install-sshd
+ rm $PKG/etc/rc.d/init.d/sshd
+ install -m755 ../sshd $PKG/etc/rc.d/init.d/
+ echo "PermitRootLogin no" >> $PKG/etc/ssh/sshd_config
+}