Makefile 2.9 KB

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