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.

69 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rpcbind
  3. PKG_VERSION:=1.2.5
  4. PKG_RELEASE:=2
  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. 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. endif
  37. endef
  38. CONFIGURE_ARGS += \
  39. --with-rpcuser=rpc \
  40. --without-systemdsystemunitdir \
  41. --enable-warmstarts
  42. ifeq ($(CONFIG_RPCBIND_LIBWRAP),y)
  43. CONFIGURE_ARGS += --enable-libwrap
  44. else
  45. CONFIGURE_ARGS += --disable-libwrap
  46. endif
  47. define Package/rpcbind/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rpcinfo $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rpcbind $(1)/usr/sbin/
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. $(INSTALL_BIN) ./files/rpcbind.init $(1)/etc/init.d/rpcbind
  54. endef
  55. $(eval $(call BuildPackage,rpcbind))