View | Details | Raw Unified | Return to bug 266199
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 303-309 prowlarr:*:359: Link Here
303
v2ray:*:360:
303
v2ray:*:360:
304
httptunnel:*:361:
304
httptunnel:*:361:
305
readarr:*:362:
305
readarr:*:362:
306
# free: 363
306
premiumizer:*:363:
307
# free: 364
307
# free: 364
308
# free: 365
308
# free: 365
309
# free: 366
309
# free: 366
(-)b/UIDs (-1 / +1 lines)
Lines 308-314 prowlarr:*:359:359::0:0:Prowlarr Daemon:/nonexistent:/usr/sbin/nologin Link Here
308
v2ray:*:360:360::0:0:V2Ray Daemon:/nonexistent:/usr/sbin/nologin
308
v2ray:*:360:360::0:0:V2Ray Daemon:/nonexistent:/usr/sbin/nologin
309
httptunnel:*:361:361::0:0:httptunnel Daemon:/nonexistent:/usr/sbin/nologin
309
httptunnel:*:361:361::0:0:httptunnel Daemon:/nonexistent:/usr/sbin/nologin
310
readarr:*:362:362::0:0:Readarr Daemon:/nonexistent:/usr/sbin/nologin
310
readarr:*:362:362::0:0:Readarr Daemon:/nonexistent:/usr/sbin/nologin
311
# free: 363
311
premiumizer:*:363:363::0:0:Premiumizer Daemon:/nonexistent:/usr/sbin/nologin
312
# free: 364
312
# free: 364
313
# free: 365
313
# free: 365
314
# free: 366
314
# free: 366
(-)b/net-p2p/premiumizer/Makefile (+76 lines)
Added Link Here
1
PORTNAME=	premiumizer
2
DISTVERSION=	g20220815
3
CATEGORIES=	net-p2p
4
5
MAINTAINER=	andrej@ebert.su
6
COMMENT=	Download management tool for premiumize.me cloud downloads
7
8
LICENSE=	MIT
9
LICENSE_FILE=	${WRKSRC}/LICENSE
10
11
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apprise>=1.0.0:devel/py-apprise@${PY_FLAVOR} \
12
		${PYTHON_PKGNAMEPREFIX}myjdapi>=1.1.5:devel/py-myjdapi@${PY_FLAVOR} \
13
		${PYTHON_PKGNAMEPREFIX}bencode.py>=4.0.0:converters/py-bencode.py@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}chardet>=5.0.0:textproc/py-chardet@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}click>=8.1.3:devel/py-click@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}flask-apscheduler>=1.12.4:www/py-flask-apscheduler@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}flask-socketio>=5.2.0:www/py-flask-socketio@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}gevent-websocket>0:www/py-gevent-websocket@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}gevent>=21.12.0:devel/py-gevent@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}greenlet>=1.1.2:devel/py-greenlet@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}itsdangerous>=2.1.2:security/py-itsdangerous@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pysmartdl>=1.3.4:www/py-pysmartdl@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}python-engineio>=4.3.4:devel/py-python-engineio@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}python-socketio>=5.7.1:devel/py-python-socketio@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}six>=1.1.5:devel/py-six@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}tzlocal>=4.2:devel/py-tzlocal@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.11:net/py-urllib3@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}watchdog>=2.1.9:devel/py-watchdog@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}werkzeug>=2.2.2:www/py-werkzeug@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}apscheduler>=3.9.1:devel/py-apscheduler@${PY_FLAVOR} \
