Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.3.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1443165edb7cb3f56f1e77aec1ee3266
  8. PKG_DESCR:= NetBIOS/SMB file and print server
  9. PKG_SECTION:= net
  10. PKG_URL:= http://www.samba.org
  11. PKG_SITES:= ftp://se.samba.org/pub/samba/stable/ \
  12. ftp://ftp.easynet.be/samba/stable/
  13. WRKSRC= ${WRKDIST}/source
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_STYLE:= gnu
  19. TLDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba
  20. CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
  21. samba_cv_USE_SETRESUID=no \
  22. ac_cv_lib_ext_nsl_connect=no \
  23. ac_cv_search_yp_get_default_domain=no \
  24. ac_cv_lib_ext_nsl_gethostbyname=no
  25. ifeq ($(ADK_IPV6),y)
  26. CONFIGURE_ENV+= libreplace_cv_HAVE_IPV6=yes
  27. else
  28. CONFIGURE_ENV+= libreplace_cv_HAVE_IPV6=no
  29. endif
  30. CONFIGURE_ARGS+= --libdir=/usr/lib/samba \
  31. --localstatedir=/var/log/samba \
  32. --with-configdir=/etc/samba \
  33. --with-lockdir=/var/run/samba \
  34. --with-privatedir=/etc/samba \
  35. --with-libiconv=/dev/null \
  36. --with-syslog \
  37. --without-winbind \
  38. --disable-cups \
  39. --disable-swat \
  40. --disable-avahi \
  41. --with-utmp=no \
  42. --with-ldap=no \
  43. --without-cluster-support \
  44. --without-sendfile-support
  45. BUILD_STYLE:= auto
  46. INSTALL_STYLE:= auto
  47. post-install:
  48. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  49. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba/{charset,vfs}
  50. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
  51. ${IDIR_SAMBA}/usr/lib/samba/charset
  52. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba/
  53. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  54. ${CP} ${WRKINST}/usr/lib/samba/*.so* ${IDIR_SAMBA}/usr/lib/samba
  55. ${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
  56. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
  57. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  59. ${IDIR_SAMBA_PASSWD}/usr/bin/
  60. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  61. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  62. ${IDIR_SAMBA_CLIENT}/usr/bin/
  63. include ${TOPDIR}/mk/pkg-bottom.mk