talimat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Tanım: SMB Dosya sunucusu ve AD Etki Alanı sunucusu
  2. # URL: http://www.samba.org
  3. # Paketçi: milisarge
  4. # Gerekler: talloc tevent avahi gnutls libgpg-error popt python cups kerberos libcap tdb openldap libxslt
  5. # Grup: ağ
  6. isim=samba
  7. surum=4.6.7
  8. devir=1
  9. kaynak=(https://www.samba.org/samba/ftp/stable/$isim-$surum.tar.gz
  10. samba.conf)
  11. derle() {
  12. cd $isim-$surum
  13. ./configure \
  14. --prefix=/usr \
  15. --sysconfdir=/etc \
  16. --localstatedir=/var \
  17. --with-piddir=/run/samba \
  18. --with-pammodulesdir=/lib/security \
  19. --without-ad-dc \
  20. --enable-fhs \
  21. --without-systemd \
  22. --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb
  23. make
  24. sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail
  25. make DESTDIR=$PKG install
  26. install -v -m644 examples/smb.conf.default $PKG/etc/samba/smb.conf.default
  27. mkdir -pv $PKG/etc/openldap/schema
  28. install -v -m644 examples/LDAP/README $PKG/etc/openldap/schema/README.LDAP
  29. install -v -m644 examples/LDAP/samba* $PKG/etc/openldap/schema
  30. install -v -m755 examples/LDAP/{get*,ol*} $PKG/etc/openldap/schema
  31. #ld.conf
  32. mkdir -pv $PKG/etc/ld.so.conf.d
  33. cp -f $SRC/samba.conf $PKG/etc/ld.so.conf.d/
  34. # cups
  35. cd $PKG/usr/lib/
  36. install -d cups/backend
  37. ln -v -sf $PKG/usr/bin/smbspool $PKG/usr/lib/cups/backend/smb
  38. # servis
  39. cd /sources/milis.git/ayarlar/servisler
  40. make DESTDIR=$PKG kur-samba
  41. make DESTDIR=$PKG kur-winbindd
  42. # Doublon
  43. rm -f $PKG/usr/lib/python2.7/site-packages/talloc.so
  44. }