Makefile 2.2 KB

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