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

(-)b/news/nzbget/Makefile (-15 / +3 lines)
Lines 1-9 Link Here
1
# Created by: Lewis Thompson <purple@lewiz.net>
1
# Created by: Lewis Thompson <purple@lewiz.net>
2
2
3
PORTNAME=	nzbget
3
PORTNAME=	nzbget
4
PORTVERSION=	21.0
4
PORTVERSION=	21.1
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	2
7
CATEGORIES=	news
6
CATEGORIES=	news
8
7
9
MAINTAINER=	ports@FreeBSD.org
8
MAINTAINER=	ports@FreeBSD.org
Lines 13-19 LICENSE= GPLv2 Link Here
13
12
14
LIB_DEPENDS=	libxml2.so:textproc/libxml2
13
LIB_DEPENDS=	libxml2.so:textproc/libxml2
15
14
16
USES=		autoreconf compiler:c++14-lang gmake localbase ncurses pkgconfig shebangfix ssl
15
USES=		autoreconf compiler:c++14-lang gmake localbase ncurses pkgconfig python:build shebangfix ssl
17
USE_RC_SUBR=	nzbget
16
USE_RC_SUBR=	nzbget
18
17
19
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
Lines 30-50 SUB_FILES= pkg-message Link Here
30
29
31
USE_GITHUB=	yes
30
USE_GITHUB=	yes
32
31
33
OPTIONS_DEFINE=	7Z DOCS OPTIMIZED_FLAGS PYTHON RAR
32
OPTIONS_DEFINE=	DOCS OPTIMIZED_FLAGS
34
OPTIONS_DEFAULT=	PAR PYTHON RAR 7Z
35
7Z_DESC=	Support extraction of 7z archives
36
OPTIMIZED_FLAGS_DESC=	Enable optimized CPU instructions (SSE2/SSE3/NEON/etc)
33
OPTIMIZED_FLAGS_DESC=	Enable optimized CPU instructions (SSE2/SSE3/NEON/etc)
37
PYTHON_DESC=	Support for python post-processing scripts
38
RAR_DESC=	Support extraction of rar archives
39
40
7Z_RUN_DEPENDS=		7z:archivers/p7zip
41
42
OPTIMIZED_FLAGS_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-disable-optimized-flags.patch
34
OPTIMIZED_FLAGS_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-disable-optimized-flags.patch
43
35
44
PYTHON_USES=		python:run
45
46
RAR_RUN_DEPENDS=	unrar:archivers/unrar
47
48
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
49
37
50
.if (${ARCH} == "i386")
38
.if (${ARCH} == "i386")
(-)b/news/nzbget/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1559757041
1
TIMESTAMP = 1623584109
2
SHA256 (nzbget-nzbget-v21.0_GH0.tar.gz) = c7d3ece53f9bf958011b05404bf4063d74bd73fc8140a63c334e9e767eff6d50
2
SHA256 (nzbget-nzbget-v21.1_GH0.tar.gz) = 79695ea503447f13911a9fe58d0ef3e860b2ff5d6fdfd351186ee5fda1ae8bdb
3
SIZE (nzbget-nzbget-v21.0_GH0.tar.gz) = 2011852
3
SIZE (nzbget-nzbget-v21.1_GH0.tar.gz) = 2011505
(-)b/news/nzbget/files/nzbget.in (-9 / +21 lines)
Lines 4-25 Link Here
4
# REQUIRE: LOGIN
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
5
# KEYWORD: shutdown
6
#
6
#
7
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
7
# Add the following lines to /etc/rc.conf to enable the nzbget daemon:
8
# to enable this service:
9
#
8
#
10
# nzbget_enable (bool):	Set to NO by default.
9
# nzbget_enable="YES"
11
#			Set it to YES to enable it.
10
#
11
# Following additional settings are available:
12
#
13
# nzbget_user:    user to run nzbget as (recommended)
14
# nzbget_conf:    path to config if in a non-standard location (optional)
15
16
command=%%PREFIX%%/bin/nzbget
12
17
13
. /etc/rc.subr
18
. /etc/rc.subr
14
19
20
load_rc_config nzbget
21
22
nzbget_enable=${nzbget_enable:-NO}
23
nzbget_user=${nzbget_user:-root}
24
nzbget_conf=${nzbget_conf:+"-c $nzbget_conf"}
25
15
name=nzbget
26
name=nzbget
16
rcvar=nzbget_enable
27
rcvar=nzbget_enable
17
28
18
load_rc_config ${name}
29
start_cmd="nzbget_cmd -D"
30
stop_cmd="nzbget_cmd -Q"
31
reload_cmd="nzbget_cmd -O"
19
32
20
: ${nzbget_enable:=NO}
33
nzbget_cmd() {
21
34
  /usr/bin/su -l $nzbget_user -c "exec $command $nzbget_conf $1"
22
command=%%PREFIX%%/bin/nzbget
35
}
23
command_args="-D"
24
36
25
run_rc_command "$1"
37
run_rc_command "$1"
(-)b/news/nzbget/files/pkg-message.in (-2 / +2 lines)
Lines 1-8 Link Here
1
[
1
[
2
{ type: install
2
{ type: install
3
  message: <<EOM
3
  message: <<EOM
4
To run nzbget as an unprivileged user you can set the Daemonuser
4
Set "nzbget_user" in rc.conf or "DaemonUsername" in your nzbget config
5
variable in %%LOCALBASE%%/etc/nzbget.conf
5
to run the nzbget daemon as an unprivileged user.
6
EOM
6
EOM
7
}
7
}
8
]
8
]

Return to bug 256733