Makefile 2.4 KB

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