2016-07-29 16:28:37 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# minissdpd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-12-19 23:01:20 +01:00
|
|
|
MINISSDPD_VERSION = 1.5.20190824
|
2016-07-29 16:28:37 +02:00
|
|
|
MINISSDPD_SITE = http://miniupnp.free.fr/files
|
2017-03-30 15:43:38 +02:00
|
|
|
MINISSDPD_LICENSE = BSD-3-Clause
|
2016-07-29 16:28:37 +02:00
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|