diff --git a/cross/bazarr/Makefile b/cross/bazarr/Makefile index 8619e1a4446..373afa73c97 100644 --- a/cross/bazarr/Makefile +++ b/cross/bazarr/Makefile @@ -1,6 +1,5 @@ PKG_NAME = bazarr - -PKG_VERS = 1.0.1 +PKG_VERS = 1.0.2 PKG_EXT = zip PKG_DIST_NAME = $(PKG_NAME).$(PKG_EXT) PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) diff --git a/cross/bazarr/digests b/cross/bazarr/digests index f68b1c579e9..e58bf930f08 100644 --- a/cross/bazarr/digests +++ b/cross/bazarr/digests @@ -1,3 +1,3 @@ -bazarr-1.0.1.zip SHA1 b6922cc89631632cfb0cd1f676b523f4a61cf95c -bazarr-1.0.1.zip SHA256 418c53ff8fa4cf738b4f76525809d320036f0eaeb931c4ad235b43e34fadaff7 -bazarr-1.0.1.zip MD5 85a524c21843fbdca22957f289cf0075 +bazarr-1.0.2.zip SHA1 0dcce5e58416bd860334aec2c3586cce926604b5 +bazarr-1.0.2.zip SHA256 688e6ec5f311f94a70c5b52c24d358623a955f67a993ad096ea587461078bfb2 +bazarr-1.0.2.zip MD5 e3001844199036f6d3b2d805ed14bda7 diff --git a/cross/gevent-websocket/Makefile b/cross/gevent-websocket/Makefile deleted file mode 100644 index 2e802fd70f0..00000000000 --- a/cross/gevent-websocket/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -PKG_NAME = gevent-websocket -PKG_VERS = 0.10.1 -PKG_EXT = tar.gz -PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) -PKG_DIST_SITE = https://files.pythonhosted.org/packages/source/g/$(PKG_NAME) -PKG_DIR = $(PKG_NAME)-$(PKG_VERS) - -DEPENDS = cross/gevent - -HOMEPAGE = https://www.gitlab.com/noppo/gevent-websocket -COMMENT = Websocket handler for the gevent pywsgi server, a Python network library -LICENSE = Copyright 2011-2017 Jeffrey Gelens - -include ../../mk/spksrc.python-wheel.mk diff --git a/cross/gevent-websocket/PLIST b/cross/gevent-websocket/PLIST deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/cross/gevent-websocket/digests b/cross/gevent-websocket/digests deleted file mode 100644 index e66a699f534..00000000000 --- a/cross/gevent-websocket/digests +++ /dev/null @@ -1,3 +0,0 @@ -gevent-websocket-0.10.1.tar.gz SHA1 ec71ede21a64c8b96b9ef38d26d6447691203292 -gevent-websocket-0.10.1.tar.gz SHA256 7eaef32968290c9121f7c35b973e2cc302ffb076d018c9068d2f5ca8b2d85fb0 -gevent-websocket-0.10.1.tar.gz MD5 e095bf3358175489a956949c1b4de9ff diff --git a/mk/spksrc.wheel-env.mk b/mk/spksrc.wheel-env.mk index 5a2190f0da3..03ea83c080e 100644 --- a/mk/spksrc.wheel-env.mk +++ b/mk/spksrc.wheel-env.mk @@ -80,6 +80,7 @@ install_python_wheel: if stat -t requirements*.txt >/dev/null 2>&1; then \ cp requirements*.txt $(STAGING_INSTALL_WHEELHOUSE) ; \ cat requirements*.txt >> $(STAGING_INSTALL_WHEELHOUSE)/$(WHEELS_DEFAULT) ; \ + sed -i -e '/^#/! s/^.*egg=//g' $(STAGING_INSTALL_WHEELHOUSE)/requirements*.txt ; \ sort -u -o $(STAGING_INSTALL_WHEELHOUSE)/$(WHEELS_DEFAULT) $(STAGING_INSTALL_WHEELHOUSE)/$(WHEELS_DEFAULT) ; \ fi ; \ if stat -t *.whl >/dev/null 2>&1; then \ diff --git a/spk/bazarr/Makefile b/spk/bazarr/Makefile index a7b822d96c3..7356cba3a83 100644 --- a/spk/bazarr/Makefile +++ b/spk/bazarr/Makefile @@ -1,26 +1,23 @@ SPK_NAME = bazarr -SPK_VERS = 1.0.1 -SPK_REV = 2 +SPK_VERS = 1.0.2 +SPK_REV = 3 SPK_ICON = src/bazarr.png -BUILD_DEPENDS = cross/python38 +BUILD_DEPENDS = cross/python310 DEPENDS = cross/$(SPK_NAME) DEPENDS += cross/unrar -DEPENDS += cross/numpy -DEPENDS += cross/webrtcvad -DEPENDS += cross/greenlet -SPK_DEPENDS = "python38:ffmpeg" +SPK_DEPENDS = "python310:ffmpeg" MAINTAINER = smaarn DESCRIPTION = "Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movies and Bazarr takes care of everything for you." DISPLAY_NAME = Bazarr STARTABLE = yes -CHANGELOG = "Several provider fixes + improved UI stability during heavy tasks" +CHANGELOG = "1. Update to version 1.0.2
2. Migration to Python 3.10" HOMEPAGE = https://www.bazarr.media LICENSE = GPLv3 @@ -34,6 +31,20 @@ SERVICE_PORT_TITLE = $(DISPLAY_NAME) # Admin link for in DSM UI ADMIN_PORT = $(SERVICE_PORT) -WHEELS = src/requirements.txt +WHEELS = src/requirements-crossenv.txt src/requirements-pure.txt + +# [numpy] gcc-4.6.4 failed with exit status 1 +# https://github.com/numpy/numpy/issues/20664 +UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) + +include ../../mk/spksrc.common.mk + +# [numpy] Fix wheel building with older compilers +ifeq ($(call version_lt, ${TCVERSION}, 7.0),1) +WHEELS_CPPFLAGS = [numpy] -std=c++0x +ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH)) +WHEELS_CFLAGS = [numpy] -O0 +endif +endif include ../../mk/spksrc.spk.mk diff --git a/spk/bazarr/src/requirements-crossenv.txt b/spk/bazarr/src/requirements-crossenv.txt new file mode 100644 index 00000000000..f2d09cbe677 --- /dev/null +++ b/spk/bazarr/src/requirements-crossenv.txt @@ -0,0 +1,11 @@ +# +# Download bazarr from github directly as not available on pypi +# Current not supported: +# https://github.com/morpheus65535/bazarr/issues/1648 +# git+https://github.com/morpheus65535/bazarr@v1.0.2#egg=bazarr==1.0.2 + +greenlet==1.1.2 +numpy==1.22.0 + +# webrtcvad==2.0.10 # requires unreleased version at specific commit for qoriq arch +git+https://github.com/wiseman/py-webrtcvad@3bd761332a9404f5c9276105070ee814c4428342#egg=webrtcvad==2.0.10 diff --git a/spk/bazarr/src/requirements-pure.txt b/spk/bazarr/src/requirements-pure.txt new file mode 100644 index 00000000000..51148d35a72 --- /dev/null +++ b/spk/bazarr/src/requirements-pure.txt @@ -0,0 +1 @@ +zope.event==4.5.0 diff --git a/spk/bazarr/src/requirements.txt b/spk/bazarr/src/requirements.txt deleted file mode 100644 index 1d1e7fd0fd1..00000000000 --- a/spk/bazarr/src/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -zope.event==4.5.0 \ No newline at end of file diff --git a/spk/bazarr/src/service-setup.sh b/spk/bazarr/src/service-setup.sh index 30b697bf55e..4ca84496134 100644 --- a/spk/bazarr/src/service-setup.sh +++ b/spk/bazarr/src/service-setup.sh @@ -1,9 +1,7 @@ -FFMPEG_DIR="/var/packages/ffmpeg/target" -PYTHON_DIR="/var/packages/python38/target" -PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}/bin:${FFMPEG_DIR}/bin:${PATH}" +FFMPEG_DIR="/var/packages/ffmpeg/target/bin" +PYTHON_DIR="/var/packages/python310/target/bin" +PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${PYTHON_DIR}:${FFMPEG_DIR}:${PATH}" PYTHON="${SYNOPKG_PKGDEST}/env/bin/python3" -VIRTUALENV="${PYTHON_DIR}/bin/python3 -m venv" -PIP=${SYNOPKG_PKGDEST}/env/bin/pip LANGUAGE="env LANG=en_US.UTF-8 LC_ALL=en_US.utf8" GROUP="sc-download" @@ -15,14 +13,11 @@ SERVICE_COMMAND="$LANGUAGE $PYTHON ${SVC_CWD}/bazarr.py --no-update --config ${S service_postinst () { - # Create a Python virtualenv - ${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env - - wheelhouse=${SYNOPKG_PKGDEST}/share/wheelhouse + install_python_virtualenv # Install the wheels (using virtual env through PATH) - ${PIP} install --no-deps --no-index --upgrade --force-reinstall --find-links ${wheelhouse} ${wheelhouse}/*.whl + install_python_wheels mkdir -p "${SYNOPKG_PKGVAR}/data" diff --git a/spk/fishnet/Makefile b/spk/fishnet/Makefile index 473be4c5217..9adcf533bc4 100644 --- a/spk/fishnet/Makefile +++ b/spk/fishnet/Makefile @@ -1,26 +1,25 @@ SPK_NAME = fishnet -# SPK_VERS must be in sync with src/requirements.txt +# SPK_VERS must be in sync with src/requirements-pure.txt SPK_VERS = 1.18.1 -SPK_REV = 1 +SPK_REV = 2 SPK_ICON= src/fishnet.png DEPENDS = cross/stockfish-niklasf -SPK_DEPENDS = "python3>=3.4" -PIP = pip3 +SPK_DEPENDS = "python310" MAINTAINER = mayweed DESCRIPTION = FishNet is a distributed Stockfish analysis service for lichess.org. You need an api key from lichess.org to run this service. DISPLAY_NAME = FishNet HOMEPAGE = https://github.com/niklasf/fishnet#readme -CHANGELOG = "Initial release with fishnet-20200613." +CHANGELOG = "1. Initial release with fishnet-20200613
2. Migration to Python 3.10" LICENSE = GPLv3 STARTABLE = no UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS) -WHEELS = src/requirements.txt +WHEELS = src/requirements-pure.txt SERVICE_SETUP = src/service-setup.sh POST_STRIP_TARGET = fishnet_extra_install diff --git a/spk/fishnet/src/requirements.txt b/spk/fishnet/src/requirements-pure.txt similarity index 100% rename from spk/fishnet/src/requirements.txt rename to spk/fishnet/src/requirements-pure.txt diff --git a/spk/fishnet/src/service-setup.sh b/spk/fishnet/src/service-setup.sh index 5f7a4f7e636..3235136d62a 100644 --- a/spk/fishnet/src/service-setup.sh +++ b/spk/fishnet/src/service-setup.sh @@ -1,16 +1,15 @@ - -PYTHON_DIR="/var/packages/python3/target/bin" -VIRTUALENV="${PYTHON_DIR}/python3 -m venv" +# Define python310 binary path +PYTHON_DIR="/var/packages/python310/target/bin" +# Add local bin, virtualenv along with python310 to the default PATH +PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${PYTHON_DIR}:${PATH}" service_postinst () { # Create a Python virtualenv - ${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env + install_python_virtualenv # Install the wheels - wheelhouse=${SYNOPKG_PKGDEST}/share/wheelhouse - ${SYNOPKG_PKGDEST}/env/bin/pip3 install --no-deps --no-index --upgrade --force-reinstall --find-links ${wheelhouse} ${wheelhouse}/*.whl - + install_python_wheels # get target file independent of python3 version target=$(${SYNOPKG_PKGDEST}/env/bin/python3 -m site | grep -o "[^']*${SYNOPKG_PKGNAME}/env[^']*")/fishnet.py diff --git a/spk/plexpy-custom/Makefile b/spk/plexpy-custom/Makefile index ae52b82ffb8..d2d93165de1 100644 --- a/spk/plexpy-custom/Makefile +++ b/spk/plexpy-custom/Makefile @@ -1,17 +1,17 @@ SPK_NAME = plexpy-custom SPK_VERS = $(shell date +%Y%m%d) -SPK_REV = 5 +SPK_REV = 6 SPK_ICON = src/plexpy-custom.png DEPENDS = -SPK_DEPENDS = "python3>=3.7.7:git" +SPK_DEPENDS = "python310:git" MAINTAINER = cytec DESCRIPTION = PlexPy Custom allows you to run the fork of your choice of PlexPy. You will be asked for the fork\'s git URL during install. DESCRIPTION_FRE = PlexPy Custom vous permet d\'exécuter la variante de PlexPy votre choix. Il vous sera demandé l\'URL git de la variante à l\'installation. RELOAD_UI = yes DISPLAY_NAME = PlexPy Custom -CHANGELOG = "Update to Python3." +CHANGELOG = "Update to Python3.10" HOMEPAGE = https://tautulli.com LICENSE = GPL diff --git a/spk/plexpy-custom/src/service-setup.sh b/spk/plexpy-custom/src/service-setup.sh index 4226f5eab89..bf3ca44c503 100644 --- a/spk/plexpy-custom/src/service-setup.sh +++ b/spk/plexpy-custom/src/service-setup.sh @@ -1,18 +1,19 @@ -PYTHON_DIR="/var/packages/python3/target/bin" +# Define python310 binary path +PYTHON_DIR="/var/packages/python310/target/bin" +# Define git binary path GIT_DIR="/var/packages/git/target/bin" -PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}:${GIT_DIR}:${PATH}" +# Add local bin, virtualenv along with python310 and git to the default PATH +PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${PYTHON_DIR}:${GIT_DIR}:${PATH}" PYTHON="${SYNOPKG_PKGDEST}/env/bin/python" GIT="${GIT_DIR}/git" -VIRTUALENV="${PYTHON_DIR}/python3 -m venv" -PLEXPY="${SYNOPKG_PKGDEST}/var/plexpy/PlexPy.py" -CFG_FILE="${SYNOPKG_PKGDEST}/var/config.ini" +PLEXPY="${SYNOPKG_PKGVAR}/plexpy/PlexPy.py" +CFG_FILE="${SYNOPKG_PKGVAR}/config.ini" -SERVICE_COMMAND="${PYTHON} ${PLEXPY} --daemon --pidfile ${PID_FILE} --config ${CFG_FILE} --datadir ${SYNOPKG_PKGDEST}/var/" +SERVICE_COMMAND="${PYTHON} ${PLEXPY} --daemon --pidfile ${PID_FILE} --config ${CFG_FILE} --datadir ${SYNOPKG_PKGVAR}" GROUP="sc-download" LEGACY_GROUP="sc-media" - validate_preinst () { # Check fork @@ -25,16 +26,11 @@ validate_preinst () service_postinst () { # Create a Python virtualenv - ${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env + install_python_virtualenv if [ "${SYNOPKG_PKG_STATUS}" == "INSTALL" ]; then # Clone the repository - ${GIT} clone -q -b ${wizard_fork_branch:=master} ${wizard_fork_url:=git://github.com/Tautulli/Tautulli.git} ${SYNOPKG_PKGDEST}/var/plexpy + ${GIT} clone -q -b ${wizard_fork_branch:=master} ${wizard_fork_url:=git://github.com/Tautulli/Tautulli.git} ${SYNOPKG_PKGVAR}/plexpy fi - - # Remove legacy user - # Commands of busybox from spk/python - delgroup "${USER}" "users" - deluser "${USER}" } diff --git a/spk/python310/src/requirements-crossenv.txt b/spk/python310/src/requirements-crossenv.txt index 235a1194ec2..814d1537879 100644 --- a/spk/python310/src/requirements-crossenv.txt +++ b/spk/python310/src/requirements-crossenv.txt @@ -39,8 +39,7 @@ # - DSM6 require WHEELS_CFLAGS=-std=c++0x # - aarch64-6.1 require workaround WHEELS_CFLAGS=-O0 # ref: https://github.com/numpy/numpy/issues/13622 -# numpy==1.21.5 -# git+https://github.com/numpy/numpy@v1.22.0rc3#egg=numpy +# numpy==1.22.0 # webrtcvad==2.0.10 # requires unreleased version at specific commit for qoriq arch -# git+https://github.com/wiseman/py-webrtcvad@3bd761332a9404f5c9276105070ee814c4428342#egg=webrtcvad +# git+https://github.com/wiseman/py-webrtcvad@3bd761332a9404f5c9276105070ee814c4428342#egg=webrtcvad==2.0.10 diff --git a/spk/rutorrent/Makefile b/spk/rutorrent/Makefile index 697597d3d68..0d9e9e2d78f 100644 --- a/spk/rutorrent/Makefile +++ b/spk/rutorrent/Makefile @@ -1,13 +1,11 @@ SPK_NAME = rutorrent SPK_VERS = 3.10 -SPK_REV = 10 +SPK_REV = 11 SPK_ICON = src/rutorrent.png DSM_UI_DIR = app -# some dependents require C++11 support -UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS) -# unsupported with cross/rtorrent -UNSUPPORTED_ARCHS += $(ARMv7L_ARCHS) +SPK_DEPENDS = "python310:PHP5.6" +WHEELS = src/requirements-pure.txt DEPENDS = cross/busybox cross/curl cross/procps-ng cross/mediainfo cross/rtorrent cross/rutorrent cross/screen cross/unzip DEPENDS += cross/sox @@ -18,7 +16,7 @@ ADMIN_URL = /rutorrent/ RELOAD_UI = yes STARTABLE = yes DISPLAY_NAME = ruTorrent -CHANGELOG = "1. Update rutorrent to 3.10
2. Update rtorrent to 0.9.8
3. Update openssl to 1.1
4. Fix bug issue no. 4295
5. Move rtorrent configuration file to web volume for direct user access" +CHANGELOG = "1. Update rutorrent to 3.10
2. Update rtorrent to 0.9.8
3. Update openssl to 1.1
4. Fix bug issue no. 4295
5. Move rtorrent configuration file to web volume for direct user access
6. Update to Python 3.10" HOMEPAGE = https://github.com/Novik/ruTorrent LICENSE = GPLv3 @@ -42,9 +40,12 @@ POST_STRIP_TARGET = rutorrent_extra_install BUSYBOX_CONFIG = usrmng nice procutils ENV += BUSYBOX_CONFIG="$(BUSYBOX_CONFIG)" -include ../../mk/spksrc.spk.mk +# some dependents require C++11 support +UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS) +# unsupported with cross/rtorrent +UNSUPPORTED_ARCHS += $(ARMv7L_ARCHS) -SPK_DEPENDS = "python3>=3.7.7:php5.6" +include ../../mk/spksrc.spk.mk .PHONY: rutorrent_extra_install rutorrent_extra_install: diff --git a/spk/rutorrent/PLIST b/spk/rutorrent/PLIST index e69de29bb2d..4cfaf73a12c 100644 --- a/spk/rutorrent/PLIST +++ b/spk/rutorrent/PLIST @@ -0,0 +1 @@ +rsc:share/wheelhouse diff --git a/spk/rutorrent/src/requirements-pure.txt b/spk/rutorrent/src/requirements-pure.txt new file mode 100644 index 00000000000..1ef359f3c7d --- /dev/null +++ b/spk/rutorrent/src/requirements-pure.txt @@ -0,0 +1 @@ +cloudscraper==1.2.58 diff --git a/spk/rutorrent/src/service-setup.sh b/spk/rutorrent/src/service-setup.sh index 02356f2e49a..02566ab7044 100644 --- a/spk/rutorrent/src/service-setup.sh +++ b/spk/rutorrent/src/service-setup.sh @@ -1,12 +1,15 @@ - # Package PACKAGE="rutorrent" DNAME="ruTorrent" PACKAGE_NAME="com.synocommunity.packages.${PACKAGE}" +# Define python310 binary path +PYTHON_DIR="/var/packages/python310/target/bin" +# Add local bin, virtualenv along with python310 to the default PATH +PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/usr/bin:${PYTHON_DIR}:${PATH}" + # Others WEB_DIR="/var/services/web" -PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/usr/bin:${PATH}" APACHE_USER="$([ $(grep buildnumber /etc.defaults/VERSION | cut -d"\"" -f2) -ge 4418 ] && echo -n http || echo -n nobody)" BUILDNUMBER="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)" @@ -18,12 +21,10 @@ GROUP_DESC="SynoCommunity's download related group" LEGACY_USER="rutorrent" LEGACY_GROUP="users" -PYTHON_DIR="/var/packages/python3/target/bin" -VIRTUALENV="${PYTHON_DIR}/python3 -m venv" SVC_BACKGROUND=y -PID_FILE="${SYNOPKG_PKGDEST}/var/rtorrent.pid" -LOG_FILE="${SYNOPKG_PKGDEST}/var/rtorrent.log" +PID_FILE="${SYNOPKG_PKGVAR}/rtorrent.pid" +LOG_FILE="${SYNOPKG_PKGVAR}/rtorrent.log" SVC_WRITE_PID=y validate_preinst () @@ -97,8 +98,8 @@ service_postinst () cp -pR ${SYNOPKG_PKGDEST}/share/${PACKAGE} ${WEB_DIR} # Allow direct-user access to rtorrent configuration file - mv ${SYNOPKG_PKGDEST}/var/.rtorrent.rc ${RTORRENT_RC} - ln -s -T -f ${RTORRENT_RC} ${SYNOPKG_PKGDEST}/var/.rtorrent.rc + mv ${SYNOPKG_PKGVAR}/.rtorrent.rc ${RTORRENT_RC} + ln -s -T -f ${RTORRENT_RC} ${SYNOPKG_PKGVAR}/.rtorrent.rc # Configure open_basedir if [ "${APACHE_USER}" == "nobody" ]; then @@ -156,9 +157,10 @@ service_postinst () # Setup a virtual environment with cloudscraper # Create a Python virtualenv - ${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env - # Install the cloudscraper wheels - ${SYNOPKG_PKGDEST}/env/bin/pip install -U cloudscraper==1.2.48 + install_python_virtualenv + + # Install the wheels (cloudscraper) + install_python_wheels fix_shared_folders_rights "${SYNOPKG_PKGDEST}/tmp" @@ -197,14 +199,14 @@ service_save () fi # Save session files - mv ${SYNOPKG_PKGDEST}/var/.session ${TMP_DIR}/ + mv ${SYNOPKG_PKGVAR}/.session ${TMP_DIR}/ # Save rtorrent configuration file (new location) - if [ -L ${SYNOPKG_PKGDEST}/var/.rtorrent.rc -a -f ${RTORRENT_RC} ]; then + if [ -L ${SYNOPKG_PKGVAR}/.rtorrent.rc -a -f ${RTORRENT_RC} ]; then mv ${RTORRENT_RC} ${TMP_DIR}/ # Save rtorrent configuration file (old location -> prior to symlink) - elif [ ! -L ${SYNOPKG_PKGDEST}/var/.rtorrent.rc -a -f ${SYNOPKG_PKGDEST}/var/.rtorrent.rc ]; then - mv ${SYNOPKG_PKGDEST}/var/.rtorrent.rc ${TMP_DIR}/rtorrent.rc + elif [ ! -L ${SYNOPKG_PKGVAR}/.rtorrent.rc -a -f ${SYNOPKG_PKGVAR}/.rtorrent.rc ]; then + mv ${SYNOPKG_PKGVAR}/.rtorrent.rc ${TMP_DIR}/rtorrent.rc fi # Save rutorrent share directory @@ -249,9 +251,9 @@ service_restore () sed -i -e 's|http_cacert = \(.*\)|network.http.cacert = \1|g' ${RTORRENT_RC} fi - echo "Restoring rtorrent session files ${SYNOPKG_PKGDEST}/var/.session" - mv ${TMP_DIR}/.session ${SYNOPKG_PKGDEST}/var/ - set_unix_permissions "${SYNOPKG_PKGDEST}/var/" + echo "Restoring rtorrent session files ${SYNOPKG_PKGVAR}/.session" + mv ${TMP_DIR}/.session ${SYNOPKG_PKGVAR} + set_unix_permissions "${SYNOPKG_PKGVAR}" echo "Restoring rutorrent web shared directory ${WEB_DIR}/${PACKAGE}/share" cp -pnr ${TMP_DIR}/share ${WEB_DIR}/${PACKAGE}/