Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.21
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= faa67c625508dc495c082357913ccea6
  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_SUBPKGS:= SAMBA SAMBA_CLIENT SAMBA_PASSWD SAMBA_LIB
  15. PKGSD_SAMBA_CLIENT:= NetBIOS/SMB client
  16. PKGSS_SAMBA_CLIENT:= libreadline samba-lib
  17. PKGSD_SAMBA_PASSWD:= SMB password utility
  18. PKGSD_SAMBA_LIB:= SMB libraries
  19. WRKSRC= ${WRKDIST}/source3
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_CLIENT},${PKG_SECTION}))
  23. $(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_PASSWD},${PKG_SECTION}))
  24. $(eval $(call PKG_template,SAMBA_LIB,samba-lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SAMBA_LIB},${PKG_SECTION}))
  25. #TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba
  26. CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
  27. samba_cv_USE_SETRESUID=no \
  28. ac_cv_lib_ext_nsl_connect=no \
  29. ac_cv_search_yp_get_default_domain=no \
  30. ac_cv_lib_ext_nsl_gethostbyname=no \
  31. ac_cv_file__proc_sys_kernel_core_pattern=yes \
  32. libreplace_cv_HAVE_GETADDRINFO=no
  33. CONFIGURE_ARGS+= --libdir=/usr/lib \
  34. --localstatedir=/var/log/samba \
  35. --with-configdir=/etc/samba \
  36. --with-lockdir=/var/run/samba \
  37. --with-privatedir=/etc/samba \
  38. --with-libiconv=/dev/null \
  39. --with-syslog \
  40. --without-winbind \
  41. --disable-cups \
  42. --disable-swat \
  43. --disable-avahi \
  44. --with-utmp=no \
  45. --with-ldap=no \
  46. --without-cluster-support \
  47. --without-sendfile-support
  48. samba-install:
  49. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  50. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/{charset,vfs}
  51. ${INSTALL_DATA} ${WRKINST}/usr/lib/charset/CP850.so \
  52. ${IDIR_SAMBA}/usr/lib/charset
  53. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  55. ${CP} ${WRKINST}/usr/lib/vfs/*.so* ${IDIR_SAMBA}/usr/lib/vfs
  56. ${INSTALL_DATA} ${WRKINST}/usr/lib/*.dat ${IDIR_SAMBA}/usr/lib
  57. samba-passwd-install:
  58. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  59. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  60. ${IDIR_SAMBA_PASSWD}/usr/bin
  61. samba-client-install:
  62. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  63. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  64. ${IDIR_SAMBA_CLIENT}/usr/bin
  65. samba-lib-install:
  66. ${INSTALL_DIR} ${IDIR_SAMBA_LIB}/usr/lib
  67. ${CP} ${WRKINST}/usr/lib/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
  68. ${IDIR_SAMBA_LIB}/usr/lib
  69. $(CP) ${WRKINST}/usr/lib/{libtalloc,libtdb,libtevent}.* \
  70. ${IDIR_SAMBA_LIB}/usr/lib
  71. include ${TOPDIR}/mk/pkg-bottom.mk