Makefile 3.1 KB

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