Blame view

buildroot/buildroot-2016.08.1/package/minissdpd/minissdpd.mk 1.3 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
  ################################################################################
  #
  # minissdpd
  #
  ################################################################################
  
  MINISSDPD_VERSION = 1.5
  MINISSDPD_SITE = http://miniupnp.free.fr/files
  MINISSDPD_LICENSE = BSD-3c
  MINISSDPD_LICENSE_FILES = LICENSE
  MINISSDPD_DEPENDENCIES = libnfnetlink
  
  define MINISSDPD_BUILD_CMDS
  	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
  		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
  		-C $(@D)
  endef
  
  define MINISSDPD_INSTALL_TARGET_CMDS
  	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
  		PREFIX=$(TARGET_DIR) install
  endef
  
  # Use dedicated init scripts for systemV and systemd instead of using
  # minissdpd.init.d.script as it is not compatible with buildroot init system
  define MINISSDPD_INSTALL_INIT_SYSV
  	$(RM) $(TARGET_DIR)/etc/init.d/minissdpd
  	$(INSTALL) -D -m 0755 package/minissdpd/S50minissdpd \
  		$(TARGET_DIR)/etc/init.d/S50minissdpd
  endef
  
  define MINISSDPD_INSTALL_INIT_SYSTEMD
  	$(INSTALL) -D -m 644 package/minissdpd/minissdpd.service \
  		$(TARGET_DIR)/usr/lib/systemd/system/minissdpd.service
  	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
  	ln -sf ../../../../usr/lib/systemd/system/minissdpd.service \
  		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minissdpd.service
  endef
  
  $(eval $(generic-package))