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