Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.2.1
  6. PKG_RELEASE:= 4
  7. PKG_HASH:= 37eaa239c116dc2c22c29c5a2931eb178ed22e48b594687247446703119b4ac3
  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
  12. PKG_DEPENDS:= libpthread librt libuuid libpopt libgnutls
  13. PKG_URL:= http://www.samba.org/
  14. PKG_SITES:= http://samba.org/samba/ftp/stable/
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  18. CONFIG_STYLE:= minimal
  19. CONFIGURE_ARGS+= --enable-fhs \
  20. --prefix=/usr \
  21. --sysconfdir=/etc \
  22. --localstatedir=/var \
  23. --with-privatedir=/etc/samba \
  24. --cross-compile \
  25. --cross-answers=$(WRKSRC)/cache.txt \
  26. --hostcc=gcc \
  27. --without-pie \
  28. --without-relro \
  29. --without-systemd \
  30. --without-automount \
  31. --without-pam \
  32. --without-fam \
  33. --without-dmapi \
  34. --without-ads \
  35. --without-ldap \
  36. --without-acl-support \
  37. --disable-glusterfs \
  38. --disable-iprint \
  39. --disable-cups \
  40. --disable-avahi \
  41. --disable-rpath \
  42. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  43. --disable-rpath-install
  44. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  45. python_LDFLAGS="" \
  46. python_LIBDIR=""
  47. pre-configure:
  48. $(CP) ./files/cache.txt $(WRKSRC)
  49. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  50. samba-install:
  51. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  52. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  53. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  54. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  55. $(IDIR_SAMBA)/usr/sbin
  56. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  57. $(IDIR_SAMBA)/usr/bin
  58. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  59. $(IDIR_SAMBA)/usr/lib
  60. $(CP) $(WRKINST)/usr/lib/samba \
  61. $(IDIR_SAMBA)/usr/lib
  62. include $(ADK_TOPDIR)/mk/pkg-bottom.mk