-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile
67 lines (50 loc) · 2.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
SPK_NAME = sabnzbd
SPK_VERS = 4.4.1
SPK_REV = 74
SPK_ICON = src/sabnzbd.png
PYTHON_PACKAGE = python312
DEPENDS = cross/ionice cross/coreutils cross/par2cmdline-turbo cross/7zz cross/sabnzbd
OPTIONAL_DEPENDS = cross/unrar7 cross/unrar
# python311 not supported
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)
# unrar not supported
UNSUPPORTED_ARCHS += $(ARMv5_ARCHS)
SPK_DEPENDS = $(PYTHON_PACKAGE)
WHEELS = src/requirements-crossenv.txt src/requirements-pure.txt
MAINTAINER = Safihre
DESCRIPTION = SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction.
DESCRIPTION_FRE = SABnzbd rend Usenet aussi simple et automatisé que possible. Vous n\'avez qu\'a ajouter un .nzb, SABnzbd s\'occupera du reste sans aucune intervention de votre part : téléchargement, vérification, réparation, extraction et déplacement.
DESCRIPTION_SPN = SABnzbd hace que Usenet sea lo más simple posible, automatizando todo lo que se puede. Todo lo que tienes que hacer es agregar un archivo .nzb. SABnzbd empieza desde ahí. Tus archivos serán automáticamente descargados, verificados, reparados, descomprimidos y archivados.
DISPLAY_NAME = SABnzbd
STARTABLE = yes
CHANGELOG = "1. Update SABnzbd to 4.4.1. <br/>2. Replace 7za by 7zz v24.09. <br/>3. Update unrar to v7.1.2 (DSM 7 only). <br/>4. Update par2cmdline-turbo to v1.2.0. <br/>5. Update to Python 3.12."
HOMEPAGE = https://sabnzbd.org
LICENSE = GPL
WIZARDS_DIR = src/wizard/
SERVICE_USER = auto
SERVICE_WIZARD_SHARENAME = wizard_shared_folder_name
SERVICE_SETUP = src/service-setup.sh
SERVICE_PORT = 8080
SERVICE_PORT_TITLE = $(DISPLAY_NAME)
# Admin link for in DSM UI
ADMIN_PORT = $(SERVICE_PORT)
include ../../mk/spksrc.common.mk
ifeq ($(call version_lt, $(TCVERSION), 7.0),1)
DEPENDS += cross/unrar
else ifeq ($(findstring $(ARCH),comcerto2k),$(ARCH))
DEPENDS += cross/unrar
else
DEPENDS += cross/unrar7
endif
POST_STRIP_TARGET = sabnzbd_extra_install
SPK_COMMANDS = bin/7zz
# [cryptography]
DEPENDS += cross/cryptography
include ../../mk/spksrc.python.mk
# prefer native python tools (pip, maturin, ...) used for orjson
ENV += PATH=$(realpath $(WORK_DIR)/../../../native/$(PYTHON_PACKAGE)/work-native/install/usr/local/bin):$(PATH)
.PHONY: sabnzbd_extra_install
sabnzbd_extra_install:
install -m 755 -d $(STAGING_DIR)/var/scripts
install -m 755 src/SabToSyno.py $(STAGING_DIR)/var/scripts/SabToSyno.py
install -m 600 src/config.ini $(STAGING_DIR)/var/config.ini