mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
package/tvheadend: Enable bundled build
host-python is needed to create a bundled version of the tvheadend binary which includes all files used by the web UI. Having host-python alone as dependency is not enough, we need to add --enable-bundle to enable this functionality. Also remove the now bundled webinterface files from /usr/share/tvheadend/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
050ca88db3
commit
843db449d9
@ -37,6 +37,7 @@ define TVHEADEND_CONFIGURE_CMDS
|
|||||||
--cpu="$(BR2_GCC_TARGET_CPU)" \
|
--cpu="$(BR2_GCC_TARGET_CPU)" \
|
||||||
--python="$(HOST_DIR)/usr/bin/python" \
|
--python="$(HOST_DIR)/usr/bin/python" \
|
||||||
--disable-dvbscan \
|
--disable-dvbscan \
|
||||||
|
--enable-bundle \
|
||||||
$(TVHEADEND_CONF_OPTS) \
|
$(TVHEADEND_CONF_OPTS) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
@ -49,6 +50,15 @@ define TVHEADEND_INSTALL_TARGET_CMDS
|
|||||||
$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Remove documentation and source files that are not needed because we
|
||||||
|
# use the bundled web interface version.
|
||||||
|
define TVHEADEND_CLEAN_SHARE
|
||||||
|
rm -rf $(TARGET_DIR)/usr/share/tvheadend/docs
|
||||||
|
rm -rf $(TARGET_DIR)/usr/share/tvheadend/src
|
||||||
|
endef
|
||||||
|
|
||||||
|
TVHEADEND_POST_INSTALL_TARGET_HOOKS += TVHEADEND_CLEAN_SHARE
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# To run tvheadend, we need:
|
# To run tvheadend, we need:
|
||||||
# - a startup script, and its config file
|
# - a startup script, and its config file
|
||||||
@ -59,7 +69,7 @@ define TVHEADEND_INSTALL_DB
|
|||||||
$(TARGET_DIR)/home/tvheadend/.hts/tvheadend/accesscontrol/1
|
$(TARGET_DIR)/home/tvheadend/.hts/tvheadend/accesscontrol/1
|
||||||
chmod -R go-rwx $(TARGET_DIR)/home/tvheadend
|
chmod -R go-rwx $(TARGET_DIR)/home/tvheadend
|
||||||
endef
|
endef
|
||||||
TVHEADEND_POST_INSTALL_TARGET_HOOKS = TVHEADEND_INSTALL_DB
|
TVHEADEND_POST_INSTALL_TARGET_HOOKS += TVHEADEND_INSTALL_DB
|
||||||
|
|
||||||
define TVHEADEND_INSTALL_INIT_SYSV
|
define TVHEADEND_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -D package/tvheadend/etc.default.tvheadend $(TARGET_DIR)/etc/default/tvheadend
|
$(INSTALL) -D package/tvheadend/etc.default.tvheadend $(TARGET_DIR)/etc/default/tvheadend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user