Makefile 3.8 KB

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