Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Prowlarr v0.4.10.2111 #5400

Merged
merged 20 commits into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from 12 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
12 changes: 6 additions & 6 deletions cross/prowlarr/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
PKG_NAME = Prowlarr
PKG_VERS = 0.2.0.1678
PKG_VERS = 0.4.9.2083
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME).develop.$(PKG_VERS).linux-core-$(PKG_DIST_ARCH).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/Prowlarr/Prowlarr/releases/download/v$(PKG_VERS)
PKG_DIR = Prowlarr
PKG_DIR = $(PKG_NAME)

DEPENDS = cross/curl cross/sqlite

UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS) $(i686_ARCHS)
UNSUPPORTED_ARCHS = $(DOTNET_UNSUPPORTED_ARCHS)

HOMEPAGE = https://prowlarr.com/
COMMENT = Prowlarr is an indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps. Prowlarr supports management of both Torrent Trackers and Usenet Indexers. It integrates seamlessly with Lidarr, Mylar3, Radarr, Readarr, and Sonarr offering complete management of your indexers with no per app Indexer setup required (we do it all).
Expand All @@ -28,8 +28,8 @@ endif

include ../../mk/spksrc.install-resources.mk

.PHONY: prowlarr
.PHONY: prowlarr_install
prowlarr_install:
rm -rf $(WORK_DIR)/$(PKG_DIR)/Prowlarr.Update
mkdir -p $(STAGING_INSTALL_PREFIX)/share/$(PKG_DIR)/bin
tar -cf - -C $(WORK_DIR)/$(PKG_DIR) . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/share/$(PKG_DIR)/bin
mkdir -p $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)/bin
tar -cf - -C $(WORK_DIR)/$(PKG_DIR) . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)/bin
18 changes: 9 additions & 9 deletions cross/prowlarr/digests
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Prowlarr.develop.0.2.0.1678.linux-core-x64.tar.gz SHA1 062d2f6da68101d06f0f1c7fc74340ef3a0cb5d7
Prowlarr.develop.0.2.0.1678.linux-core-x64.tar.gz SHA256 5f66c08f7f2afce13ab9acdb81d63350c5eee704befe2998226a9b7d6374f4cf
Prowlarr.develop.0.2.0.1678.linux-core-x64.tar.gz MD5 15421c04a533f0c03f530692698f45e7
Prowlarr.develop.0.2.0.1678.linux-core-arm.tar.gz SHA1 b2fa289f3e67e0e249e30c1c1bddb1bb4b983be5
Prowlarr.develop.0.2.0.1678.linux-core-arm.tar.gz SHA256 8fa16259fbbf94b5fc80211736a83bf8dca272ee2504f874ee43e8ca5eb5839c
Prowlarr.develop.0.2.0.1678.linux-core-arm.tar.gz MD5 374bba9f291a21bf28fa00e5ee85fb4c
Prowlarr.develop.0.2.0.1678.linux-core-arm64.tar.gz SHA1 b39cda7930851519ed8f63118e7e549493af5478
Prowlarr.develop.0.2.0.1678.linux-core-arm64.tar.gz SHA256 fe040c1c0e67c19a4fff176743fb8fca4233ae68af1d158dd0a6c56cc3124c2f
Prowlarr.develop.0.2.0.1678.linux-core-arm64.tar.gz MD5 c1debbebc52941b4e96c774775bac1aa
Prowlarr.develop.0.4.9.2083.linux-core-x64.tar.gz SHA1 bed956b8a45276e22aaf4f0439480c4cd7de7d90
Prowlarr.develop.0.4.9.2083.linux-core-x64.tar.gz SHA256 9f330c56c0f0139191b6acf3055b34e1b5df0846cd99188b79aa21046d3534bd
Prowlarr.develop.0.4.9.2083.linux-core-x64.tar.gz MD5 ffa9657754246e98b441f23ce7411a5c
Prowlarr.develop.0.4.9.2083.linux-core-arm.tar.gz SHA1 fa0cb3c59795a0b95acaff9353e2f2bcbb309697
Prowlarr.develop.0.4.9.2083.linux-core-arm.tar.gz SHA256 21348bbe2c2e2e0aaee09a776a2f1548df71d627f6e133a6f128da8704c7292c
Prowlarr.develop.0.4.9.2083.linux-core-arm.tar.gz MD5 23167422bac631aa100b9791422962f9
Prowlarr.develop.0.4.9.2083.linux-core-arm64.tar.gz SHA1 d75c6b5d735b3e4cbcfc8f0ecdb0baa93a0d68dc
Prowlarr.develop.0.4.9.2083.linux-core-arm64.tar.gz SHA256 6aff7bf5a5792d8593b056a38a1c15d10cd86d2c20d6b69cfaad4d0a7694f0ad
Prowlarr.develop.0.4.9.2083.linux-core-arm64.tar.gz MD5 23bd9a3937a982a09fbe5b04eb2638f5
13 changes: 6 additions & 7 deletions spk/prowlarr/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
SPK_NAME = prowlarr
SPK_VERS = $(shell date +%Y%m%d)
SPK_REV = 3
SPK_REV = 4
SPK_ICON = src/prowlarr.png

