diff --git a/cross/jellyseerr/Makefile b/cross/jellyseerr/Makefile new file mode 100644 index 00000000000..91ea84d3c09 --- /dev/null +++ b/cross/jellyseerr/Makefile @@ -0,0 +1,29 @@ +PKG_NAME = jellyseerr +PKG_VERS = 2.0.1 +PKG_EXT = tar.gz +PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = https://github.com/Fallenbagel/jellyseerr/archive +PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +BUILD_DEPENDS = native/nodejs + +HOMEPAGE = https://docs.jellyseerr.dev/ +COMMENT = Jellyseerr is a free and open source software application for managing requests for your media library. +LICENSE = MIT + +INSTALL_TARGET = jellyseerr_install + +include ../../mk/spksrc.install-resources.mk + +ENV += NPM_CONFIG_USER=root +PATH := $(WORK_DIR)/../../../native/nodejs/work-native/node/bin:$(PATH) + +.PHONY: jellyseerr_install +jellyseerr_install: + $(RUN) npm install -g pnpm + install -m 755 -d $(WORK_DIR)/$(PKG_DIR)/.git + $(RUN) CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile + $(RUN) pnpm build + install -m 755 -d $(STAGING_INSTALL_PREFIX)/web + cp -R $(WORK_DIR)/$(PKG_DIR)/dist/* $(STAGING_INSTALL_PREFIX)/web/ diff --git a/cross/jellyseerr/PLIST b/cross/jellyseerr/PLIST new file mode 100644 index 00000000000..6cf65ef6c03 --- /dev/null +++ b/cross/jellyseerr/PLIST @@ -0,0 +1 @@ +rsc:web/ diff --git a/cross/jellyseerr/digests b/cross/jellyseerr/digests new file mode 100644 index 00000000000..79e8f630024 --- /dev/null +++ b/cross/jellyseerr/digests @@ -0,0 +1,3 @@ +jellyseerr-2.0.1.tar.gz SHA1 47b9ea17023cbf59844808ab703fc6c629cdfe6f +jellyseerr-2.0.1.tar.gz SHA256 3ea5ae6ffd68eac767acb9a36adb41f1dc4018232cd6dca0cc31668c1f5c005b +jellyseerr-2.0.1.tar.gz MD5 f934b04e34e9196e7171b0654f0c25e7 diff --git a/spk/jellyseerr/Makefile b/spk/jellyseerr/Makefile new file mode 100644 index 00000000000..3b2a4e6188b --- /dev/null +++ b/spk/jellyseerr/Makefile @@ -0,0 +1,35 @@ +SPK_NAME = jellyseerr +SPK_VERS = 2.0.1 +SPK_REV = 1 +SPK_ICON = src/jellyseerr.png + +DEPENDS = cross/jellyseerr + +# x64 and armv8 archs are supported only. +UNSUPPORTED_ARCHS = $(32bit_ARCHS) + +MAINTAINER = SynoCommunity +MAINTAINER_URL = https://synocommunity.com/ +DESCRIPTION = "Jellyseerr is a free and open source software application for managing requests for your media library." +CHANGELOG = "1. Initial release" +DISPLAY_NAME = Jellyseerr +HOMEPAGE = https://docs.jellyseerr.dev/ +LICENSE = MIT +LICENSE_FILE = $(WORK_DIR)/$(SPK_NAME)-$(SPK_VERS)/LICENSE +HELPURL = https://github.com/fallenbagel/jellyseerr/discussions + +# Service configuration +STARTABLE = yes +SERVICE_USER = auto +SERVICE_SETUP = src/service-setup.sh +SERVICE_PORT = 5055 +SERVICE_PORT_TITLE = Jellyseerr (HTTP) + +# Admin link +ADMIN_PORT = $(SERVICE_PORT) + +CONF_DIR = src/conf +WIZARDS_DIR = src/wizard/ +DSM_UI_DIR = app + +include ../../mk/spksrc.spk.mk diff --git a/spk/jellyseerr/src/app/config b/spk/jellyseerr/src/app/config new file mode 100644 index 00000000000..88d3dfd7112 --- /dev/null +++ b/spk/jellyseerr/src/app/config @@ -0,0 +1,15 @@ +{ + ".url": { + "com.synocommunity.packages.jellyseerr": { + "title": "Jellyseerr", + "desc": "Jellyseerr Web UI", + "icon": "images/jellyseerr-{0}.png", + "type": "url", + "protocol": "http", + "port": "5055", + "url": "/", + "allUsers": true, + "grantPrivilege": "local" + } + } +} diff --git a/spk/jellyseerr/src/conf/resource b/spk/jellyseerr/src/conf/resource new file mode 100644 index 00000000000..16934e3c064 --- /dev/null +++ b/spk/jellyseerr/src/conf/resource @@ -0,0 +1,5 @@ +{ + "port-config": { + "protocol-file": "app/jellyseerr.sc" + } +} diff --git a/spk/jellyseerr/src/jellyseerr.png b/spk/jellyseerr/src/jellyseerr.png new file mode 100644 index 00000000000..7ca32c5f8d2 Binary files /dev/null and b/spk/jellyseerr/src/jellyseerr.png differ diff --git a/spk/jellyseerr/src/service-setup.sh b/spk/jellyseerr/src/service-setup.sh new file mode 100644 index 00000000000..4287ca86179 --- /dev/null +++ b/spk/jellyseerr/src/service-setup.sh @@ -0,0 +1 @@ +# \ No newline at end of file diff --git a/spk/jellyseerr/src/wizard/install_uifile b/spk/jellyseerr/src/wizard/install_uifile new file mode 100644 index 00000000000..0570478c791 --- /dev/null +++ b/spk/jellyseerr/src/wizard/install_uifile @@ -0,0 +1,10 @@ +[ + { + "step_title": "DSM Permissions", + "items": [ + { + "desc": "Please read Permission Management for details." + } + ] + } +]