You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcbind
  3. PKG_VERSION:=0.2.4
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_URL:=@SF/rpcbind
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  7. PKG_HASH:=074a9a530dc7c11e0d905aa59bcb0847c009313f02e98d3d798aa9568f414c66
  8. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_FIXUP:=autoreconf
  11. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  12. PKG_INSTALL:=1
  13. PKG_CONFIG_DEPENDS:= \
  14. CONFIG_RPCBIND_LIBWRAP \
  15. CONFIG_RPCBIND_WARMSTARTS
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/rpcbind
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+libtirpc +RPCBIND_LIBWRAP:libwrap
  21. TITLE:=Universal addresses to RPC mapper
  22. URL:=http://libtirpc.sourceforge.net/
  23. USERID:=rpc=65533:rpc=65533
  24. endef
  25. define Package/rpcbind/description
  26. The rpcbind utility is a server that converts RPC program numbers into universal addresses.
  27. It must be running on the host to be able to make RPC calls on a server on that machine.
  28. Rpcbind replaces portmap for NFS v2/v3. It has more features, like ipv6 support.
  29. Note: Nfs4 only configurations can run without it.
  30. endef
  31. define Package/rpcbind/config
  32. if PACKAGE_rpcbind
  33. config RPCBIND_LIBWRAP
  34. bool "Enable libwrap (TCP wrappers) support."
  35. default y
  36. config RPCBIND_WARMSTARTS
  37. bool "Enable warmstarts support"
  38. default y
  39. help
  40. The warmstart feature saves RPC registrations on termination.
  41. endif
  42. endef
  43. CONFIGURE_ARGS += \
  44. --with-rpcuser=rpc \
  45. --without-systemdsystemunitdir
  46. ifeq ($(CONFIG_RPCBIND_LIBWRAP),y)
  47. CONFIGURE_ARGS += --enable-libwrap
  48. endif
  49. ifeq ($(CONFIG_RPCBIND_WARMSTARTS),y)
  50. CONFIGURE_ARGS += --enable-warmstarts
  51. endif
  52. define Package/rpcbind/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_BUILD_DIR)/{rpcbind,rpcinfo} $(1)/usr/bin/
  55. $(INSTALL_DIR) $(1)/etc/init.d
  56. $(INSTALL_BIN) ./files/rpcbind.init $(1)/etc/init.d/rpcbind
  57. endef
  58. $(eval $(call BuildPackage,rpcbind))