Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.5.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7c8d2a34b649380d5df838c3e030dbec
  8. PKG_DESCR:= NetBIOS/SMB file and print server
  9. PKG_SECTION:= net/fs
  10. PKG_URL:= http://www.samba.org/
  11. PKG_SITES:= http://samba.org/samba/ftp/stable/
  12. PKG_SUBPKGS:= SAMBA SAMBA_CLIENT SAMBA_PASSWD
  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. TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba -lintl
  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. post-install:
  40. ${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
  41. ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba/{charset,vfs}
  42. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
  43. ${IDIR_SAMBA}/usr/lib/samba/charset
  44. ${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba/
  45. ${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
  46. ${CP} ${WRKINST}/usr/lib/samba/*.so* ${IDIR_SAMBA}/usr/lib/samba
  47. ${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
  48. ${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
  49. ${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
  50. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
  51. ${IDIR_SAMBA_PASSWD}/usr/bin/
  52. ${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
  53. ${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
  54. ${IDIR_SAMBA_CLIENT}/usr/bin/
  55. include ${TOPDIR}/mk/pkg-bottom.mk