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

(-)Makefile (-6 / +15 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	nzbget
4
PORTNAME=	nzbget
5
PORTVERSION=	11.0
5
PORTVERSION=	11.0
6
PORTREVISION=	1
6
CATEGORIES=	news
7
CATEGORIES=	news
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
8
9
Lines 23-52 Link Here
23
LDFLAGS+=	${PTHREAD_LIBS}
24
LDFLAGS+=	${PTHREAD_LIBS}
24
CFLAGS+=	${PTHREAD_CFLAGS}
25
CFLAGS+=	${PTHREAD_CFLAGS}
25
26
26
OPTIONS_DEFINE=	PAR
27
OPTIONS_DEFINE=	7Z PAR PYTHON RAR
27
OPTIONS_SINGLE=	TLSLIB
28
OPTIONS_SINGLE=	TLSLIB
28
OPTIONS_SINGLE_TLSLIB=	GNUTLS OPENSSL
29
OPTIONS_SINGLE_TLSLIB=	GNUTLS OPENSSL
29
OPTIONS_DEFAULT=	PAR GNUTLS
30
OPTIONS_DEFAULT=	GNUTLS PAR PYTHON RAR
31
7Z_DESC=	Support extraction of 7z archives
30
PAR_DESC=	Support verifying/repairing with par2 files
32
PAR_DESC=	Support verifying/repairing with par2 files
33
PYTHON_DESC=	Support for python post-processing scripts
34
RAR_DESC=	Support extraction of rar archives
31
35
36
7Z_RUN_DEPENDS=		7z:${PORTSDIR}/archivers/p7zip
37
32
PAR_CONFIGURE_ON=	--enable-parcheck --disable-libpar2-bugfixes-check
38
PAR_CONFIGURE_ON=	--enable-parcheck --disable-libpar2-bugfixes-check
33
PAR_CONFIGURE_OFF=	--disable-parcheck
39
PAR_CONFIGURE_OFF=	--disable-parcheck
34
PAR_LIB_DEPENDS=	libpar2.so:${PORTSDIR}/archivers/libpar2
40
PAR_LIB_DEPENDS=	libpar2.so:${PORTSDIR}/archivers/libpar2
35
41
42
PYTHON_USE=	PYTHON=yes
43
44
RAR_RUN_DEPENDS=	unrar:${PORTSDIR}/archivers/unrar
45
36
OPENSSL_CONFIGURE_ON=	--with-tlslib=OpenSSL \
46
OPENSSL_CONFIGURE_ON=	--with-tlslib=OpenSSL \
37
			--with-openssl-includes=${OPENSSLINC} \
47
			--with-openssl-includes=${OPENSSLINC} \
38
			--with-openssl-libraries=${OPENSSLLIB}
48
			--with-openssl-libraries=${OPENSSLLIB}
49
OPENSSL_USE=	OPENSSL=yes
39
50
40
GNUTLS_CONFIGURE_ON=	--with-tlslib=GnuTLS
51
GNUTLS_CONFIGURE_ON=	--with-tlslib=GnuTLS
41
GNUTLS_LIB_DEPENDS=	libgnutls.so:${PORTSDIR}/security/gnutls \
52
GNUTLS_LIB_DEPENDS=	libgnutls.so:${PORTSDIR}/security/gnutls \
42
			libgcrypt.so:${PORTSDIR}/security/libgcrypt
53
			libgcrypt.so:${PORTSDIR}/security/libgcrypt
43
54
44
CONFIGURE_ARGS+=	--enable-sigchld-handler
45
46
.include <bsd.port.options.mk>
55
.include <bsd.port.options.mk>
47
56
48
.if ${PORT_OPTIONS:MOPENSSL}
57
.if (${ARCH} == "i386")
49
 USE_OPENSSL=	yes
58
CONFIGURE_ARGS+=       --disable-sigchld-handler
50
.endif
59
.endif
51
60
52
post-configure:
61
post-configure:
(-)files/nzbget.in (-8 / +5 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD$
4
#
3
# PROVIDE: nzbget
5
# PROVIDE: nzbget
4
# KEYWORD: shutdown
6
# KEYWORD: shutdown
5
#
7
#
Lines 11-25 Link Here
11
13
12
. /etc/rc.subr
14
. /etc/rc.subr
13
15
14
name="nzbget"
16
name=nzbget
15
rcvar=nzbget_enable
17
rcvar=nzbget_enable
16
18
17
load_rc_config ${name}
19
load_rc_config ${name}
18
20
19
: ${nzbget_enable:="NO"}
21
: ${nzbget_enable:=NO}
20
22
21
start_cmd="${name}_start"
23
start_cmd="${name}_start"
22
status_cmd="${name}_status"
24
status_cmd="${command} status"
23
stop_cmd="${name}_stop"
25
stop_cmd="${name}_stop"
24
command=%%PREFIX%%/sbin/nzbgetd
26
command=%%PREFIX%%/sbin/nzbgetd
25
27
Lines 38-46 Link Here
38
	${command} stop
40
	${command} stop
39
}
41
}
40
42
41
nzbget_status()
42
{
43
	${command} status
44
}
45
46
run_rc_command "$1"
43
run_rc_command "$1"

Return to bug 183026