Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0bea52842d172231c0c0e23ee570d7af
  8. PKG_DESCR:= NetBIOS/SMB file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_BUILDDEP:= gettext
  11. PKG_DEPENDS:= libintl
  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
  16. WRKSRC= ${WRKDIST}/source3
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba -lintl
  22. CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
  23. samba_cv_USE_SETRESUID=no \
  24. ac_cv_lib_ext_nsl_connect=no \
  25. ac_cv_search_yp_get_default_domain=no \
  26. ac_cv_lib_ext_nsl_gethostbyname=no \
  27. ac_cv_file__proc_sys_kernel_core_pattern=yes \
  28. libreplace_cv_HAVE_GETADDRINFO=no
  29. CONFIGURE_ARGS+= --libdir=/usr/lib/samba \
  30. --localstatedir=/var/log/samba \
  31. --with-configdir=/etc/samba \
  32. --with-lockdir=/var/run/samba \
  33. --with-privatedir=/etc/samba \
  34. --with-libiconv=/dev/null \
  35. --with-syslog \
  36. --without-winbind \
  37. --disable-cups \
  38. --disable-swat \
  39. --disable-avahi \
  40. --with-utmp=no \
  41. --with-ldap=no \
  42. --without-cluster-support \
  43. --without-sendfile-support
  44. post-install:
  45. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  46. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba/{charset,vfs}
  47. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
  48. ${IDIR_SAMBA}/usr/lib/samba/charset
  49. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
  50. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  51. ${CP} ${WRKINST}/usr/lib/samba/*.so* ${IDIR_SAMBA}/usr/lib/samba
  52. ${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
  53. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
  54. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  56. ${IDIR_SAMBA_PASSWD}/usr/bin
  57. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  59. ${IDIR_SAMBA_CLIENT}/usr/bin
  60. include ${TOPDIR}/mk/pkg-bottom.mk