Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.1.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b0d1b8ec5c8c081a340cfc77bb8670cd
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= portmap
  11. PKG_URL:= http://sourceforge.net/projects/nfs
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
  16. PKG_DEPENDS+= krb5-libs libevent libnfsidmap librpcsecgss libcom_err libgssglue
  17. endif
  18. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
  19. PKG_DEPENDS+= heimdal-libs libevent libnfsidmap librpcsecgss libcom_err
  20. endif
  21. ifeq (${ADK_IPV6},y)
  22. PKG_DEPENDS+= libtirpc
  23. endif
  24. $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. CONFIGURE_STYLE= autotool gnu
  26. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
  27. CONFIGURE_ARGS+= --enable-nfsv4 \
  28. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  29. --enable-gss
  30. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  31. endif
  32. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
  33. CONFIGURE_ARGS+= --enable-nfsv4 \
  34. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  35. --enable-gss
  36. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  37. endif
  38. ifneq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  39. CONFIGURE_ARGS+= --disable-nfsv4 \
  40. --disable-gss
  41. endif
  42. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no
  43. CONFIGURE_ARGS+= --without-tcp-wrappers \
  44. --disable-uuid
  45. BUILD_STYLE= auto
  46. INSTALL_STYLE= auto
  47. TCPPFLAGS+= -I${LINUX_DIR}/include
  48. ifeq (${ADK_IPV6},y)
  49. CONFIGURE_ARGS+= --enable-tirpc \
  50. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc
  51. endif
  52. post-install:
  53. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  54. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  55. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  56. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs ${IDIR_NFS_UTILS}/usr/sbin/
  57. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  58. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  59. ${INSTALL_BIN} ${WRKBUILD}/utils/statd/statd ${IDIR_NFS_UTILS}/usr/sbin/
  60. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd ${IDIR_NFS_UTILS}/usr/sbin/
  61. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd ${IDIR_NFS_UTILS}/usr/sbin/
  62. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  63. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  64. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd ${IDIR_NFS_UTILS}/usr/sbin/
  65. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd ${IDIR_NFS_UTILS}/usr/sbin/
  66. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd ${IDIR_NFS_UTILS}/usr/sbin/
  67. endif
  68. include ${TOPDIR}/mk/pkg-bottom.mk