Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.3.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 9908a80d95b9e2583906ed4347a8c80b769539a2788158992fb48ea9fb4d2c82
  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:= libuuid libpopt libgnutls
  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. CONFIG_STYLE:= minimal
  20. CONFIGURE_ARGS+= --enable-fhs \
  21. --prefix=/usr \
  22. --sysconfdir=/etc \
  23. --localstatedir=/var \
  24. --with-privatedir=/etc/samba \
  25. --cross-compile \
  26. --cross-answers=$(WRKSRC)/cache.txt \
  27. --hostcc=gcc \
  28. --without-pie \
  29. --without-relro \
  30. --without-systemd \
  31. --without-automount \
  32. --without-pam \
  33. --without-fam \
  34. --without-dmapi \
  35. --without-ads \
  36. --without-ldap \
  37. --without-acl-support \
  38. --disable-glusterfs \
  39. --disable-iprint \
  40. --disable-cups \
  41. --disable-avahi \
  42. --disable-rpath \
  43. --bundled-libraries='com_err,!asn1_compile,!compile_et' \
  44. --disable-rpath-install
  45. CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
  46. python_LDFLAGS="" \
  47. python_LIBDIR=""
  48. pre-configure:
  49. $(CP) ./files/cache.txt $(WRKSRC)
  50. echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
  51. samba-install:
  52. $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
  53. $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
  54. $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
  55. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
  56. $(IDIR_SAMBA)/usr/sbin
  57. $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
  58. $(IDIR_SAMBA)/usr/bin
  59. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  60. $(IDIR_SAMBA)/usr/lib
  61. $(CP) $(WRKINST)/usr/lib/samba \
  62. $(IDIR_SAMBA)/usr/lib
  63. include $(ADK_TOPDIR)/mk/pkg-bottom.mk