Makefile 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= nfs-utils
  5. PKG_VERSION:= 1.3.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 5b9c72eef260b86a84619771e11bb013b99431e6b7ff0bbdc03fee90dba591f7
  8. PKG_DESCR:= network filesystem utilities
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= keyutils libtirpc rpcbind libdevmapper
  11. PKG_BUILDDEP:= keyutils libtirpc lvm
  12. PKG_KDEPENDS:= nfs-fs
  13. PKG_NEEDS:= threads
  14. PKG_URL:= http://sourceforge.net/projects/nfs
  15. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  16. PKG_CFLINE_NFS_UTILS:= select ADK_PACKAGE_LIBTIRPC_WITH_GSS if ADK_PACKAGE_NFS_UTILS_V4
  17. PKG_SUBPKGS:= NFS_UTILS NFS_UTILS_CLIENT NFS_UTILS_SERVER
  18. PKGSD_NFS_UTILS_CLIENT:=client utilities
  19. PKGSN_NFS_UTILS_CLIENT:=nfs-utils
  20. PKGSD_NFS_UTILS_SERVER:=server daemons and utilities
  21. PKGSN_NFS_UTILS_SERVER:=nfs-utils
  22. PKG_CHOICES_NFS_UTILS:= V3 V4
  23. PKGCD_V3:= nfs version 3
  24. PKGCD_V4:= nfs version 4
  25. PKGCB_V4:= libevent libnfsidmap krb5 libgssglue librpcsecgss
  26. PKGCS_V4:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue
  27. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  28. include ${ADK_TOPDIR}/mk/package.mk
  29. $(eval $(call PKG_template,NFS_UTILS,nfs-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. $(eval $(call PKG_template,NFS_UTILS_CLIENT,nfs-utils-client,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_CLIENT},${PKGSD_NFS_UTILS_CLIENT},${PKG_SECTION}))
  31. $(eval $(call PKG_template,NFS_UTILS_SERVER,nfs-utils-server,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_SERVER},${PKGSD_NFS_UTILS_SERVER},${PKG_SECTION}))
  32. AUTOTOOL_STYLE:= autoreconf
  33. ifeq ($(ADK_PACKAGE_NFS_UTILS_V4),y)
  34. CONFIGURE_ARGS+= --enable-nfsv4 \
  35. --disable-nfsv41 \
  36. --with-krb5=${STAGING_TARGET_DIR}/usr \
  37. --enable-gss
  38. #CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  39. else
  40. CONFIGURE_ARGS+= --disable-nfsv4 \
  41. --disable-nfsv41 \
  42. --disable-gss
  43. endif
  44. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  45. ac_cv_lib_nsl_gethostbyname=no
  46. CONFIGURE_ARGS+= --without-tcp-wrappers \
  47. --disable-nfsdcltrack \
  48. --with-rpcgen=internal \
  49. --disable-caps \
  50. --enable-tirpc \
  51. --with-tirpcinclude=${STAGING_TARGET_DIR}/usr/include/tirpc \
  52. --disable-uuid
  53. nfs-utils-client-install:
  54. ${INSTALL_DIR} ${IDIR_NFS_UTILS_CLIENT}/sbin
  55. ${CP} ${WRKINST}/sbin/{u,}mount.nfs* ${IDIR_NFS_UTILS_CLIENT}/sbin
  56. nfs-utils-server-install:
  57. ${INSTALL_DIR} ${IDIR_NFS_UTILS_SERVER}/usr/sbin ${IDIR_NFS_UTILS_SERVER}/etc
  58. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
  59. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  60. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS_SERVER}/etc/exports
  61. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
  62. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  63. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
  64. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  65. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  66. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS_SERVER}/etc
  67. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
  68. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  69. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
  70. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  71. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
  72. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  73. endif
  74. nfs-utils-install:
  75. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  76. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  77. include ${ADK_TOPDIR}/mk/pkg-bottom.mk