Makefile 2.4 KB

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