# .NET is not supported on PPC, ARM5, ARM7L and x86
UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS) $(i686_ARCHS)
UNSUPPORTED_ARCHS = $(DOTNET_UNSUPPORTED_ARCHS)

DEPENDS = cross/libstdc++ cross/prowlarr

Expand All @@ -15,13 +14,13 @@ HELPURL = https://wiki.servarr.com/prowlarr
SUPPORTURL = https://prowlarr.com/\#support

DESCRIPTION = Prowlarr is an indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps. Prowlarr supports management of both Torrent Trackers and Usenet Indexers. It integrates seamlessly with Lidarr, Mylar3, Radarr, Readarr, and Sonarr offering complete management of your indexers with no per app Indexer setup required \(we do it all\).
STARTABLE = yes
DISPLAY_NAME = Prowlarr
CHANGELOG = "Enlarge the service start/stop timeout to 90 seconds."
CHANGELOG = "1. Enlarge the service start/stop timeout to 90 seconds.<br/>2. Update Prowlarr to v0.4.7.2016.<br/>3. Avoid Prowlarr downgrade on package update."

HOMEPAGE = https://prowlarr.com/
LICENSE = GPLv3

STARTABLE = yes
SERVICE_USER = auto
SERVICE_SETUP = src/service-setup.sh
SERVICE_PORT = 9696
Expand All @@ -44,6 +43,6 @@ PACKAGE_AUTHOR = [Team Prowlarr](https://prowlarr.com)

.PHONY: prowlarr_extra_install
prowlarr_extra_install:
@install -m 755 -d $(STAGING_DIR)/app
@install -m 644 src/config.xml $(STAGING_DIR)/app/config.xml
@install -m 755 -d $(STAGING_DIR)/var/.config/Prowlarr
@install -m 644 src/config.xml $(STAGING_DIR)/var/.config/Prowlarr/config.xml
@echo "PackageVersion=$(PACKAGE_VERSION)\nPackageAuthor=$(PACKAGE_AUTHOR)" > $(STAGING_DIR)/share/Prowlarr/package_info
4 changes: 2 additions & 2 deletions spk/prowlarr/src/config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Config>
<Branch>develop</Branch>
<UpdateMechanism>BuiltIn</UpdateMechanism>
<UpdateAutomatically>True</UpdateAutomatically>
<LaunchBrowser>False</LaunchBrowser>
<LogLevel>info</LogLevel>
<Port>9696</Port>
<SslPort>6969</SslPort>
</Config>
30 changes: 21 additions & 9 deletions spk/prowlarr/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,42 @@ PROWLARR="${SYNOPKG_PKGDEST}/share/Prowlarr/bin/Prowlarr"
# Prowlarr uses custom Config and PID directories
HOME_DIR="${SYNOPKG_PKGVAR}"
CONFIG_DIR="${HOME_DIR}/.config"
PROWLARR_CONFIG_DIR="${CONFIG_DIR}/Prowlarr"
PID_FILE="${CONFIG_DIR}/Prowlarr/prowlarr.pid"

SERVICE_COMMAND="env HOME=${HOME_DIR} LD_LIBRARY_PATH=${SYNOPKG_PKGDEST}/lib ${PROWLARR}"
SVC_BACKGROUND=y
SVC_WAIT_TIMEOUT=90


service_postinst ()
{
# Move config.xml to .config
mkdir -p ${CONFIG_DIR}/Prowlarr
mv ${SYNOPKG_PKGDEST}/app/config.xml ${CONFIG_DIR}/Prowlarr/config.xml
echo "Set update required"
# Make Prowlarr do an update check on start
# REMARKS: there is a bug in Prowlarr and the update_required file is not checked.
touch ${PROWLARR_CONFIG_DIR}/update_required

if [ ${SYNOPKG_DSM_VERSION_MAJOR} -lt 7 ]; then
set_unix_permissions "${CONFIG_DIR}"
fi
}

service_postupgrade ()
service_preupgrade ()
{
# Make Prowlarr do an update check on start to avoid possible Prowlarr
# downgrade when synocommunity package is updated
touch ${CONFIG_DIR}/Prowlarr/update_required
## never update Prowlarr distribution, use internal updater only
[ -d ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup ] && rm -rf ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup
echo "Backup existing distribution to ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup"
mkdir -p ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup 2>&1
rsync -aX ${SYNOPKG_PKGDEST}/share ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup/ 2>&1
}

if [ ${SYNOPKG_DSM_VERSION_MAJOR} -lt 7 ]; then
set_unix_permissions "${CONFIG_DIR}"
service_postupgrade ()
{
## restore Prowlarr distribution
if [ -d ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup/share ]; then
echo "Restore previous distribution from ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup"
rm -rf ${SYNOPKG_PKGDEST}/share/Prowlarr/bin 2>&1
# prevent overwrite of updated package_info
rsync -aX --exclude=package_info ${SYNOPKG_TEMP_UPGRADE_FOLDER}/backup/share/ ${SYNOPKG_PKGDEST}/share 2>&1
fi
}
2 changes: 1 addition & 1 deletion spk/prowlarr/src/wizard/install_uifile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"step_title": "Starting and updating Prowlarr",
"items": [{
"desc": "The first time Prowlarr is started it might take a few moments for the interface to become available!<br><br>Keep Prowlarr up-to-date by using Prowlarr's built-in updater.<br>Navigate to System>Updates in the Prowlarr UI."
"desc": "The first time Prowlarr is started it might take a few moments for the interface to become available.<br/><br/>Keep Prowlarr up-to-date by using Prowlarr's built-in updater.<br>Navigate to System>Updates in the Prowlarr UI.<br/><br/><b style=\"color: red\">Due to an error in Prowlarr, the automatic update in service start does not work, and you have to start the update manually.</b>"
}]
}]
2 changes: 1 addition & 1 deletion spk/prowlarr/src/wizard/upgrade_uifile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"step_title": "Updating Prowlarr",
"items": [{
"desc": "Keep Prowlarr up-to-date by using Prowlarr's built-in updater.<br>Navigate to System>Updates in the Prowlarr UI."
"desc": "Keep Prowlarr up-to-date by using Prowlarr's built-in updater.<br>Navigate to System>Updates in the Prowlarr UI.<br/><br/><b style=\"color: red\">Due to an error in Prowlarr, the automatic update in service start does not work, and you have to start the update manually.</b>"
wkobiela marked this conversation as resolved.
Show resolved Hide resolved
}]
}]