1
0

Makefile 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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:= nfs-utils
  5. PKG_VERSION:= 1.2.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 779cf81044e92cb51ad590960e7b3671
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= portmap
  11. PKG_URL:= http://sourceforge.net/projects/nfs
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
  16. PKG_DEPENDS+= krb5-libs libevent libnfsidmap librpcsecgss libcom_err libgssglue
  17. endif
  18. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
  19. PKG_DEPENDS+= heimdal-libs libevent libnfsidmap librpcsecgss libcom_err
  20. endif
  21. ifeq (${ADK_IPV6},y)
  22. PKG_DEPENDS+= libtirpc
  23. endif
  24. $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. CONFIGURE_STYLE= autotool gnu
  26. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
  27. CONFIGURE_ARGS+= --enable-nfsv4 \
  28. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  29. --enable-gss
  30. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  31. endif
  32. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
  33. CONFIGURE_ARGS+= --enable-nfsv4 \
  34. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  35. --enable-gss
  36. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  37. endif
  38. ifneq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  39. CONFIGURE_ARGS+= --disable-nfsv4 \
  40. --disable-gss
  41. endif
  42. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  43. ac_cv_lib_nsl_gethostbyname=no
  44. CONFIGURE_ARGS+= --without-tcp-wrappers \
  45. --disable-uuid
  46. BUILD_STYLE= auto
  47. INSTALL_STYLE= auto
  48. TCPPFLAGS+= -I${LINUX_DIR}/include
  49. ifeq (${ADK_IPV6},y)
  50. CONFIGURE_ARGS+= --enable-tirpc \
  51. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc
  52. endif
  53. post-install:
  54. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  55. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  56. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  57. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs ${IDIR_NFS_UTILS}/usr/sbin/
  58. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  59. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  60. ${INSTALL_BIN} ${WRKBUILD}/utils/statd/statd ${IDIR_NFS_UTILS}/usr/sbin/
  61. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd ${IDIR_NFS_UTILS}/usr/sbin/
  62. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd ${IDIR_NFS_UTILS}/usr/sbin/
  63. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  64. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  65. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd ${IDIR_NFS_UTILS}/usr/sbin/
  66. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd ${IDIR_NFS_UTILS}/usr/sbin/
  67. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd ${IDIR_NFS_UTILS}/usr/sbin/
  68. endif
  69. include ${TOPDIR}/mk/pkg-bottom.mk