Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= samba
  5. PKG_VERSION:= 3.6.23
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 2f7aee1dc5d31aefcb364600915b31dc
  8. PKG_DESCR:= NetBIOS/SMB file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_BUILDDEP:= gettext-tiny util-linux popt
  11. PKG_DEPENDS:= samba-lib libuuid libpopt
  12. PKG_URL:= http://www.samba.org/
  13. PKG_SITES:= http://samba.org/samba/ftp/stable/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= SAMBA SAMBA_CLIENT SAMBA_PASSWD SAMBA_LIB
  16. PKGSD_SAMBA_CLIENT:= NetBIOS/SMB client
  17. PKGSS_SAMBA_CLIENT:= libreadline samba-lib
  18. PKGSD_SAMBA_PASSWD:= SMB password utility
  19. PKGSD_SAMBA_LIB:= SMB libraries
  20. PKG_FLAVOURS_SAMBA:= WITH_WINBIND WITH_LDAP
  21. PKGFD_WITH_WINBIND:= enable winbind support
  22. PKGFS_WITH_WINBIND:= libkrb5
  23. PKGFB_WITH_WINBIND:= krb5
  24. PKGFD_WITH_LDAP:= enable LDAP support
  25. PKGFS_WITH_LDAP:= libopenldap
  26. PKGFB_WITH_LDAP:= openldap
  27. WRKSRC= ${WRKDIST}/source3
  28. include ${TOPDIR}/mk/package.mk
  29. $(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. $(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_CLIENT},${PKG_SECTION}))
  31. $(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_PASSWD},${PKG_SECTION}))
  32. $(eval $(call PKG_template,SAMBA_LIB,samba-lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_LIB},${PKG_SECTION}))
  33. ifneq ($(ADK_PACKAGE_SAMBA_WITH_WINBIND),)
  34. CONFIGURE_ARGS+= --with-winbind \
  35. --with-krb5="$(STAGING_TARGET_DIR)/usr"
  36. else
  37. CONFIGURE_ARGS+= --without-winbind
  38. endif
  39. ifneq ($(ADK_PACKAGE_SAMBA_WITH_LDAP),)
  40. CONFIGURE_ARGS+= --with-ldap
  41. else
  42. CONFIGURE_ARGS+= --with-ldap=no
  43. endif
  44. CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
  45. samba_cv_USE_SETRESUID=no \
  46. samba_cv_HAVE_WRFILE_KEYTAB=yes \
  47. ac_cv_func_ext_krb5_enctype_to_string=yes \
  48. smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes \
  49. smb_krb5_cv_enctype_to_string_takes_size_t_arg=no \
  50. ac_cv_lib_ext_nsl_connect=no \
  51. ac_cv_search_yp_get_default_domain=no \
  52. ac_cv_lib_ext_nsl_gethostbyname=no \
  53. ac_cv_file__proc_sys_kernel_core_pattern=yes \
  54. libreplace_cv_HAVE_GETADDRINFO=no
  55. CONFIGURE_ARGS+= --libdir=/usr/lib \
  56. --localstatedir=/var/log/samba \
  57. --with-configdir=/etc/samba \
  58. --with-lockdir=/var/run/samba \
  59. --with-privatedir=/etc/samba \
  60. --with-libiconv=/dev/null \
  61. --with-syslog \
  62. --disable-cups \
  63. --disable-swat \
  64. --disable-avahi \
  65. --with-utmp=no \
  66. --without-cluster-support \
  67. --without-sendfile-support
  68. samba-install:
  69. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  70. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/{charset,vfs}
  71. ${INSTALL_DATA} ${WRKINST}/usr/lib/charset/CP850.so \
  72. ${IDIR_SAMBA}/usr/lib/charset
  73. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
  74. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  75. ${CP} ${WRKINST}/usr/lib/vfs/*.so* ${IDIR_SAMBA}/usr/lib/vfs
  76. ${INSTALL_DATA} ${WRKINST}/usr/lib/*.dat ${IDIR_SAMBA}/usr/lib
  77. samba-passwd-install:
  78. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  79. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  80. ${IDIR_SAMBA_PASSWD}/usr/bin
  81. samba-client-install:
  82. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  83. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  84. ${IDIR_SAMBA_CLIENT}/usr/bin
  85. samba-lib-install:
  86. ${INSTALL_DIR} ${IDIR_SAMBA_LIB}/usr/lib
  87. ${CP} ${WRKINST}/usr/lib/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
  88. ${IDIR_SAMBA_LIB}/usr/lib
  89. $(CP) ${WRKINST}/usr/lib/{libtalloc,libtdb,libtevent}.* \
  90. ${IDIR_SAMBA_LIB}/usr/lib
  91. include ${TOPDIR}/mk/pkg-bottom.mk