1 ################################################################################
5 ################################################################################
7 IGD2_FOR_LINUX_VERSION
= v1.2
8 IGD2_FOR_LINUX_SITE
= $(call github
,ffontaine
,igd2-for-linux
,$(IGD2_FOR_LINUX_VERSION
))
10 IGD2_FOR_LINUX_LICENSE
= GPLv2
11 IGD2_FOR_LINUX_LICENSE_FILES
= linuxigd2
/doc
/LICENSE
13 IGD2_FOR_LINUX_DEPENDENCIES
= libupnp
15 IGD2_FOR_LINUX_BUILD_DIR
= $(@D
)/linuxigd2
16 IGD2_FOR_LINUX_CONF_DIR
= $(IGD2_FOR_LINUX_BUILD_DIR
)/configs
18 define IGD2_FOR_LINUX_BUILD_CMDS
19 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(IGD2_FOR_LINUX_BUILD_DIR
) \
20 $(TARGET_CONFIGURE_OPTS
) \
21 LIBUPNP_PREFIX
="$(STAGING_DIR)/usr" \
25 define IGD2_FOR_LINUX_INSTALL_TARGET_CMDS
26 $(INSTALL
) -D
-m
0755 $(IGD2_FOR_LINUX_BUILD_DIR
)/bin
/upnpd \
27 $(TARGET_DIR
)/usr
/sbin
/upnpd
28 $(INSTALL
) -D
-m
0644 $(IGD2_FOR_LINUX_CONF_DIR
)/upnpd.conf \
29 $(TARGET_DIR
)/etc
/upnpd.conf
30 mkdir
-p
$(TARGET_DIR
)/etc
/linuxigd
/
31 cp
-dpfr
$(IGD2_FOR_LINUX_CONF_DIR
)/*.
{xml
,png
} \
32 $(TARGET_DIR
)/etc
/linuxigd
/
35 define IGD2_FOR_LINUX_INSTALL_INIT_SYSV
36 $(INSTALL
) -D
-m
0755 package
/igd2-for-linux
/S99upnpd \
37 $(TARGET_DIR
)/etc
/init.d
/S99upnpd
40 define IGD2_FOR_LINUX_INSTALL_INIT_SYSTEMD
41 $(INSTALL
) -D
-m
0644 package
/igd2-for-linux
/upnpd.service \
42 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/upnpd.service
43 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
44 ln
-sf ..
/..
/..
/..
/usr
/lib
/systemd
/system
/upnpd.service \
45 $(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
/upnpd.service
48 $(eval
$(generic-package
))