diff options
author | piernov <piernov@piernov.org> | 2012-05-13 21:25:08 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-05-13 21:25:08 +0200 |
commit | f35fb119bf993d3454668f50a17334e09b77160b (patch) | |
tree | 9f1d840f10e24848f8b94eb9c5c4e811e0984232 /openssh-server/Pkgfile | |
parent | 2814457a550d6a14e6134ac4c06b1f96a92d2061 (diff) | |
parent | 933ac25d27eb5fa5f8f983ab8ac8d507e773c044 (diff) | |
download | nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.gz nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.bz2 nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.tar.xz nutyx-pakxe-f35fb119bf993d3454668f50a17334e09b77160b.zip |
Merge branch 'master' of http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe
Diffstat (limited to 'openssh-server/Pkgfile')
-rwxr-xr-x | openssh-server/Pkgfile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/openssh-server/Pkgfile b/openssh-server/Pkgfile new file mode 100755 index 000000000..0615f6b9e --- /dev/null +++ b/openssh-server/Pkgfile @@ -0,0 +1,46 @@ +# Description: Services de shell sécurisé openssh +# URL: http://www.openssh.org/ +# Maintainer: NuTyX coreteam +# Packager: thierryn1 at hispeed dot ch +# Depends on: openssh +# Run on: openssh + +name=openssh-server +version=5.9p1 +release=2 +source=(http://ftp2.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz\ + http://nutyx.meticul.eu/files/patchs/$name/service-01.patch) + +build() { + unset MAKEFLAGS + source /etc/blfs-bootscripts +# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$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 + + 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} +} + |