Skip to content

Commit

Permalink
sabnzbd: use cross/7za and cross/unrar7 for DSM 7
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Jan 3, 2025
1 parent 8b5f912 commit ed99274
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions spk/sabnzbd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ SPK_REV = 72
SPK_ICON = src/sabnzbd.png

PYTHON_PACKAGE = python311
DEPENDS = cross/busybox cross/par2cmdline-turbo cross/unrar cross/p7zip cross/$(SPK_NAME)

DEPENDS = cross/busybox cross/par2cmdline-turbo cross/sabnzbd
OPTIONAL_DEPENDS = cross/unrar7 cross/7za cross/unrar cross/p7zip

# python311 not supported
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)
# unrar not supported
UNSUPPORTED_ARCHS += $(ARMv5_ARCHS)

SPK_DEPENDS = "python311>=3.11.5-8"

WHEELS = src/requirements-crossenv.txt src/requirements-pure.txt
Expand All @@ -28,19 +36,31 @@ SERVICE_SETUP = src/service-setup.sh
SERVICE_PORT = 8080
SERVICE_PORT_TITLE = $(DISPLAY_NAME)

# Ensure C++11 compatibility for unrar
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS)

# Admin link for in DSM UI
ADMIN_PORT = $(SERVICE_PORT)


SPK_COMMANDS = bin/unrar bin/7za

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

ifeq ($(call version_lt, $(TCVERSION), 7.0),1)
DEPENDS += cross/unrar
else
DEPENDS += cross/unrar7
endif

ifeq ($(call version_lt, $(TCVERSION), 7.1),1)
DEPENDS += cross/p7zip
else
DEPENDS += cross/7za
endif

POST_STRIP_TARGET = sabnzbd_extra_install

# Add nice and ionice commands
ENV += BUSYBOX_CONFIG="nice ionice"

SPK_COMMANDS = bin/7za

# [cryptography]
DEPENDS += cross/cryptography

Expand Down

0 comments on commit ed99274

Please sign in to comment.