1
0

Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.6.9
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= c31db4aad82f0b9588ef6c4b4dab5dce3fa1787bd298e62d953c2628bb1af21a
  8. PKG_DESCR:= file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= libuuid libpopt libgnutls libtirpc
  11. PKG_DEPENDS+= libtalloc
  12. PKG_BUILDDEP:= util-linux popt python2 gnutls talloc
  13. PKG_BUILDDEP+= heimdal-host python2-host libtirpc
  14. PKG_NEEDS:= threads intl
  15. PKG_URL:= http://www.samba.org/
  16. PKG_SITES:= http://samba.org/samba/ftp/stable/
  17. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  20. XAKE_ENV+= V=1
  21. CONFIG_STYLE:= minimal
  22. CONFIGURE_ARGS+= --enable-fhs \
  23. --prefix=/usr \
  24. --sysconfdir=/etc \
  25. --localstatedir=/var \
  26. --with-privatedir=/etc/samba \
  27. --cross-compile \
  28. --cross-answers=$(WRKSRC)/cache.txt \
  29. --hostcc=gcc \
  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. --disable-glusterfs \
  42. --disable-iprint \
  43. --disable-cups \
  44. --disable-avahi \
  45. --disable-rpath \
  46. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  47. --disable-rpath-install
  48. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  49. python_LDFLAGS="" \
  50. python_LIBDIR=""
  51. pre-configure:
  52. $(CP) ./files/cache.txt $(WRKSRC)
  53. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  54. samba-install:
  55. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  56. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  57. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  58. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  59. $(IDIR_SAMBA)/usr/sbin
  60. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  61. $(IDIR_SAMBA)/usr/bin
  62. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  63. $(IDIR_SAMBA)/usr/lib
  64. $(CP) $(WRKINST)/usr/lib/samba \
  65. $(IDIR_SAMBA)/usr/lib
  66. include $(ADK_TOPDIR)/mk/pkg-bottom.mk