Makefile 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. ifeq ($(ADK_NATIVE),)
  34. KRB5INC:= ${STAGING_TARGET_DIR}/usr
  35. TIRPCINC:= ${STAGING_TARGET_DIR}/usr/include/tirpc
  36. else
  37. KRB5INC:= /usr
  38. TIRPCINC:= /usr/include/tirpc
  39. endif
  40. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  41. CONFIGURE_ARGS+= --enable-nfsv4 \
  42. --with-krb5=$(KRB5INC) \
  43. --enable-gss
  44. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  45. else
  46. CONFIGURE_ARGS+= --disable-nfsv4 \
  47. --disable-nfsv41 \
  48. --disable-gss
  49. endif
  50. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  51. ac_cv_lib_nsl_gethostbyname=no
  52. CONFIGURE_ARGS+= --without-tcp-wrappers \
  53. --disable-nfsdcltrack \
  54. --with-rpcgen=internal \
  55. --enable-tirpc \
  56. --with-tirpcinclude=${TIRPCINC} \
  57. --disable-uuid
  58. nfs-utils-client-install:
  59. ${INSTALL_DIR} ${IDIR_NFS_UTILS_CLIENT}/sbin
  60. ${CP} ${WRKINST}/sbin/{u,}mount.nfs* ${IDIR_NFS_UTILS_CLIENT}/sbin
  61. nfs-utils-server-install:
  62. ${INSTALL_DIR} ${IDIR_NFS_UTILS_SERVER}/usr/sbin ${IDIR_NFS_UTILS_SERVER}/etc
  63. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
  64. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  65. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS_SERVER}/etc/exports
  66. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
  67. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  68. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
  69. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  70. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  71. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS_SERVER}/etc
  72. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
  73. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  74. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
  75. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  76. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
  77. ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
  78. endif
  79. nfs-utils-install:
  80. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  81. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  82. include ${TOPDIR}/mk/pkg-bottom.mk