Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.19.4
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 4026d93b866db198c8ca1685b0f5d52793f65c6e63cb364163af661fdff0968c
  8. PKG_DESCR:= file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= libuuid libpopt libgnutls libtirpc
  11. PKG_DEPENDS+= libtalloc libkrb5
  12. PKG_BUILDDEP:= util-linux talloc p5-parse-yapp-host gnutls krb5
  13. PKG_NEEDS:= threads intl
  14. PKG_URL:= http://www.samba.org/
  15. PKG_SITES:= http://samba.org/samba/ftp/stable/
  16. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  19. XAKE_ENV+= V=1
  20. CONFIG_STYLE:= minimal
  21. CONFIGURE_ARGS+= --enable-fhs \
  22. --prefix=/usr \
  23. --sysconfdir=/etc \
  24. --localstatedir=/var \
  25. --with-privatedir=/var/lib/samba \
  26. --cross-compile \
  27. --cross-answers=$(WRKSRC)/cache.txt \
  28. --hostcc=gcc \
  29. --with-system-mitkrb5 \
  30. --without-libunwind \
  31. --without-pie \
  32. --without-gettext \
  33. --without-relro \
  34. --without-systemd \
  35. --without-automount \
  36. --without-pam \
  37. --without-fam \
  38. --without-dmapi \
  39. --without-ads \
  40. --without-ldap \
  41. --without-acl-support \
  42. --without-ad-dc \
  43. --without-json \
  44. --without-libarchive \
  45. --without-iconv \
  46. --disable-glusterfs \
  47. --disable-iprint \
  48. --disable-cups \
  49. --disable-avahi \
  50. --disable-rpath \
  51. --disable-python \
  52. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  53. --with-shared-modules=!vfs_snapper \
  54. --disable-rpath-install
  55. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  56. python_LDFLAGS="" \
  57. python_LIBDIR="" \
  58. PERL="$(STAGING_HOST_DIR)/usr/bin/perl-host"
  59. pre-configure:
  60. $(CP) ./files/cache.txt $(WRKSRC)
  61. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  62. ifneq ($(ADK_LINUX_64),)
  63. echo 'Checking for a 64-bit host to support lmdb: OK' >>$(WRKSRC)/cache.txt
  64. echo 'Checking for large file support without additional flags: OK' >>$(WRKSRC)/cache.txt
  65. else
  66. echo 'Checking for a 64-bit host to support lmdb: NO' >>$(WRKSRC)/cache.txt
  67. echo 'Checking for large file support without additional flags: NO' >>$(WRKSRC)/cache.txt
  68. echo 'Checking for -D_FILE_OFFSET_BITS=64: OK' >>$(WRKSRC)/cache.txt
  69. endif
  70. samba-install:
  71. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  72. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  73. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  74. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  75. $(IDIR_SAMBA)/usr/sbin
  76. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  77. $(IDIR_SAMBA)/usr/bin
  78. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  79. $(IDIR_SAMBA)/usr/lib
  80. $(CP) $(WRKINST)/usr/lib/samba \
  81. $(IDIR_SAMBA)/usr/lib
  82. include $(ADK_TOPDIR)/mk/pkg-bottom.mk