1
0

Makefile 3.7 KB

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