2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-28 13:37:43 +01:00
|
|
|
#
|
|
|
|
# tvheadend
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-28 13:37:43 +01:00
|
|
|
|
2013-07-07 18:13:53 +02:00
|
|
|
TVHEADEND_VERSION = 5956233
|
2013-06-03 12:15:47 +02:00
|
|
|
TVHEADEND_SITE = git://github.com/tvheadend/tvheadend.git
|
2012-12-28 13:37:43 +01:00
|
|
|
TVHEADEND_LICENSE = GPLv3+
|
|
|
|
TVHEADEND_LICENSE_FILES = LICENSE
|
|
|
|
TVHEADEND_DEPENDENCIES = host-pkgconf host-python openssl
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
|
|
TVHEADEND_DEPENDENCIES += avahi
|
|
|
|
endif
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# tvheadend is a little smuggler and thief! ;-)
|
|
|
|
# During the ./configure, it downloads some files from the dvb-apps
|
|
|
|
# package, so it has a list of pre-scanned tunner configurations.
|
|
|
|
# For buildroot, we add a patch that avoids doing that, but uses the
|
|
|
|
# scan files installed by the dvb-apps package
|
|
|
|
TVHEADEND_DEPENDENCIES += dvb-apps
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# To run tvheadend, we need:
|
|
|
|
# - a startup script, and its config file
|
|
|
|
# - a default DB with a tvheadend admin
|
2013-04-12 09:14:19 +02:00
|
|
|
# - a non-root user to run as
|
2012-12-28 13:37:43 +01:00
|
|
|
define TVHEADEND_INSTALL_DB
|
2013-04-12 09:14:19 +02:00
|
|
|
$(INSTALL) -D -m 0600 package/tvheadend/accesscontrol.1 \
|
|
|
|
$(TARGET_DIR)/home/tvheadend/.hts/tvheadend/accesscontrol/1
|
|
|
|
chmod -R go-rwx $(TARGET_DIR)/home/tvheadend
|
2012-12-28 13:37:43 +01:00
|
|
|
endef
|
|
|
|
TVHEADEND_POST_INSTALL_TARGET_HOOKS = TVHEADEND_INSTALL_DB
|
|
|
|
|
|
|
|
define TVHEADEND_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D package/tvheadend/etc.default.tvheadend $(TARGET_DIR)/etc/default/tvheadend
|
|
|
|
$(INSTALL) -D package/tvheadend/S99tvheadend $(TARGET_DIR)/etc/init.d/S99tvheadend
|
|
|
|
endef
|
|
|
|
|
2013-04-12 09:14:19 +02:00
|
|
|
define TVHEADEND_USERS
|
|
|
|
tvheadend -1 tvheadend -1 * /home/tvheadend - video TVHeadend daemon
|
|
|
|
endef
|
|
|
|
|
2012-12-28 13:37:43 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# tvheadend is not an autotools-based package, but it is possible to
|
|
|
|
# call its ./configure script as if it were an autotools one.
|
|
|
|
$(eval $(autotools-package))
|