Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cross/libmediainfo/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = libmediainfo
PKG_VERS = 25.04
PKG_VERS = 25.10
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/MediaArea/MediaInfoLib/archive
Expand Down
6 changes: 3 additions & 3 deletions cross/libmediainfo/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
libmediainfo_25.04.tar.gz SHA1 67d25d9ed456cea946f704908dd71f230ef08e2b
libmediainfo_25.04.tar.gz SHA256 31cb4adfdce59fe6afe87d5fb629121008932f81c49b58d027317688fd24de72
libmediainfo_25.04.tar.gz MD5 3c4d7fa47fe95e2f7ef232f876ec3291
libmediainfo_25.10.tar.gz SHA1 85491da94e4bdfe45b6ed478fb7628a6771ae2e3
libmediainfo_25.10.tar.gz SHA256 e4b2b82f3df8d2c190643d1705ee35c3102674954858d02a2e2b42840f0f07aa
libmediainfo_25.10.tar.gz MD5 cdf8cdd3362d1193365ef9926952054d
2 changes: 1 addition & 1 deletion cross/mediainfo/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = mediainfo
PKG_VERS = 25.04
PKG_VERS = 25.10
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/MediaArea/MediaInfo/archive
Expand Down
6 changes: 3 additions & 3 deletions cross/mediainfo/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mediainfo_25.04.tar.gz SHA1 bd79d11c7bf14873345aeb00bdd112b4ad7d69bd
mediainfo_25.04.tar.gz SHA256 131b27960490887efee8db6a8471f98c37b478360060f9058d047e3c6a3afc44
mediainfo_25.04.tar.gz MD5 8d2057bc570905297d36686699552fb6
mediainfo_25.10.tar.gz SHA1 40ffad790e946f79f0da25f7ac111c7210293e97
mediainfo_25.10.tar.gz SHA256 2edaff16dfad9ee372d17d6d01eb2e3d2f8ee8dd4af606b1ee6f045c9b009662
mediainfo_25.10.tar.gz MD5 8ae0e5740a0854f99d8eca9ce187aa4c
2 changes: 1 addition & 1 deletion cross/rutorrent/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = ruTorrent
PKG_VERS = 5.1.12
PKG_VERS = 5.2.10
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/Novik/ruTorrent/archive
Expand Down
6 changes: 3 additions & 3 deletions cross/rutorrent/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruTorrent-5.1.12.tar.gz SHA1 e323f3d464bc049dd70c1d9bc0540639fe9332c7
ruTorrent-5.1.12.tar.gz SHA256 8e75dad81541a406fa181f0aaf274b276e7e2f33550033832c5f9e2aaae41d29
ruTorrent-5.1.12.tar.gz MD5 2785e74ef1347a6b597293c356faa4de
ruTorrent-5.2.10.tar.gz SHA1 4608ff49e979f698e465a8d7788f1938d65abe0a
ruTorrent-5.2.10.tar.gz SHA256 a3e57be03f965abcf2ed17125b61ee2bd55a1223fe9226fa1978f3002a93427d
ruTorrent-5.2.10.tar.gz MD5 9588f744416bf2854aade63b020b857f
6 changes: 3 additions & 3 deletions cross/rutorrent/patches/001-expanding-external-programs.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Added entries corresponding to external programs which are also potentially used by plugins and
may therefore be configured
index b68c526c..604f6263 100644
index b68c526c..3f79fd6f 100644
--- conf/config.php.orig
+++ conf/config.php
@@ -57,6 +57,10 @@
@@ -57,6 +57,11 @@
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
+ "python"=> '', // Something like /usr/bin/python3. If empty, will be found in PATH.
+ "pgrep" => '', // Something like /usr/bin/pgrep. If empty, will be found in PATH.
+ "sox" => '', // Something like /usr/bin/sox. If empty, will be found in PATH.
+ "mediainfo" => '', // Something like /usr/bin/mediainfo. If empty, will be found in PATH.
+ "dumptorrent" => '', // Something like /usr/bin/dumptorrent. If empty, will be found in PATH.
);

