Skip to content

Commit

Permalink
tvheadend: Revert changes to stop building ffmpeg (ref: SynoCommunity…
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Nov 17, 2021
1 parent 3058775 commit 85770b2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
6 changes: 4 additions & 2 deletions spk/tvheadend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPK_GIT_HASH = c6bb43d
SPK_GIT_DATE = 20211020
SPK_VERS = $(SPK_SHORT_VERS).$(SPK_GIT_DATE)
TVH_VERS = $(SPK_SHORT_VERS)~$(SPK_GIT_HASH)
SPK_REV = 31
SPK_REV = 30
SPK_ICON = src/tvheadend.png
DSM_UI_DIR = app

Expand All @@ -13,7 +13,9 @@ DSM_UI_DIR = app
# 000-fix-version.patch from cross/tvheadend
export TVH_VERS

SPK_DEPENDS = "python310"
SPK_DEPENDS = "python38"
WHEELS = src/requirements.txt

DEPENDS = cross/$(SPK_NAME) cross/zap2epg cross/dtv-scan-tables

MAINTAINER = th0ma7
Expand Down
4 changes: 4 additions & 0 deletions spk/tvheadend/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
certifi==2021.5.30
chardet==4.0.0
requests==2.25.1
urllib3==1.26.5
19 changes: 17 additions & 2 deletions spk/tvheadend/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# Sourced script by generic installer and start-stop-status scripts

# Add ffmpeg and ifself to path
PYTHON_DIR="/var/packages/python310/target"
PYTHON_DIR="/var/packages/python38/target"
PYTHONENV="${SYNOPKG_PKGDEST}/env"
VIRTUALENV="${PYTHON_DIR}/bin/virtualenv"
WHEELHOUSE=${SYNOPKG_PKGDEST}/share/wheelhouse
FFMPEG_DIR="/var/packages/ffmpeg/target"
PATH="${SYNOPKG_PKGDEST}/bin:${FFMPEG_DIR}/bin:${PYTHON_DIR}/bin:${PATH}"
PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${FFMPEG_DIR}/bin:${PYTHON_DIR}/bin:${PATH}"

# Service configuration. Change http and htsp ports here and in conf/tvheadend.sc for non-standard ports
HTTP=9981
Expand All @@ -19,6 +22,18 @@ SVC_BACKGROUND=yes
# Group configuration to manage permissions of recording folders
GROUP=sc-media

service_postinst ()
{
# EPG Grabber (zap2epg) - Create a Python virtualenv
${VIRTUALENV} --system-site-packages ${PYTHONENV}

# EPG Grabber (zap2epg) - Install the wheels/requirements
${SYNOPKG_PKGDEST}/env/bin/pip install \
--no-deps --no-index --no-input --upgrade \
--force-reinstall --find-links \
${WHEELHOUSE} ${WHEELHOUSE}/*.whl
}

service_postupgrade ()
{
# Need to enforce correct permissions for recording directories on upgrades
Expand Down

0 comments on commit 85770b2

Please sign in to comment.