1
0

Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/fs
  10. PKG_DEPENDS:= kmod-nfsd portmap
  11. ifeq (${ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS},y)
  12. PKG_BUILDDEP+= libnfsidmap krb5 libevent libgssglue librpcsecgss
  13. endif
  14. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
  15. PKG_BUILDDEP+= libtirpc rpcbind
  16. endif
  17. PKG_URL:= http://sourceforge.net/projects/nfs
  18. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. PKG_FLAVOURS:= WITH_KERBEROS WITH_TIRPC
  21. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  22. PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue
  23. PKGFD_WITH_TIRPC:= enable Transport Independent RPC
  24. PKGFS_WITH_TIRPC:= libtirpc rpcbind
  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_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  28. CONFIGURE_ARGS+= --enable-nfsv4 \
  29. --with-krb5=${STAGING_DIR}/usr/ \
  30. --enable-gss
  31. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  32. else
  33. CONFIGURE_ARGS+= --disable-nfsv4 \
  34. --disable-gss
  35. endif
  36. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
  37. CONFIGURE_ARGS+= --enable-tirpc \
  38. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc
  39. else
  40. CONFIGURE_ARGS+= --disable-tirpc
  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. post-install:
  47. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin ${IDIR_NFS_UTILS}/etc
  48. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  49. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
  50. ${IDIR_NFS_UTILS}/usr/sbin/
  51. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  52. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
  53. ${IDIR_NFS_UTILS}/usr/sbin/
  54. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
  55. ${IDIR_NFS_UTILS}/usr/sbin/
  56. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  57. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  58. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
  59. ${IDIR_NFS_UTILS}/usr/sbin/
  60. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
  61. ${IDIR_NFS_UTILS}/usr/sbin/
  62. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
  63. ${IDIR_NFS_UTILS}/usr/sbin/
  64. endif
  65. include ${TOPDIR}/mk/pkg-bottom.mk