Makefile 3.2 KB

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