Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.4.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 322379680c12057f57685652a35a6b05
  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}/source3
  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. TLDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba
  19. CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
  20. samba_cv_USE_SETRESUID=no \
  21. ac_cv_lib_ext_nsl_connect=no \
  22. ac_cv_search_yp_get_default_domain=no \
  23. ac_cv_lib_ext_nsl_gethostbyname=no
  24. CONFIGURE_ARGS+= --libdir=/usr/lib/samba \
  25. --localstatedir=/var/log/samba \
  26. --with-configdir=/etc/samba \
  27. --with-lockdir=/var/run/samba \
  28. --with-privatedir=/etc/samba \
  29. --with-libiconv=/dev/null \
  30. --with-syslog \
  31. --without-winbind \
  32. --disable-cups \
  33. --disable-swat \
  34. --disable-avahi \
  35. --with-utmp=no \
  36. --with-ldap=no \
  37. --without-cluster-support \
  38. --without-sendfile-support
  39. CONFIGURE_STYLE:= gnu
  40. BUILD_STYLE:= auto
  41. INSTALL_STYLE:= auto
  42. post-install:
  43. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  44. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba/{charset,vfs}
  45. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
  46. ${IDIR_SAMBA}/usr/lib/samba/charset
  47. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba/
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  49. ${CP} ${WRKINST}/usr/lib/samba/*.so* ${IDIR_SAMBA}/usr/lib/samba
  50. ${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
  51. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
  52. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  53. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  54. ${IDIR_SAMBA_PASSWD}/usr/bin/
  55. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  56. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  57. ${IDIR_SAMBA_CLIENT}/usr/bin/
  58. include ${TOPDIR}/mk/pkg-bottom.mk