Blame view

buildroot/buildroot-2016.08.1/package/rpcbind/rpcbind.mk 1.34 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  ################################################################################
  #
  # rpcbind
  #
  ################################################################################
  
  RPCBIND_VERSION = 0.2.3
  RPCBIND_SITE = http://downloads.sourceforge.net/project/rpcbind/rpcbind/$(RPCBIND_VERSION)
  RPCBIND_SOURCE = rpcbind-$(RPCBIND_VERSION).tar.bz2
  RPCBIND_LICENSE = BSD-3c
  RPCBIND_LICENSE_FILES = COPYING
  
  RPCBIND_CONF_ENV += \
  	CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
  RPCBIND_DEPENDENCIES += libtirpc host-pkgconf
  RPCBIND_CONF_OPTS += --with-rpcuser=root
  
  ifeq ($(BR2_INIT_SYSTEMD),y)
  RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
  else
  RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=no
  endif
  
  define RPCBIND_INSTALL_INIT_SYSTEMD
  	$(INSTALL) -m 0755 -D package/rpcbind/rpcbind.service \
  		$(TARGET_DIR)/usr/lib/systemd/system/rpcbind.service
  	$(INSTALL) -m 0755 -D package/rpcbind/rpcbind.socket \
  		$(TARGET_DIR)/usr/lib/systemd/system/rpcbind.socket
  	mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
  	ln -fs ../../../../usr/lib/systemd/system/rpcbind.socket \
  		$(TARGET_DIR)/etc/systemd/system/sockets.target.wants/rpcbind.socket
  endef
  
  define RPCBIND_INSTALL_INIT_SYSV
  	$(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
  		$(TARGET_DIR)/etc/init.d/S30rpcbind
  endef
  
  
  $(eval $(autotools-package))