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.

84 lines
2.2 KiB

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