Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= samba
  5. PKG_VERSION:= 4.2.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 66a6057815a971fee64fbe936ff6cbad542421a4bd52cba8d8d41afc9abc490f
  8. PKG_DESCR:= file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_BUILDDEP:= gettext-tiny util-linux popt python2 gnutls
  11. PKG_BUILDDEP:= heimdal-host python2-host
  12. PKG_DEPENDS:= libuuid libpopt libgnutls
  13. PKG_URL:= http://www.samba.org/
  14. PKG_SITES:= http://samba.org/samba/ftp/stable/
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  18. CONFIG_STYLE:= minimal
  19. CONFIGURE_ARGS+= --enable-fhs \
  20. --prefix=/usr \
  21. --sysconfdir=/etc \
  22. --localstatedir=/var \
  23. --cross-compile \
  24. --cross-answers=$(WRKSRC)/cache.txt \
  25. --hostcc=gcc \
  26. --without-pam \
  27. --without-fam \
  28. --without-dmapi \
  29. --without-ads \
  30. --without-ldap \
  31. --without-acl-support \
  32. --disable-glusterfs \
  33. --disable-iprint \
  34. --disable-cups \
  35. --disable-avahi \
  36. --disable-rpath \
  37. --bundled-libraries='!asn1_compile,!compile_et' \
  38. --disable-rpath-install
  39. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  40. python_LDFLAGS="" \
  41. python_LIBDIR=""
  42. pre-configure:
  43. $(CP) ./files/cache.txt $(WRKSRC)
  44. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  45. samba-install:
  46. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  47. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  48. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  49. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  50. $(IDIR_SAMBA)/usr/sbin
  51. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  52. $(IDIR_SAMBA)/usr/bin
  53. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  54. $(IDIR_SAMBA)/usr/lib
  55. $(CP) $(WRKINST)/usr/lib/samba \
  56. $(IDIR_SAMBA)/usr/lib
  57. include $(ADK_TOPDIR)/mk/pkg-bottom.mk