$localhosts = array( // list of local interfaces
root@b1d8647331b2:/spksrc/spk/rutorrent/work-evansport-6.1/ruTorrent-3.10#
12 changes: 12 additions & 0 deletions cross/xmlrpc-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ LICENSE = BSD
GNU_CONFIGURE = 1

CONFIGURE_ARGS = --enable-libxml2-backend

# Limit parallelism for xmlrpc-c; avoid races in libxmlrpc_util.so build
DISABLE_PARALLEL_MAKE = 1

# requires xml2-config in path to build libxml2-backend
ENV += PATH=$(INSTALL_DIR)/$(INSTALL_PREFIX)/bin:$$PATH

POST_INSTALL_TARGET = xmlrpc_c_post_install

include ../../mk/spksrc.cross-cc.mk

.PHONY: xmlrpc_c_post_install
xmlrpc_c_post_install:
# make xmlrpc-c-config use xml2-config from the same dir
sed -i -e 's|LIBXML=`xml2-config --libs`|LIBXML=`"$$\(dirname "$$0")/xml2-config" --libs`|' \
$(STAGING_INSTALL_PREFIX)/bin/xmlrpc-c-config
21 changes: 16 additions & 5 deletions spk/rutorrent/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
SPK_NAME = rutorrent
SPK_VERS = 5.1.12
SPK_REV = 18
SPK_VERS = 5.2.10
SPK_REV = 19
SPK_ICON = src/rutorrent.png
DSM_UI_DIR = app

MAINTAINER = smaarn
DESCRIPTION = ruTorrent is a front-end for the popular Bittorrent client rTorrent. rTorrent is a BitTorrent client for ncurses, using the libtorrent library. The client and library is written in C++ with emphasis on speed and efficiency, while delivering equivalent features to those found in GUI based clients in an ncurses client.
DISPLAY_NAME = ruTorrent
CHANGELOG = "1. Upgrade rutorrent to 5.1.12. <br/>2. Update rtorrent to v0.10.0. <br/>3. Update libtorrent to v0.14.0. <br/>4. Update screen to v5.0.1. <br/>5. Migrate to Python 3.12."
CHANGELOG = "1. Upgrade rutorrent to v5.2.10.<br/>2. Update MediaInfo to v25.10.<br/>3. Adjust PHP dependency per DSM version."

# libtorrent-rakshasa requires C++14 support
REQUIRED_MIN_DSM = 7.0
Expand All @@ -16,7 +16,7 @@ UNSUPPORTED_ARCHS = comcerto2k
REQUIRED_MIN_SRM = 3.0

PYTHON_PACKAGE = python312
SPK_DEPENDS = "WebStation:${PYTHON_PACKAGE}:PHP7.4:Apache2.4"

WHEELS = src/requirements-pure.txt

# Must be done prior to busybox (aarch64)
Expand Down Expand Up @@ -48,7 +48,6 @@ DSM_UI_CONFIG = src/app/config
# Required environment variables will be injected in service-setup.sh
SERVICE_COMMAND = /var/packages/rutorrent/target/bin/rtorrent-daemon

CONF_DIR = src/conf/
WIZARDS_DIR = $(WORK_DIR)/generated-wizards
WIZARDS = install_uifile upgrade_uifile

Expand All @@ -62,6 +61,18 @@ SERVICE_PORT_TITLE = ruTorrent RPC
SUPPORTED_LANGUAGES = fre

include ../../mk/spksrc.common.mk

ifeq ($(call version_ge, ${TCVERSION}, 7.2),1)
# Default to PHP 8.2 on DSM 7.2+ (PHP 8.0 not supported)
SPK_DEPENDS = "WebStation:PHP8.2:Apache2.4:${PYTHON_PACKAGE}"
CONF_DIR = src/conf_72
else
# Default to PHP 8.0 on DSM 7.0/7.1
SPK_DEPENDS = "WebStation:PHP8.0:Apache2.4:${PYTHON_PACKAGE}"
OS_MAX_VER = 7.1-59999
CONF_DIR = src/conf_7
endif

include ../../mk/spksrc.directories.mk

wizards: generated-wizards
Expand Down
12 changes: 8 additions & 4 deletions spk/rutorrent/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ service_postinst ()
TOP_DIR=`echo "${wizard_download_dir}" | cut -d "/" -f 2`
MAX_MEMORY=`awk '/MemTotal/{memory=$2*1024*0.25; if (memory > 512*1024*1024) memory=512*1024*1024; printf "%0.f", memory}' /proc/meminfo`

sed -i -e "s|scgi_port = 5000;|scgi_port = ${SERVICE_PORT};|g" \
-e "s|topDirectory = '/';|topDirectory = '/${TOP_DIR}/';|g" \
-e "s|tempDirectory = null;|tempDirectory = '${SYNOPKG_PKGDEST}/tmp/';|g" \
-e "s|\"python\"\(\\s*\)=>\(\\s*\)'.*'\(\\s*\),\(\\s*\)|\"python\"\1=>\2'${SYNOPKG_PKGDEST}/env/bin/python3'\3,\4|g" \
sed -i \
-e "s|^\([[:space:]]*\)\$scgi_port =.*|\1\$scgi_port = ${SERVICE_PORT};|" \
-e "s|^\([[:space:]]*\)\$log_file =.*|\1\$log_file = '${SYNOPKG_PKGDEST}/tmp/errors.log';|" \
-e "s|^\([[:space:]]*\)\$topDirectory =.*|\1\$topDirectory = '/${TOP_DIR}/';|" \
-e "s|^\([[:space:]]*\)\$tempDirectory =.*|\1\$tempDirectory = '${SYNOPKG_PKGDEST}/tmp/';|" \
"${RUTORRENT_WEB_DIR}/conf/config.php"

sed -i -e "s|\"python\"\(\\s*\)=>\(\\s*\)'.*'\(\\s*\),\(\\s*\)|\"python\"\1=>\2'${SYNOPKG_PKGDEST}/env/bin/python3'\3,\4|g" \
-e "s|\"pgrep\"\(\\s*\)=>\(\\s*\)'.*'\(\\s*\),\(\\s*\)|\"pgrep\"\1=>\2'${SYNOPKG_PKGDEST}/bin/pgrep'\3,\4|g" \
-e "s|\"sox\"\(\\s*\)=>\(\\s*\)'.*'\(\\s*\),\(\\s*\)|\"sox\"\1=>\2'${SYNOPKG_PKGDEST}/bin/sox'\3,\4|g" \
-e "s|\"mediainfo\"\(\\s*\)=>\(\\s*\)'.*'\(\\s*\),\(\\s*\)|\"mediainfo\"\1=>\2'${SYNOPKG_PKGDEST}/bin/mediainfo'\3,\4|g" \
Expand Down