mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +04:00
rpcbind: add rpcbind package, remove portmap
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
73
net/rpcbind/Makefile
Normal file
73
net/rpcbind/Makefile
Normal file
@@ -0,0 +1,73 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rpcbind
|
||||
PKG_VERSION:=0.2.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=@SF/rpcbind
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_HASH:=074a9a530dc7c11e0d905aa59bcb0847c009313f02e98d3d798aa9568f414c66
|
||||
|
||||
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_REMOVE_FILES:=autogen.sh aclocal.m4
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_RPCBIND_LIBWRAP \
|
||||
CONFIG_RPCBIND_WARMSTARTS
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/rpcbind
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libtirpc +RPCBIND_LIBWRAP:libwrap
|
||||
TITLE:=Universal addresses to RPC mapper
|
||||
URL:=http://libtirpc.sourceforge.net/
|
||||
USERID:=rpc=65533:rpc=65533
|
||||
endef
|
||||
|
||||
define Package/rpcbind/description
|
||||
The rpcbind utility is a server that converts RPC program numbers into universal addresses.
|
||||
It must be running on the host to be able to make RPC calls on a server on that machine.
|
||||
|
||||
Rpcbind replaces portmap for NFS v2/v3. It has more features, like ipv6 support.
|
||||
Note: Nfs4 only configurations can run without it.
|
||||
endef
|
||||
|
||||
define Package/rpcbind/config
|
||||
if PACKAGE_rpcbind
|
||||
config RPCBIND_LIBWRAP
|
||||
bool "Enable libwrap (TCP wrappers) support."
|
||||
default y
|
||||
|
||||
config RPCBIND_WARMSTARTS
|
||||
bool "Enable warmstarts support"
|
||||
default y
|
||||
help
|
||||
The warmstart feature saves RPC registrations on termination.
|
||||
endif
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--with-rpcuser=rpc \
|
||||
--without-systemdsystemunitdir
|
||||
|
||||
ifeq ($(CONFIG_RPCBIND_LIBWRAP),y)
|
||||
CONFIGURE_ARGS += --enable-libwrap
|
||||
endif
|
||||
ifeq ($(CONFIG_RPCBIND_WARMSTARTS),y)
|
||||
CONFIGURE_ARGS += --enable-warmstarts
|
||||
endif
|
||||
|
||||
define Package/rpcbind/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/{rpcbind,rpcinfo} $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/rpcbind.init $(1)/etc/init.d/rpcbind
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,rpcbind))
|
||||
13
net/rpcbind/files/rpcbind.init
Normal file
13
net/rpcbind/files/rpcbind.init
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=19
|
||||
STOP=19
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/bin/rpcbind -f -w
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user