Makefile 2.9 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.8
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= fb48630b7c145fb9d6602a79c6eaab11
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= kmod-nfsd keyutils libtirpc rpcbind libdevmapper libpthread
  11. PKG_FDEPENDS:= $(PKG_DEPENDS)
  12. PKG_BUILDDEP:= keyutils libtirpc lvm
  13. PKG_URL:= http://sourceforge.net/projects/nfs
  14. # as long as there are tar archives of nfs-utils with object files
  15. # on some sourceforge mirrors
  16. PKG_SITES:= http://openadk.org/distfiles/
  17. #PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  18. PKG_LIBC_DEPENDS:= uclibc eglibc glibc
  19. PKG_FLAVOURS_NFS_UTILS:=WITH_KERBEROS
  20. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  21. PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue kmod-rpcsec-gss-krb5 kmod-sunrpc-gss
  22. PKGFB_WITH_KERBEROS:= libnfsidmap krb5 libevent libgssglue librpcsecgss
  23. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  24. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  25. PKG_FDEPENDS+= $(PKGFS_WITH_KERBEROS)
  26. endif
  27. include ${TOPDIR}/mk/package.mk
  28. $(eval $(call PKG_template,NFS_UTILS,nfs-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. ifeq ($(ADK_NATIVE),)
  30. KRB5INC:= ${STAGING_TARGET_DIR}/usr
  31. TIRPCINC:= ${STAGING_TARGET_DIR}/usr/include/tirpc
  32. else
  33. KRB5INC:= /usr
  34. TIRPCINC:= /usr/include/tirpc
  35. endif
  36. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  37. CONFIGURE_ARGS+= --enable-nfsv4 \
  38. --with-krb5=$(KRB5INC) \
  39. --enable-gss
  40. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  41. else
  42. CONFIGURE_ARGS+= --disable-nfsv4 \
  43. --disable-nfsv41 \
  44. --disable-gss
  45. endif
  46. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  47. ac_cv_lib_nsl_gethostbyname=no
  48. CONFIGURE_ARGS+= --without-tcp-wrappers \
  49. --disable-nfsdcltrack \
  50. --with-rpcgen=internal \
  51. --enable-tirpc \
  52. --with-tirpcinclude=${TIRPCINC} \
  53. --disable-uuid
  54. nfs-utils-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