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.

77 lines
2.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcbind
  3. PKG_VERSION:=1.2.5
  4. PKG_RELEASE:=1
  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_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://rpcbind.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. else
  49. CONFIGURE_ARGS += --disable-libwrap
  50. endif
  51. ifeq ($(CONFIG_RPCBIND_WARMSTARTS),y)
  52. CONFIGURE_ARGS += --enable-warmstarts
  53. endif
  54. define Package/rpcbind/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rpcinfo $(1)/usr/bin/
  57. $(INSTALL_DIR) $(1)/usr/sbin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rpcbind $(1)/usr/sbin/
  59. $(INSTALL_DIR) $(1)/etc/init.d
  60. $(INSTALL_BIN) ./files/rpcbind.init $(1)/etc/init.d/rpcbind
  61. endef
  62. $(eval $(call BuildPackage,rpcbind))