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.19
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= afe9c7c590f3093555cd6e870d2532e1
  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/samba \
  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/samba/{charset,vfs}
  52. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
  53. ${IDIR_SAMBA}/usr/lib/samba/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/samba/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
  57. ${IDIR_SAMBA}/usr/lib/samba
  58. ${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
  59. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
  60. samba-passwd-install:
  61. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  62. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  63. ${IDIR_SAMBA_PASSWD}/usr/bin
  64. samba-client-install:
  65. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  66. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  67. ${IDIR_SAMBA_CLIENT}/usr/bin
  68. samba-lib-install:
  69. ${INSTALL_DIR} ${IDIR_SAMBA_LIB}/usr/lib/samba
  70. $(CP) ${WRKINST}/usr/lib/samba/{libtalloc,libtdb,libtevent}.* \
  71. ${IDIR_SAMBA_LIB}/usr/lib/samba
  72. include ${TOPDIR}/mk/pkg-bottom.mk