svn commit: r512297 - in head/net-p2p: . sonarr-devel sonarr-devel/files
Mark Felder
feld at FreeBSD.org
Wed Sep 18 22:50:11 UTC 2019
Author: feld
Date: Wed Sep 18 22:50:09 2019
New Revision: 512297
URL: https://svnweb.freebsd.org/changeset/ports/512297
Log:
Add net-p2p/sonarr-devel to the tree
The sonarr-devel port tracks the development releases of Sonarr's
v3 phantom branch.
If you previously had net-p2p/sonarr installed, it will automatically
upgrade your database after backing up the v2 database files.
PR: 235508
Submitted by: rodrigo
Added:
head/net-p2p/sonarr-devel/
- copied from r512296, head/net-p2p/sonarr/
Modified:
head/net-p2p/Makefile
head/net-p2p/sonarr-devel/Makefile
head/net-p2p/sonarr-devel/distinfo
head/net-p2p/sonarr-devel/files/sonarr.in
Modified: head/net-p2p/Makefile
==============================================================================
--- head/net-p2p/Makefile Wed Sep 18 22:35:55 2019 (r512296)
+++ head/net-p2p/Makefile Wed Sep 18 22:50:09 2019 (r512297)
@@ -78,6 +78,7 @@
SUBDIR += rtorrent
SUBDIR += shx
SUBDIR += sonarr
+ SUBDIR += sonarr-devel
SUBDIR += squall
SUBDIR += torrent-file-editor
SUBDIR += torrentcheck
Modified: head/net-p2p/sonarr-devel/Makefile
==============================================================================
--- head/net-p2p/sonarr/Makefile Wed Sep 18 22:35:55 2019 (r512296)
+++ head/net-p2p/sonarr-devel/Makefile Wed Sep 18 22:50:09 2019 (r512297)
@@ -1,18 +1,19 @@
# $FreeBSD$
PORTNAME= sonarr
-PORTVERSION= 2.0.0.5322
+PORTVERSION= 3.0.3.644
PORTREVISION= 0
CATEGORIES= net-p2p
-MASTER_SITES= http://download.sonarr.tv/v2/master/mono/
-DISTNAME= NzbDrone.master.${PORTVERSION}.mono
+MASTER_SITES= http://download.sonarr.tv/v3/phantom-develop/${PORTVERSION}/
+PKGNAMESUFFIX= -devel
+DISTNAME= Sonarr.phantom-develop.${PORTVERSION}.linux
MAINTAINER= feld at FreeBSD.org
COMMENT= PVR for Usenet and BitTorrent users
LICENSE= GPLv3
-RUN_DEPENDS= mono>0:lang/mono \
+RUN_DEPENDS= mono>4.6.1:lang/mono \
mediainfo>0:multimedia/mediainfo \
sqlite3>0:databases/sqlite3
LIB_DEPENDS= libcurl.so:ftp/curl
@@ -21,7 +22,7 @@ USE_RC_SUBR= sonarr
NO_ARCH= YES
NO_BUILD= YES
-WRKSRC= ${WRKDIR}/NzbDrone
+WRKSRC= ${WRKDIR}/Sonarr
USERS= sonarr
GROUPS= sonarr
@@ -30,6 +31,8 @@ OPTIONS_DEFINE= X11
# Permits image resizing
X11_LIB_DEPENDS+=libgdiplus.so:x11-toolkits/libgdiplus
+
+CONFLICTS= sonarr-2*
.include <bsd.port.options.mk>
Modified: head/net-p2p/sonarr-devel/distinfo
==============================================================================
--- head/net-p2p/sonarr/distinfo Wed Sep 18 22:35:55 2019 (r512296)
+++ head/net-p2p/sonarr-devel/distinfo Wed Sep 18 22:50:09 2019 (r512297)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1556289833
-SHA256 (NzbDrone.master.2.0.0.5322.mono.tar.gz) = fc262c027056a112e703e35569fac86f88b147ca9e60dc7f5b5ae74c6d97946f
-SIZE (NzbDrone.master.2.0.0.5322.mono.tar.gz) = 7002263
+TIMESTAMP = 1568844081
+SHA256 (Sonarr.phantom-develop.3.0.3.644.linux.tar.gz) = e2baed5e3ec1c1804813a173313101c9fabb4921da09aa42ca0197ff371246d4
+SIZE (Sonarr.phantom-develop.3.0.3.644.linux.tar.gz) = 10146222
Modified: head/net-p2p/sonarr-devel/files/sonarr.in
==============================================================================
--- head/net-p2p/sonarr/files/sonarr.in Wed Sep 18 22:35:55 2019 (r512296)
+++ head/net-p2p/sonarr-devel/files/sonarr.in Wed Sep 18 22:50:09 2019 (r512297)
@@ -23,10 +23,10 @@ load_rc_config $name
: ${sonarr_user:="sonarr"}
: ${sonarr_data_dir:="%%PREFIX%%/sonarr"}
-pidfile="${sonarr_data_dir}/nzbdrone.pid"
+pidfile="${sonarr_data_dir}/sonarr.pid"
procname="%%PREFIX%%/bin/mono"
command="/usr/sbin/daemon"
-command_args="-f ${procname} %%DATADIR%%/NzbDrone.exe --nobrowser --data=${sonarr_data_dir}"
+command_args="-f ${procname} %%DATADIR%%/Sonarr.exe --nobrowser --data=${sonarr_data_dir}"
start_precmd=sonarr_precmd
sonarr_precmd()
@@ -36,6 +36,10 @@ sonarr_precmd()
if [ ! -d ${sonarr_data_dir} ]; then
install -d -o ${sonarr_user} ${sonarr_data_dir}
fi
+
+ # Unwritable pids allow the service to start, but fails to work
+ # Rare, but if you are debugging as root and accidentally start the service...
+ /bin/rm -f ${pidfile}
}
run_rc_command "$1"
More information about the svn-ports-all
mailing list