Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= c3ccd16c147befd49fe4541a506dd177
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= kmod-nfsd
  11. ifeq (${ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS},y)
  12. PKG_DEPENDS+= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue
  13. PKG_BUILDDEP+= libnfsidmap krb5 libevent libgssglue librpcsecgss
  14. endif
  15. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
  16. PKG_DEPENDS+= libtirpc rpcbind
  17. PKG_BUILDDEP+= libtirpc rpcbind
  18. else
  19. PKG_DEPENDS:= portmap
  20. endif
  21. PKG_URL:= http://sourceforge.net/projects/nfs
  22. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  23. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  24. PKG_FLAVOURS:= WITH_KERBEROS WITH_TIRPC
  25. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  26. PKGFD_WITH_TIRPC:= enable Transport Independent RPC
  27. include ${TOPDIR}/mk/package.mk
  28. $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  30. CONFIGURE_ARGS+= --enable-nfsv4 \
  31. --with-krb5=${STAGING_DIR}/usr/ \
  32. --enable-gss
  33. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  34. else
  35. CONFIGURE_ARGS+= --disable-nfsv4 \
  36. --disable-gss
  37. endif
  38. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
  39. CONFIGURE_ARGS+= --enable-tirpc \
  40. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc
  41. else
  42. CONFIGURE_ARGS+= --disable-tirpc
  43. endif
  44. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  45. ac_cv_lib_nsl_gethostbyname=no
  46. CONFIGURE_ARGS+= --without-tcp-wrappers \
  47. --disable-uuid
  48. post-install:
  49. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin ${IDIR_NFS_UTILS}/etc
  50. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  51. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
  52. ${IDIR_NFS_UTILS}/usr/sbin/
  53. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  54. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
  55. ${IDIR_NFS_UTILS}/usr/sbin/
  56. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
  57. ${IDIR_NFS_UTILS}/usr/sbin/
  58. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  59. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  60. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
  61. ${IDIR_NFS_UTILS}/usr/sbin/
  62. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
  63. ${IDIR_NFS_UTILS}/usr/sbin/
  64. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
  65. ${IDIR_NFS_UTILS}/usr/sbin/
  66. endif
  67. include ${TOPDIR}/mk/pkg-bottom.mk