Makefile 2.8 KB

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