update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
Makefile: do not use check_config
|
||||
|
||||
test(1) only uses the second to compare two files dates.
|
||||
test(1) also does a strict comparison wrt. dates.
|
||||
|
||||
But, on very fast systems, the configure and .config.mk
|
||||
files may be created in the same second, and so would lead
|
||||
to a false comparison of the files' dates.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN tvheadend-c84bc2b72b462ef2dbed305f3fd0bb3fa5046fc3.orig/Makefile tvheadend-c84bc2b72b462ef2dbed305f3fd0bb3fa5046fc3/Makefile
|
||||
--- tvheadend-c84bc2b72b462ef2dbed305f3fd0bb3fa5046fc3.orig/Makefile 2014-03-09 14:47:43.780025330 +0100
|
||||
+++ tvheadend-c84bc2b72b462ef2dbed305f3fd0bb3fa5046fc3/Makefile 2014-03-09 14:48:40.836539093 +0100
|
||||
@@ -566,7 +566,7 @@
|
||||
$(ROOTDIR)/configure $(CONFIGURE_ARGS)
|
||||
|
||||
# Binary
|
||||
-${PROG}: .config.mk make_webui $(OBJS)
|
||||
+${PROG}: make_webui $(OBJS)
|
||||
$(pCC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
# Object
|
||||
30
bsp/buildroot-2017.02.11/package/tvheadend/Config.in
Normal file
30
bsp/buildroot-2017.02.11/package/tvheadend/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
comment "tvheadend needs a toolchain w/ NPTL, headers >= 3.2, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 || BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
|
||||
config BR2_PACKAGE_TVHEADEND
|
||||
bool "tvheadend"
|
||||
depends on !BR2_STATIC_LIBS # dladdr()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_DTV_SCAN_TABLES
|
||||
select BR2_PACKAGE_FFMPEG_AVRESAMPLE if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_LIBVPX if BR2_PACKAGE_FFMPEG && !BR2_bfin # libvpx
|
||||
select BR2_PACKAGE_X264 if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Tvheadend is a TV streaming server for Linux supporting DVB-S,
|
||||
DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as
|
||||
input sources.
|
||||
|
||||
https://www.lonelycoder.com/redmine/projects/tvheadend/
|
||||
|
||||
Note:
|
||||
- on first run, tvheadend will start in wizard mode; the webUI
|
||||
is available on port 9981.
|
||||
- if you want Avahi support, you'll need to enable:
|
||||
Avahi, D-Bus, libdaemon
|
||||
59
bsp/buildroot-2017.02.11/package/tvheadend/S99tvheadend
Normal file
59
bsp/buildroot-2017.02.11/package/tvheadend/S99tvheadend
Normal file
@@ -0,0 +1,59 @@
|
||||
#! /bin/sh
|
||||
# tvheadend startup script inspired by the Debian one in the package
|
||||
|
||||
# Author: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
|
||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
NAME=tvheadend
|
||||
DAEMON=/usr/bin/$NAME
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
|
||||
[ -f "${DAEMON}" -a -x "${DAEMON}" ] || exit 0
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r "/etc/default/${NAME}" ] && . "/etc/default/${NAME}"
|
||||
|
||||
ARGS="-f"
|
||||
[ -z "${TVH_USER}" ] || ARGS="${ARGS} -u ${TVH_USER}"
|
||||
[ -z "${TVH_GROUP}" ] || ARGS="${ARGS} -g ${TVH_GROUP}"
|
||||
[ -z "${TVH_ADAPTERS}" ] || ARGS="${ARGS} -a ${TVH_ADAPTERS}"
|
||||
[ -z "${TVH_HTTP_PORT}" ] || ARGS="${ARGS} -w ${TVH_HTTP_PORT}"
|
||||
[ -z "${TVH_HTSP_PORT}" ] || ARGS="${ARGS} -e ${TVH_HTSP_PORT}"
|
||||
[ "${TVH_DEBUG}" = "1" ] && ARGS="${ARGS} -s"
|
||||
|
||||
# If first run, start in wizard mode
|
||||
if [ -z "$(ls -1 /home/tvheadend/.hts/tvheadend/accesscontrol/ 2>/dev/null)" ]; then
|
||||
ARGS="${ARGS} -C"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting TVHeadend daemon: "
|
||||
if start-stop-daemon -S -q -p ${PIDFILE} -m --exec "${DAEMON}" -- ${ARGS}; then
|
||||
printf "OK\n"
|
||||
else
|
||||
printf "failed\n"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping TVHeadend daemon: "
|
||||
start-stop-daemon -K -q -p ${PIDFILE} -s TERM
|
||||
sleep 2
|
||||
if start-stop-daemon -K -q -p ${PIDFILE} -t; then
|
||||
printf "failed, killing: "
|
||||
start-stop-daemon -K -q -p ${PIDFILE} -s KILL -o
|
||||
fi
|
||||
printf "OK\n"
|
||||
;;
|
||||
restart|force-reload)
|
||||
"${0}" stop
|
||||
sleep 2
|
||||
"${0}" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
:
|
||||
@@ -0,0 +1,6 @@
|
||||
TVH_USER=tvheadend
|
||||
TVH_GROUP=tvheadend
|
||||
#TVH_ADAPTERS=
|
||||
#TVH_HTTP_PORT=9981
|
||||
#TVH_HTSP_PORT=9982
|
||||
#TVH_DEBUG=1
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 ac3c088654864781f2b2a2797e3a8b03a1b2e86db731c08cb5f296a04069560d tvheadend-e5f5a4278949afc96e26d6cd50cf968e0e92d7b6.tar.gz
|
||||
125
bsp/buildroot-2017.02.11/package/tvheadend/tvheadend.mk
Normal file
125
bsp/buildroot-2017.02.11/package/tvheadend/tvheadend.mk
Normal file
@@ -0,0 +1,125 @@
|
||||
################################################################################
|
||||
#
|
||||
# tvheadend
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TVHEADEND_VERSION = e5f5a4278949afc96e26d6cd50cf968e0e92d7b6
|
||||
TVHEADEND_SITE = $(call github,tvheadend,tvheadend,$(TVHEADEND_VERSION))
|
||||
TVHEADEND_LICENSE = GPLv3+
|
||||
TVHEADEND_LICENSE_FILES = LICENSE.md
|
||||
TVHEADEND_DEPENDENCIES = \
|
||||
host-gettext \
|
||||
host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) \
|
||||
openssl
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
||||
TVHEADEND_DEPENDENCIES += avahi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
TVHEADEND_DEPENDENCIES += dbus
|
||||
TVHEADEND_CONF_OPTS += --enable-dbus-1
|
||||
else
|
||||
TVHEADEND_CONF_OPTS += --disable-dbus-1
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
||||
TVHEADEND_DEPENDENCIES += ffmpeg
|
||||
TVHEADEND_CONF_OPTS += --enable-libav
|
||||
else
|
||||
TVHEADEND_CONF_OPTS += --disable-libav
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDVBCSA),y)
|
||||
TVHEADEND_DEPENDENCIES += libdvbcsa
|
||||
TVHEADEND_CONF_OPTS += --enable-dvbcsa
|
||||
else
|
||||
TVHEADEND_CONF_OPTS += --disable-dvbcsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBHDHOMERUN),y)
|
||||
TVHEADEND_DEPENDENCIES += libhdhomerun
|
||||
TVHEADEND_CONF_OPTS += --enable-hdhomerun_client
|
||||
else
|
||||
TVHEADEND_CONF_OPTS += --disable-hdhomerun_client
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
TVHEADEND_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
TVHEADEND_CFLAGS = $(TARGET_CFLAGS)
|
||||
ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
|
||||
TVHEADEND_DEPENDENCIES += liburiparser
|
||||
TVHEADEND_CFLAGS += $(if $(BR2_USE_WCHAR),,-DURI_NO_UNICODE)
|
||||
endif
|
||||
|
||||
TVHEADEND_DEPENDENCIES += dtv-scan-tables
|
||||
|
||||
# The tvheadend build system expects the transponder data to be present inside
|
||||
# its source tree. To prevent a download initiated by the build system just
|
||||
# copy the data files in the right place and add the corresponding stamp file.
|
||||
define TVHEADEND_INSTALL_DTV_SCAN_TABLES
|
||||
$(INSTALL) -d $(@D)/data/dvb-scan
|
||||
cp -r $(TARGET_DIR)/usr/share/dvb/* $(@D)/data/dvb-scan/
|
||||
touch $(@D)/data/dvb-scan/.stamp
|
||||
endef
|
||||
TVHEADEND_PRE_CONFIGURE_HOOKS += TVHEADEND_INSTALL_DTV_SCAN_TABLES
|
||||
|
||||
define TVHEADEND_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
CFLAGS="$(TVHEADEND_CFLAGS)" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--arch="$(ARCH)" \
|
||||
--cpu="$(BR2_GCC_TARGET_CPU)" \
|
||||
--nowerror \
|
||||
--python="$(HOST_DIR)/usr/bin/python" \
|
||||
--enable-dvbscan \
|
||||
--enable-bundle \
|
||||
--disable-ffmpeg_static \
|
||||
--disable-hdhomerun_static \
|
||||
$(TVHEADEND_CONF_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define TVHEADEND_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define TVHEADEND_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
||||
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:
|
||||
# - a startup script, and its config file
|
||||
# - a non-root user to run as, and a home for it that is not accessible
|
||||
# to the other users (because there will be crendentials in there)
|
||||
|
||||
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
|
||||
|
||||
define TVHEADEND_USERS
|
||||
tvheadend -1 tvheadend -1 * /home/tvheadend - video TVHeadend daemon
|
||||
endef
|
||||
define TVHEADEND_PERMISSIONS
|
||||
/home/tvheadend r 0700 tvheadend tvheadend - - - - -
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user