-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Makefile
56 lines (41 loc) · 2.21 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
SPK_NAME = sabnzbd
SPK_VERS = 4.3.3
SPK_REV = 71
SPK_ICON = src/sabnzbd.png
PYTHON_PACKAGE = python311
DEPENDS = cross/busybox cross/par2cmdline-turbo cross/unrar cross/p7zip cross/$(SPK_NAME)
SPK_DEPENDS = "python311>=3.11.5-8"
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 = "Update SABnzbd to 4.3.3."
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)
# Ensure C++11 compatibility for unrar
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS)
# Admin link for in DSM UI
ADMIN_PORT = $(SERVICE_PORT)
POST_STRIP_TARGET = sabnzbd_extra_install
# Add nice and ionice commands
ENV += BUSYBOX_CONFIG="nice ionice"
SPK_COMMANDS = bin/7za
# [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