1 ################################################################################
5 ################################################################################
7 RPCBIND_VERSION
= 0.2.3
8 RPCBIND_SITE
= http
://downloads.sourceforge.net
/project
/rpcbind
/rpcbind
/$(RPCBIND_VERSION
)
9 RPCBIND_SOURCE
= rpcbind-
$(RPCBIND_VERSION
).
tar.bz2
10 RPCBIND_LICENSE
= BSD-3c
11 RPCBIND_LICENSE_FILES
= COPYING
14 CFLAGS
="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
15 RPCBIND_DEPENDENCIES
+= libtirpc host-pkgconf
16 RPCBIND_CONF_OPTS
+= --with-rpcuser
=root
18 ifeq ($(BR2_INIT_SYSTEMD
),y
)
19 RPCBIND_CONF_OPTS
+= --with-systemdsystemunitdir
=/usr
/lib
/systemd
/system
21 RPCBIND_CONF_OPTS
+= --with-systemdsystemunitdir
=no
24 define RPCBIND_INSTALL_INIT_SYSTEMD
25 $(INSTALL
) -m
0755 -D package
/rpcbind
/rpcbind.service \
26 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/rpcbind.service
27 $(INSTALL
) -m
0755 -D package
/rpcbind
/rpcbind.socket \
28 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/rpcbind.socket
29 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/sockets.target.wants
30 ln
-fs ..
/..
/..
/..
/usr
/lib
/systemd
/system
/rpcbind.socket \
31 $(TARGET_DIR
)/etc
/systemd
/system
/sockets.target.wants
/rpcbind.socket
34 define RPCBIND_INSTALL_INIT_SYSV
35 $(INSTALL
) -m
0755 -D package
/rpcbind
/S30rpcbind \
36 $(TARGET_DIR
)/etc
/init.d
/S30rpcbind
40 $(eval
$(autotools-package
))