talimat 1.3 KB

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