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.
52 lines
2.0 KiB
52 lines
2.0 KiB
3 years ago
|
################################################################################
|
||
|
#
|
||
|
# 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_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: $(XUPNPD_DEPENDENCIES) | $(TARGET_DIR)
|
||
|
$(call DEPENDENCIES)
|
||
|
$(call DOWNLOAD,$($(PKG)_SOURCE))
|
||
|
$(call STARTUP)
|
||
|
$(call EXTRACT,$(BUILD_DIR))
|
||
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
|
||
|
$(CHDIR)/$(PKG_DIR); \
|
||
|
$(TARGET_CONFIGURE_ENV) \
|
||
|
$(MAKE) -C src $($(PKG)_MAKE_OPTS) embedded
|
||
|
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/src/xupnpd $(TARGET_bindir)/xupnpd
|
||
|
$(INSTALL) -d $(TARGET_datadir)/xupnpd/config
|
||
|
$(INSTALL_COPY) $(PKG_BUILD_DIR)/src/{plugins,profiles,ui,www,*.lua} $(TARGET_datadir)/xupnpd/
|
||
|
$(call TARGET_FOLLOWUP)
|