talimat 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Description: SMB Dosya sunucusu ve AD Etki Alanı sunucusu
  2. # URL: http://www.samba.org
  3. # Packager: milisarge
  4. # Depends on: talloc tevent avahi gnutls libgpg-error popt python cups kerberos libcap tdb openldap libxslt
  5. name=samba
  6. version=4.4.5
  7. release=1
  8. source=( http://ftp.samba.org/pub/samba/stable/$name-$version.tar.gz
  9. http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-20170225.tar.xz)
  10. build() {
  11. if [ "`uname -m`" == "x86_64" ]; then
  12. LIB=lib64
  13. else
  14. LIB=lib
  15. fi
  16. cd $name-$version
  17. ./configure \
  18. --prefix=/usr \
  19. --sysconfdir=/etc \
  20. --localstatedir=/var \
  21. --with-piddir=/run/samba \
  22. --with-pammodulesdir=/lib/security \
  23. --without-ad-dc \
  24. --enable-fhs \
  25. --without-systemd \
  26. --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb
  27. make
  28. sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail
  29. make DESTDIR=$PKG install
  30. install -d $PKG/$LIB
  31. mv -v $PKG/usr/lib/libnss_win{s,bind}.so* $PKG/$LIB
  32. ln -v -sf /$LIB/libnss_winbind.so.2 $PKG/usr/lib/libnss_winbind.so
  33. ln -v -sf /$LIB/libnss_wins.so.2 $PKG/usr/lib/libnss_wins.so
  34. install -v -m644 examples/smb.conf.default $PKG/etc/samba/smb.conf.default
  35. mkdir -pv $PKG/etc/openldap/schema
  36. install -v -m644 examples/LDAP/README \
  37. $PKG/etc/openldap/schema/README.LDAP
  38. install -v -m644 examples/LDAP/samba* \
  39. $PKG/etc/openldap/schema
  40. install -v -m755 examples/LDAP/{get*,ol*} \
  41. $PKG/etc/openldap/schema
  42. # cups
  43. cd $PKG/usr/lib/
  44. install -d cups/backend
  45. ln -v -sf $PKG/usr/bin/smbspool $PKG/usr/lib/cups/backend/smb
  46. # servis
  47. cd $SRC/blfs-bootscripts-20170225
  48. make DESTDIR=$PKG install-samba
  49. make DESTDIR=$PKG install-winbindd
  50. # Doublon
  51. rm -f $PKG/usr/lib/python2.7/site-packages/talloc.so
  52. }