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.

68 lines
1.7 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_FIXUP:=autoreconf
  11. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  12. PKG_INSTALL:=1
  13. PKG_CONFIG_DEPENDS:= \
  14. CONFIG_RPCBIND_LIBWRAP
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/rpcbind
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+libtirpc +RPCBIND_LIBWRAP:libwrap
  20. TITLE:=Universal addresses to RPC mapper
  21. URL:=http://rpcbind.sourceforge.net/
  22. USERID:=rpc=65533:rpc=65533
  23. endef
  24. define Package/rpcbind/description
  25. The rpcbind utility is a server that converts RPC program numbers into universal addresses.
  26. It must be running on the host to be able to make RPC calls on a server on that machine.
  27. Rpcbind replaces portmap for NFS v2/v3. It has more features, like ipv6 support.
  28. Note: Nfs4 only configurations can run without it.
  29. endef
  30. define Package/rpcbind/config
  31. if PACKAGE_rpcbind
  32. config RPCBIND_LIBWRAP
  33. bool "Enable libwrap (TCP wrappers) support."
  34. default y
  35. endif
  36. endef
  37. CONFIGURE_ARGS += \
  38. --with-rpcuser=rpc \
  39. --without-systemdsystemunitdir \
  40. --enable-warmstarts
  41. ifeq ($(CONFIG_RPCBIND_LIBWRAP),y)
  42. CONFIGURE_ARGS += --enable-libwrap
  43. else
  44. CONFIGURE_ARGS += --disable-libwrap
  45. endif
  46. define Package/rpcbind/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rpcinfo $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/usr/sbin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rpcbind $(1)/usr/sbin/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/rpcbind.init $(1)/etc/init.d/rpcbind
  53. endef
  54. $(eval $(call BuildPackage,rpcbind))