talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Description: Free version of the SSH connectivity tools
  2. # URL: http://www.openssh.org/
  3. # Packagers: milisarge@gmail.com
  4. name=openssh
  5. version=7.1p2
  6. release=1
  7. source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz
  8. http://downloads.nutyx.org/files/patchs/openssh-server/service-saravane-01.patch)
  9. build() {
  10. source /etc/blfs-bootscripts
  11. wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
  12. unset MAKEFLAGS
  13. cd $name-$version
  14. install -v -m700 -d $PKG/var/lib/sshd
  15. chown -v root:sys $PKG/var/lib/sshd
  16. ./configure --prefix=/usr \
  17. --sysconfdir=/etc/ssh \
  18. --datadir=/usr/share/sshd \
  19. --with-md5-passwords \
  20. --with-privsep-path=/var/lib/sshd \
  21. --mandir=/usr/share/man \
  22. --infodir=/usr/share/info
  23. make DESTDIR=$PKG install
  24. if [ -f /etc/pam.d/login ]; then
  25. mkdir -p $PKG/etc/pam.d
  26. sed 's@d/login@d/sshd@g' /etc/pam.d/login > $PKG/etc/pam.d/sshd
  27. chmod 644 $PKG/etc/pam.d/sshd
  28. fi
  29. install -v -m755 contrib/ssh-copy-id $PKG/usr/bin
  30. install -v -m644 contrib/ssh-copy-id.1 \
  31. $PKG/usr/share/man/man1
  32. install -v -m755 -d $PKG/usr/share/doc/$name-$version
  33. install -v -m644 INSTALL LICENCE OVERVIEW README* \
  34. $PKG/usr/share/doc/$name-$version
  35. cd $SRC
  36. tar xf $scripts-$scriptsversion.tar.bz2
  37. cd $SRC/$scripts-$scriptsversion
  38. patch -Np1 -i ../service-saravane-01.patch
  39. make DESTDIR=$PKG install-sshd
  40. }