Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 37eaa239c116dc2c22c29c5a2931eb178ed22e48b594687247446703119b4ac3
  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:= libpthread librt 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. --with-privatedir=/etc/samba \
  24. --cross-compile \
  25. --cross-answers=$(WRKSRC)/cache.txt \
  26. --hostcc=gcc \
  27. --without-pam \
  28. --without-fam \
  29. --without-dmapi \
  30. --without-ads \
  31. --without-ldap \
  32. --without-acl-support \
  33. --disable-glusterfs \
  34. --disable-iprint \
  35. --disable-cups \
  36. --disable-avahi \
  37. --disable-rpath \
  38. --bundled-libraries='!asn1_compile,!compile_et' \
  39. --disable-rpath-install
  40. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  41. python_LDFLAGS="" \
  42. python_LIBDIR=""
  43. pre-configure:
  44. $(CP) ./files/cache.txt $(WRKSRC)
  45. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  46. samba-install:
  47. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  48. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  49. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  50. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  51. $(IDIR_SAMBA)/usr/sbin
  52. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  53. $(IDIR_SAMBA)/usr/bin
  54. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  55. $(IDIR_SAMBA)/usr/lib
  56. $(CP) $(WRKINST)/usr/lib/samba \
  57. $(IDIR_SAMBA)/usr/lib
  58. include $(ADK_TOPDIR)/mk/pkg-bottom.mk