Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.5.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d3a9a439b746ddd2c5f119f60c72ef8a026bcee1efb1199bf19e44f114f6b586
  8. PKG_DESCR:= file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= libuuid libpopt libgnutls libtirpc
  11. PKG_BUILDDEP:= gettext-tiny util-linux popt python2 gnutls
  12. PKG_BUILDDEP+= heimdal-host python2-host libtirpc
  13. PKG_NEEDS:= threads
  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. --without-pie \
  30. --without-gettext \
  31. --without-relro \
  32. --without-systemd \
  33. --without-automount \
  34. --without-pam \
  35. --without-fam \
  36. --without-dmapi \
  37. --without-ads \
  38. --without-ldap \
  39. --without-acl-support \
  40. --disable-glusterfs \
  41. --disable-iprint \
  42. --disable-cups \
  43. --disable-avahi \
  44. --disable-rpath \
  45. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  46. --disable-rpath-install
  47. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  48. python_LDFLAGS="" \
  49. python_LIBDIR=""
  50. pre-configure:
  51. $(CP) ./files/cache.txt $(WRKSRC)
  52. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  53. samba-install:
  54. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  55. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  56. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  57. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  58. $(IDIR_SAMBA)/usr/sbin
  59. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  60. $(IDIR_SAMBA)/usr/bin
  61. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  62. $(IDIR_SAMBA)/usr/lib
  63. $(CP) $(WRKINST)/usr/lib/samba \
  64. $(IDIR_SAMBA)/usr/lib
  65. include $(ADK_TOPDIR)/mk/pkg-bottom.mk