1
0

Makefile 3.1 KB

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