Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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:= 2
  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_FLAVOURS:= WITH_KERBEROS WITH_TIRPC
  14. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  15. PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue
  16. PKGFB_WITH_KERBEROS:= libnfsidmap krb5 libevent libgssglue librpcsecgss
  17. PKGFD_WITH_TIRPC:= enable Transport Independent RPC
  18. PKGFS_WITH_TIRPC:= libtirpc rpcbind
  19. PKGFB_WITH_TIRPC:= libtirpc rpcbind
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  24. CONFIGURE_ARGS+= --enable-nfsv4 \
  25. --with-krb5=${STAGING_TARGET_DIR}/usr/ \
  26. --enable-gss
  27. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  28. else
  29. CONFIGURE_ARGS+= --disable-nfsv4 \
  30. --disable-gss
  31. endif
  32. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
  33. CONFIGURE_ARGS+= --enable-tirpc \
  34. --with-tirpcinclude=${STAGING_TARGET_DIR}/usr/include/tirpc
  35. else
  36. CONFIGURE_ARGS+= --disable-tirpc
  37. endif
  38. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  39. ac_cv_lib_nsl_gethostbyname=no
  40. CONFIGURE_ARGS+= --without-tcp-wrappers \
  41. --with-rpcgen=internal \
  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