34
		${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.2:devel/py-dateutil@${PY_FLAVOR} \
35
		${PYTHON_PKGNAMEPREFIX}Flask>=2.2.2:www/py-flask@${PY_FLAVOR} \
36
		${PYTHON_PKGNAMEPREFIX}Flask-Compress>=1.12:www/py-flask-compress@${PY_FLAVOR} \
37
		${PYTHON_PKGNAMEPREFIX}Flask-Login>=0.6.2:www/py-flask-login@${PY_FLAVOR} \
38
		${PYTHON_PKGNAMEPREFIX}pytz-deprecation-shim>0:devel/py-pytz-deprecation-shim@${PY_FLAVOR} \
39
		${PYTHON_PKGNAMEPREFIX}tzdata>0:devel/py-tzdata@${PY_FLAVOR}
40
41
USES=		python:3.7+ shebangfix
42
SHEBANG_FILES=	premiumizer/premiumizer.py
43
USE_GITHUB=	yes
44
USE_PYTHON=	flavors
45
GH_ACCOUNT=	piejanssens
46
GH_PROJECT=	premiumizer
47
GH_TAGNAME=	2fe980f5cf0326cd9c0ef51dc203094941e790d6
48
NO_ARCH=	yes
49
USE_RC_SUBR=	premiumizer
50
51
SUB_FILES=	${PORTNAME} pkg-message
52
53
SUB_LIST=	PORTNAME=${PORTNAME} \
54
		PYTHON_CMD=${PYTHON_CMD} \
55
		DATADIR=${DATADIR} \
56
		GROUPS=${GROUPS} \
57
		USERS=${USERS}
58
59
USERS=		premiumizer
60
GROUPS=		premiumizer
61
62
do-build:
63
	@${PYTHON_CMD} -m compileall ${WRKSRC}
64
	@${PYTHON_CMD} -O -m compileall ${WRKSRC}
65
66
post-extract:
67
	@${RM} ${WRKSRC}/premiumizer/docker-entrypoint.sh
68
69
post-patch:
70
	@${REINPLACE_CMD} -i '' -e '1!s@'python'@'${PYTHON_CMD}'@g' ${WRKSRC}/premiumizer/premiumizer.py
71
72
do-install:
73
	${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/
74
	cd ${WRKSRC}/premiumizer && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/
75
76
.include <bsd.port.mk>
(-)b/net-p2p/premiumizer/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1661611889
2
SHA256 (piejanssens-premiumizer-g20220815-2fe980f5cf0326cd9c0ef51dc203094941e790d6_GH0.tar.gz) = 65d73491664a732fea5fdf85459093d54526c6643ea2c785a3f306caa10de95e
3
SIZE (piejanssens-premiumizer-g20220815-2fe980f5cf0326cd9c0ef51dc203094941e790d6_GH0.tar.gz) = 43471
(-)b/net-p2p/premiumizer/files/pkg-message.in (+24 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
5
This package installs a service file.
6
Enable it with "sysrc %%PORTNAME%%_enable=TRUE"
7
Start it with "service %%PORTNAME%% start".
8
9
By default, premiumizer's web interface listens on port 5000.
10
When premiumizer is running you can access it at http://[IP/hostname]:5000/
11
12
The built-in updater is disabled in the rc script via "--docker", 
13
since it uses git and pip. If you're starting premiumizer directly,
14
take care to pass the "--docker" argument, or you'll have constant
15
calls to git to check the version and update.
16
17
EOM
18
}
19
{ type:remove
20
  message: <<EOM
21
Don't forget to remove %%DATADIR%% if you don't need the configuration anymore.
22
EOM
23
}
24
]
(-)b/net-p2p/premiumizer/files/premiumizer.in (+50 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# Author: Andrej Ebert <andrej@ebert.su>
4
#
5
# $FreeBSD: $
6
#
7
# PROVIDE: premiumizer
8
# REQUIRE: LOGIN network
9
# KEYWORD: shutdown
10
11
# Add the following lines to /etc/rc.conf to enable %%PORTNAME%%:
12
# %%PORTNAME%%_enable:	Set to NO by default. Set it to YES to enable it.
13
# %%PORTNAME%%_user:	The user account %%PORTNAME%% daemon runs as what
14
#                  	you want it to be.
15
#			Default: %%USERS%%
16
# %%PORTNAME%%_group:	The group %%PORTNAME%% daemon runs as what
17
#                  	you want it to be.
18
			Default: %%GROUPS%%
19
# %%PORTNAME%%_datadir:	Directory where %%PORTNAME%% user data lives.
20
#			Default: %%DATADIR%%/conf
21
22
. /etc/rc.subr
23
24
name=%%PORTNAME%%
25
rcvar=%%PORTNAME%%_enable
26
load_rc_config $name
27
28
: ${%%PORTNAME%%_enable:=NO}
29
: ${%%PORTNAME%%_user:="%%USERS%%"}
30
: ${%%PORTNAME%%_group:="%%GROUPS%%"}
31
: ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"}
32
: ${%%PORTNAME%%_conf_dir:="%%DATADIR%%/conf"}
33
: ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"}
34
35
procname="%%PYTHON_CMD%%"
36
pidfile="${%%PORTNAME%%_pid_dir}/${name}.pid"
37
command="/usr/sbin/daemon"
38
command_args="-f -p ${pidfile} ${procname} ${%%PORTNAME%%_exec_dir}/premiumizer.py --docker"
39
40
start_precmd=${name}_precmd
41
%%PORTNAME%%_precmd() {
42
    if [ ! -d ${%%PORTNAME%%_conf_dir} ]; then
43
        install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_conf_dir}
44
    fi
45
    if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then
46
        install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir}
47
    fi    
48
}
49
50
run_rc_command "$1"
(-)b/net-p2p/premiumizer/pkg-descr (+9 lines)
Added Link Here
1
Premiumizer is a download management tool for premiumize.me cloud downloads,
2
which allows automatic downloading to your personal computer/server.
3
4
- Web interface to manage premiumize.me downloads: Torrent,Nzb & Filehosts links
5
- Category based automatic downloader of finished cloud tasks to local FS
6
- Picks up new taks through black hole
7
- Integrates with nzbToMedia (post processing)
8
9
WWW: https://github.com/piejanssens/premiumizer
(-)b/net-p2p/premiumizer/pkg-plist (+24 lines)
Added Link Here
1
%%DATADIR%%/bin/DownloadTask.py
2
%%DATADIR%%/bin/__init__.py
3
%%DATADIR%%/bin/__pycache__/DownloadTask%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
4
%%DATADIR%%/bin/__pycache__/DownloadTask%%PYTHON_EXT_SUFFIX%%.pyc
5
%%DATADIR%%/bin/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
6
%%DATADIR%%/bin/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
7
%%DATADIR%%/bin/__pycache__/premiumizer%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
8
%%DATADIR%%/bin/__pycache__/premiumizer%%PYTHON_EXT_SUFFIX%%.pyc
9
%%DATADIR%%/bin/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
10
%%DATADIR%%/bin/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.pyc
11
%%DATADIR%%/bin/premiumizer.py
12
%%DATADIR%%/bin/settings.cfg.tpl
13
%%DATADIR%%/bin/static/css/style.css
14
%%DATADIR%%/bin/static/img/favicon.ico
15
%%DATADIR%%/bin/static/js/control.js
16
%%DATADIR%%/bin/templates/404.html
17
%%DATADIR%%/bin/templates/about.html
18
%%DATADIR%%/bin/templates/base.html
19
%%DATADIR%%/bin/templates/history.html
20
%%DATADIR%%/bin/templates/index.html
21
%%DATADIR%%/bin/templates/log.html
22
%%DATADIR%%/bin/templates/login.html
23
%%DATADIR%%/bin/templates/settings.html
24
%%DATADIR%%/bin/utils.py

Return to bug 266199