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

(-)net-p2p/sonarr3/Makefile (+43 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	sonarr3
4
PORTVERSION=	3.0.1.364
5
CATEGORIES=	net-p2p
6
MASTER_SITES=	http://download.sonarr.tv/v3/phantom-develop/${PORTVERSION}/
7
DISTNAME=	Sonarr.phantom-develop.${PORTVERSION}.linux
8
9
MAINTAINER=	feld@FreeBSD.org
10
COMMENT=	PVR for Usenet and BitTorrent users
11
12
LICENSE=	GPLv3
13
14
RUN_DEPENDS=	mono>0:lang/mono \
15
		mediainfo>0:multimedia/mediainfo \
16
		sqlite3>0:databases/sqlite3
17
LIB_DEPENDS=	libcurl.so:ftp/curl
18
19
USE_RC_SUBR=	sonarr3
20
21
NO_ARCH=	YES
22
NO_BUILD=	YES
23
WRKSRC=	${WRKDIR}/Sonarr
24
25
USERS=	sonarr
26
GROUPS=	sonarr
27
28
OPTIONS_DEFINE=	X11
29
30
# Permits image resizing
31
X11_LIB_DEPENDS+=libgdiplus.so:x11-toolkits/libgdiplus
32
33
.include <bsd.port.options.mk>
34
35
do-install:
36
	${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}
37
	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}
38
39
post-install:
40
	@${FIND} -s ${STAGEDIR}${DATADIR} -not -type d | ${SORT} | \
41
		${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
42
43
.include <bsd.port.mk>
(-)net-p2p/sonarr3/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1549340365
2
SHA256 (Sonarr.phantom-develop.3.0.1.364.linux.tar.gz) = 72457b866c6218899451fc7839c53649f874ef460216a6550d4aee2e73c106a8
3
SIZE (Sonarr.phantom-develop.3.0.1.364.linux.tar.gz) = 9154259
(-)net-p2p/sonarr3/files/sonarr3.in (+39 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: sonarr3
7
# REQUIRE: LOGIN
8
# KEYWORD: shutdown
9
10
# Add the following lines to /etc/rc.conf to enable sonarr:
11
# sonarr3_enable="YES"
12
13
. /etc/rc.subr
14
15
name="sonarr3"
16
rcvar=sonarr3_enable
17
18
load_rc_config $name
19
20
: ${sonarr3_enable="NO"}
21
: ${sonarr3_user:="sonarr"}
22
: ${sonarr3_data_dir:="%%PREFIX%%/sonarr3"}
23
24
pidfile="${sonarr3_data_dir}/sonarr.pid"
25
procname="%%PREFIX%%/bin/mono"
26
command="/usr/sbin/daemon"
27
command_args="-f ${procname} %%DATADIR%%/Sonarr.exe --nobrowser --data=${sonarr3_data_dir}"
28
start_precmd=sonarr3_precmd
29
30
sonarr3_precmd()
31
{
32
	export XDG_CONFIG_HOME=${sonarr3_data_dir}
33
34
	if [ ! -d ${sonarr3_data_dir} ]; then
35
		install -d -o ${sonarr3_user} ${sonarr3_data_dir}
36
	fi
37
}
38
39
run_rc_command "$1"
(-)net-p2p/sonarr3/pkg-descr (+3 lines)
Line 0 Link Here
1
Sonarr3 is a PVR for Usenet and BitTorrent users.
2
3
WWW: https://sonarr.tv

Return to bug 235508