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