84c07e1f51
cpe:2.3🅰️miniupnp_project:minissdpd is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Aminiupnp_project%3Aminissdpd Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# minissdpd
|
|
#
|
|
################################################################################
|
|
|
|
MINISSDPD_VERSION = 1.5.20200928
|
|
MINISSDPD_SITE = http://miniupnp.free.fr/files
|
|
MINISSDPD_LICENSE = BSD-3-Clause
|
|
MINISSDPD_LICENSE_FILES = LICENSE
|
|
MINISSDPD_CPE_ID_VENDOR = miniupnp_project
|
|
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))
|