Makefile 3.8 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= samba
  5. PKG_VERSION:= 3.6.24
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 11d0bd04b734731970259efc6692b8e749ff671a9b56d8cc5fa98c192ab234a7
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= SAMBA SAMBA_CLIENT SAMBA_PASSWD SAMBA_LIB
  16. PKGSD_SAMBA_CLIENT:= smb client
  17. PKGSS_SAMBA_CLIENT:= libreadline samba-lib
  18. PKGSD_SAMBA_PASSWD:= smb password utility
  19. PKGSD_SAMBA_LIB:= smb libraries
  20. PKGSC_SAMBA_LIB:= libs/net
  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 ${ADK_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},${PKGSC_SAMBA_LIB}))
  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. --with-pam=no \
  68. --without-cluster-support \
  69. --without-sendfile-support
  70. samba-install:
  71. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  72. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/{charset,vfs}
  73. ${INSTALL_DATA} ${WRKINST}/usr/lib/charset/CP850.so \
  74. ${IDIR_SAMBA}/usr/lib/charset
  75. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
  76. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  77. ${CP} ${WRKINST}/usr/lib/vfs/*.so* ${IDIR_SAMBA}/usr/lib/vfs
  78. ${INSTALL_DATA} ${WRKINST}/usr/lib/*.dat ${IDIR_SAMBA}/usr/lib
  79. samba-passwd-install:
  80. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  81. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  82. ${IDIR_SAMBA_PASSWD}/usr/bin
  83. samba-client-install:
  84. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  85. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  86. ${IDIR_SAMBA_CLIENT}/usr/bin
  87. samba-lib-install:
  88. ${INSTALL_DIR} ${IDIR_SAMBA_LIB}/usr/lib
  89. ${CP} ${WRKINST}/usr/lib/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
  90. ${IDIR_SAMBA_LIB}/usr/lib
  91. $(CP) ${WRKINST}/usr/lib/{libtalloc,libtdb,libtevent}.so* \
  92. ${IDIR_SAMBA_LIB}/usr/lib
  93. include ${ADK_TOPDIR}/mk/pkg-bottom.mk