package/bullet: bump to version 2.85.1
[buildroot-gz.git] / package / rpcbind / rpcbind.mk
blob4360d1f47a3fda139bcfb2658deb012f684358e6
1 ################################################################################
3 # rpcbind
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
13 RPCBIND_CONF_ENV += \
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
20 else
21 RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=no
22 endif
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
32 endef
34 define RPCBIND_INSTALL_INIT_SYSV
35 $(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
36 $(TARGET_DIR)/etc/init.d/S30rpcbind
37 endef
40 $(eval $(autotools-package))