1
0

Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.9
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 18869d16db3f49c053f8c68eba3fe2e0
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net/fs
  10. PKG_DEPENDS:= 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. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  15. PKG_LIBC_DEPENDS:= uclibc glibc
  16. PKG_SUBPKGS:= NFS_UTILS NFS_UTILS_CLIENT NFS_UTILS_SERVER
  17. PKGSS_NFS_UTILS_CLIENT:=kmod-nfs-fs kmod-sunrpc
  18. PKGSD_NFS_UTILS_CLIENT:=NFS client utilities (mount)
  19. PKGSS_NFS_UTILS_SERVER:=kmod-nfsd kmod-sunrpc
  20. PKGSD_NFS_UTILS_SERVER:=NFS server daemons and utilities
  21. PKG_FLAVOURS_NFS_UTILS:=WITH_KERBEROS
  22. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  23. PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue kmod-rpcsec-gss-krb5 kmod-sunrpc-gss
  24. PKGFB_WITH_KERBEROS:= libnfsidmap krb5 libevent libgssglue librpcsecgss
  25. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  26. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  27. PKG_FDEPENDS+= $(PKGFS_WITH_KERBEROS)
  28. endif
  29. include ${TOPDIR}/mk/package.mk
  30. $(eval $(call PKG_template,NFS_UTILS,nfs-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
  31. $(eval $(call PKG_template,NFS_UTILS_CLIENT,nfs-utils-client,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_CLIENT},${PKGSD_NFS_UTILS_CLIENT},${PKG_SECTION}))
  32. $(eval $(call PKG_template,NFS_UTILS_SERVER,nfs-utils-server,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_SERVER},${PKGSD_NFS_UTILS_SERVER},${PKG_SECTION}))
  33. KRB5INC:= ${STAGING_TARGET_DIR}/usr
  34. TIRPCINC:= ${STAGING_TARGET_DIR}/usr/include/tirpc
  35. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  36. CONFIGURE_ARGS+= --enable-nfsv4 \
  37. --with-krb5=$(KRB5INC) \
  38. --enable-gss
  39. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  40. else
  41. CONFIGURE_ARGS+= --disable-nfsv4 \
  42. --disable-nfsv41 \
  43. --disable-gss
  44. endif
  45. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  46. ac_cv_lib_nsl_gethostbyname=no
  47. CONFIGURE_ARGS+= --without-tcp-wrappers \
  48. --disable-nfsdcltrack \
  49. --with-rpcgen=internal \
  50. --enable-tirpc \
  51. --with-tirpcinclude=${TIRPCINC} \
  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 ${TOPDIR}/mk/pkg-bottom.mk