Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= nfs-utils
  7. PKG_VERSION:= 1.1.6
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= b0d1b8ec5c8c081a340cfc77bb8670cd
  10. MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
  11. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,NFS_UTILS,nfs-utils,${PKG_VERSION}-${PKG_RELEASE}))
  14. PKG_DEPENDS:= portmap,
  15. CONFIGURE_STYLE= autotool gnu
  16. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
  17. CONFIGURE_ARGS+= --enable-nfsv4 \
  18. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  19. --enable-gss
  20. PKG_DEPENDS+= krb5-libs, libevent, libnfsidmap, librpcsecgss, libcom_err, libgssglue
  21. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  22. endif
  23. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
  24. CONFIGURE_ARGS+= --enable-nfsv4 \
  25. --with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
  26. --enable-gss
  27. PKG_DEPENDS+= heimdal-libs, libevent, libnfsidmap, librpcsecgss, libcom_err
  28. CONFIGURE_ENV+= LIBS="-lrpcsecgss"
  29. endif
  30. ifneq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  31. CONFIGURE_ARGS+= --disable-nfsv4 \
  32. --disable-gss
  33. endif
  34. CONFIGURE_ENV+= knfsd_cv_bsd_signals=no
  35. CONFIGURE_ARGS+= --without-tcp-wrappers \
  36. --disable-uuid
  37. BUILD_STYLE= auto
  38. INSTALL_STYLE= auto
  39. TCPPFLAGS+= -I${LINUX_DIR}/include
  40. ifeq (${ADK_IPV6},y)
  41. PKG_DEPENDS+= , libtirpc
  42. CONFIGURE_ARGS+= --enable-tirpc \
  43. --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc
  44. endif
  45. post-install:
  46. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  47. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
  48. ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
  49. ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs ${IDIR_NFS_UTILS}/usr/sbin/
  50. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc/init.d
  51. ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
  52. ${INSTALL_BIN} ./files/nfsd.init \
  53. ${IDIR_NFS_UTILS}/etc/init.d/nfs-server
  54. ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
  55. ${INSTALL_BIN} ${WRKBUILD}/utils/statd/statd ${IDIR_NFS_UTILS}/usr/sbin/
  56. ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd ${IDIR_NFS_UTILS}/usr/sbin/
  57. ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd ${IDIR_NFS_UTILS}/usr/sbin/
  58. ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
  59. ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
  60. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd ${IDIR_NFS_UTILS}/usr/sbin/
  61. ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd ${IDIR_NFS_UTILS}/usr/sbin/
  62. ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd ${IDIR_NFS_UTILS}/usr/sbin/
  63. endif
  64. echo 'Depends: ${PKG_DEPENDS}' >>${IDIR_NFS_UTILS}/CONTROL/control
  65. include ${TOPDIR}/mk/pkg-bottom.mk