Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c3ccd16c147befd49fe4541a506dd177
  8. PKG_DESCR:= Utilities for NFS kernel server implementation
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= portmap libtirpc
  11. PKG_BUILDDEP+= libtirpc
  12. ifeq (${ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS},y)
  13. PKG_BUILDDEP+= libnfsidmap krb5 libevent libgssglue librpcsecgss
  14. endif
  15. PKG_URL:= http://sourceforge.net/projects/nfs
  16. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  18. PKG_FLAVOURS:= WITH_KERBEROS
  19. PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
  20. include ${TOPDIR}/mk/package.mk
  21. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  22. PKG_DEPENDS+= krb5-libs libevent libnfsidmap librpcsecgss libcom-err libgssglue
  23. endif
  24. $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. TCPPFLAGS+= -I${LINUX_DIR}/include
  26. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),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. else
  32. CONFIGURE_ARGS+= --disable-nfsv4 \
  33. --disable-gss
  34. endif
  35. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
  36. ac_cv_lib_nsl_gethostbyname=no
  37. CONFIGURE_ARGS+= --without-tcp-wrappers \
  38. --enable-tirpc \
  39. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc \
  40. --disable-uuid
  41. CONFIGURE_STYLE:= gnu
  42. BUILD_STYLE:= auto
  43. INSTALL_STYLE:= auto
  44. post-install:
  45. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  46. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  47. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  48. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs ${IDIR_NFS_UTILS}/usr/sbin/
  49. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  50. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  51. ${INSTALL_BIN} ${WRKBUILD}/utils/statd/statd ${IDIR_NFS_UTILS}/usr/sbin/
  52. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd ${IDIR_NFS_UTILS}/usr/sbin/
  53. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd ${IDIR_NFS_UTILS}/usr/sbin/
  54. ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
  55. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  56. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd ${IDIR_NFS_UTILS}/usr/sbin/
  57. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd ${IDIR_NFS_UTILS}/usr/sbin/
  58. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd ${IDIR_NFS_UTILS}/usr/sbin/
  59. endif
  60. include ${TOPDIR}/mk/pkg-bottom.mk