Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.13.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 276464396a05d88b775bda01ac2eb1e5a636ccf7010b0fd28efc3d85583af2b4
  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=/etc/samba \
  26. --cross-compile \
  27. --cross-answers=$(WRKSRC)/cache.txt \
  28. --hostcc=gcc \
  29. --with-system-mitkrb5 \
  30. --without-pie \
  31. --without-gettext \
  32. --without-relro \
  33. --without-systemd \
  34. --without-automount \
  35. --without-pam \
  36. --without-fam \
  37. --without-dmapi \
  38. --without-ads \
  39. --without-ldap \
  40. --without-acl-support \
  41. --without-ad-dc \
  42. --without-json \
  43. --without-libarchive \
  44. --without-iconv \
  45. --disable-glusterfs \
  46. --disable-iprint \
  47. --disable-cups \
  48. --disable-avahi \
  49. --disable-rpath \
  50. --disable-python \
  51. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  52. --with-shared-modules=!vfs_snapper \
  53. --disable-rpath-install
  54. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  55. python_LDFLAGS="" \
  56. python_LIBDIR="" \
  57. PERL="$(STAGING_HOST_DIR)/usr/bin/perl-host"
  58. pre-configure:
  59. $(CP) ./files/cache.txt $(WRKSRC)
  60. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  61. ifneq ($(ADK_LINUX_64),)
  62. echo 'Checking for a 64-bit host to support lmdb: OK' >>$(WRKSRC)/cache.txt
  63. else
  64. echo 'Checking for a 64-bit host to support lmdb: NO' >>$(WRKSRC)/cache.txt
  65. endif
  66. samba-install:
  67. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  68. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  69. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  70. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  71. $(IDIR_SAMBA)/usr/sbin
  72. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  73. $(IDIR_SAMBA)/usr/bin
  74. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  75. $(IDIR_SAMBA)/usr/lib
  76. $(CP) $(WRKINST)/usr/lib/samba \
  77. $(IDIR_SAMBA)/usr/lib
  78. include $(ADK_TOPDIR)/mk/pkg-bottom.mk