Skip to content

Commit

Permalink
tvheadend: minor adjustments
Browse files Browse the repository at this point in the history
- incr. package revision
- avoid variable in DEPENDS (for SynoCommunity#6255)
- restore ownership of package directories for SRM/DSM < 7
  • Loading branch information
hgy59 committed Nov 3, 2024
1 parent f4da160 commit a1d82f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spk/tvheadend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPK_GIT_HASH = 28de5c0
SPK_GIT_DATE = 20240928
SPK_VERS = $(SPK_SHORT_VERS).$(SPK_GIT_DATE)
TVH_VERS = $(SPK_SHORT_VERS)~$(SPK_GIT_HASH)
SPK_REV = 39
SPK_REV = 40
SPK_ICON = src/tvheadend.png
DSM_UI_DIR = app

Expand All @@ -25,7 +25,7 @@ UNSUPPORTED_ARCHS += $(ARMv5_ARCHS)

WHEELS = src/requirements-pure.txt

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

Expand All @@ -46,7 +46,7 @@ SERVICE_SETUP = src/service-setup.sh

# Service configuration
SERVICE_PORT = 9981
SERVICE_PORT_TITLE = Tvheadend(HTTP)
SERVICE_PORT_TITLE = Tvheadend (HTTP)

# Admin link
ADMIN_PORT = ${SERVICE_PORT}
Expand Down
4 changes: 2 additions & 2 deletions spk/tvheadend/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ service_postupgrade ()
for file in ${UPGRADE_CFG_DIR}/*
do
DVR_DIR=$(grep -e 'storage\":' ${file} | awk -F'"' '{print $4}')
# Exclude directories in @appstore as ACL permissions srew up package installations
# Exclude directories in @appstore as ACL permissions skew up package installations
TRUNC_DIR=$(echo "$(realpath ${DVR_DIR})" | awk -F/ '{print "/"$3}')
if [ "${TRUNC_DIR}" = "/@appstore" ]; then
echo "Skip: ${DVR_DIR} (system directory)"
Expand All @@ -45,7 +45,7 @@ service_postupgrade ()
done

# For backwards compatibility, restore ownership of package system directories
if [ $SYNOPKG_DSM_VERSION_MAJOR == 6 ]; then
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
echo "Restore '${EFF_USER}' unix permissions on package system directories"
chown ${EFF_USER}:${USER} "${SYNOPKG_PKGDEST}"
set_unix_permissions "${SYNOPKG_PKGVAR}"
Expand Down

0 comments on commit a1d82f7

Please sign in to comment.