Makefile 2.3 KB

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