You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.1 KiB
55 lines
2.1 KiB
################################################################################
|
|
#
|
|
# xupnpd
|
|
#
|
|
################################################################################
|
|
|
|
XUPNPD_VERSION = git
|
|
XUPNPD_DIR = xupnpd.$(XUPNPD_VERSION)
|
|
XUPNPD_SOURCE = xupnpd.$(XUPNPD_VERSION)
|
|
XUPNPD_SITE = https://github.com/clark15b
|
|
|
|
XUPNPD_CHECKOUT = 25d6d44
|
|
|
|
XUPNPD_DEPENDENCIES = lua openssl
|
|
|
|
XUPNPD_MAKE_OPTS = \
|
|
TARGET=$(TARGET) LUAFLAGS="$(TARGET_LDFLAGS) -I$(TARGET_includedir)"
|
|
|
|
define XUPNPD_INSTALL_BINARY
|
|
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/src/xupnpd $(TARGET_bindir)/xupnpd
|
|
endef
|
|
XUPNPD_PRE_FOLLOWUP_HOOKS += XUPNPD_INSTALL_BINARY
|
|
|
|
define XUPNPD_INSTALL_DATA
|
|
$(INSTALL) -d $(TARGET_datadir)/xupnpd/config
|
|
$(INSTALL_COPY) $(PKG_BUILD_DIR)/src/{plugins,profiles,ui,www,*.lua} $(TARGET_datadir)/xupnpd/
|
|
endef
|
|
XUPNPD_PRE_FOLLOWUP_HOOKS += XUPNPD_INSTALL_DATA
|
|
|
|
define XUPNPD_TARGET_CLEANUP
|
|
$(TARGET_RM) $(TARGET_datadir)/xupnpd/plugins/staff/xupnpd_18plus.lua
|
|
endef
|
|
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_TARGET_CLEANUP
|
|
|
|
define XUPNPD_INSTALL_PLUGINS
|
|
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_18plus.lua $(TARGET_datadir)/xupnpd/plugins/
|
|
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_cczwei.lua $(TARGET_datadir)/xupnpd/plugins/
|
|
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_neutrino.lua $(TARGET_datadir)/xupnpd/plugins/
|
|
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_vimeo.lua $(TARGET_datadir)/xupnpd/plugins/
|
|
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_youtube.lua $(TARGET_datadir)/xupnpd/plugins/
|
|
endef
|
|
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_INSTALL_PLUGINS
|
|
|
|
define XUPNPD_INSTALL_SKEL
|
|
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
|
|
$(UPDATE-RC.D) xupnpd defaults 75 25
|
|
endef
|
|
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_INSTALL_SKEL
|
|
|
|
xupnpd: | $(TARGET_DIR)
|
|
$(call PREPARE)
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
$(MAKE) -C src $($(PKG)_MAKE_OPTS) embedded
|
|
$(call TARGET_FOLLOWUP)
|
|
|