Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2019 22:45:48 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492464 - in head/news/nzbhydra2: . files
Message-ID:  <201902082245.x18MjmmC082229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Fri Feb  8 22:45:48 2019
New Revision: 492464
URL: https://svnweb.freebsd.org/changeset/ports/492464

Log:
  news/nzbhydra2: update to 2.3.6
  
  - while here, also address the issue of the missing data directory
  
  PR:		235545
  Submitted by:	Daniel Shafer <daniel@shafer.cc> (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D19091

Modified:
  head/news/nzbhydra2/Makefile
  head/news/nzbhydra2/distinfo
  head/news/nzbhydra2/files/nzbhydra2.in

Modified: head/news/nzbhydra2/Makefile
==============================================================================
--- head/news/nzbhydra2/Makefile	Fri Feb  8 21:50:29 2019	(r492463)
+++ head/news/nzbhydra2/Makefile	Fri Feb  8 22:45:48 2019	(r492464)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	nzbhydra2
-DISTVERSION=	2.3.4
+DISTVERSION=	2.3.6
 DISTVERSIONSUFFIX=	-linux
 CATEGORIES=	news java
 MASTER_SITES=	https://github.com/theotherp/${PORTNAME}/releases/download/v${DISTVERSION}/
@@ -32,7 +32,7 @@ JAVA_RUN=	yes
 USERS=		nzbhydra2
 GROUPS=		nzbhydra2
 
-PLIST_FILES=	${DATADIR}/lib/core-2.3.4-exec.jar \
+PLIST_FILES=	${DATADIR}/lib/core-2.3.6-exec.jar \
 		${DATADIR}/nzbhydra2 \
 		${DATADIR}/nzbhydra2wrapper.py \
 		${DATADIR}/changelog.md \

Modified: head/news/nzbhydra2/distinfo
==============================================================================
--- head/news/nzbhydra2/distinfo	Fri Feb  8 21:50:29 2019	(r492463)
+++ head/news/nzbhydra2/distinfo	Fri Feb  8 22:45:48 2019	(r492464)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1549150850
-SHA256 (nzbhydra2-2.3.4-linux.zip) = 4c999d26886531ddba66d7c8e656da3fba50476abd722d8823d3cd128d8d5132
-SIZE (nzbhydra2-2.3.4-linux.zip) = 61624259
+TIMESTAMP = 1549478817
+SHA256 (nzbhydra2-2.3.6-linux.zip) = e3aef24aac61f9094f80cd7d93821a103058b4410bafe3ec7d183abaf40bd5dc
+SIZE (nzbhydra2-2.3.6-linux.zip) = 61625733

Modified: head/news/nzbhydra2/files/nzbhydra2.in
==============================================================================
--- head/news/nzbhydra2/files/nzbhydra2.in	Fri Feb  8 21:50:29 2019	(r492463)
+++ head/news/nzbhydra2/files/nzbhydra2.in	Fri Feb  8 22:45:48 2019	(r492464)
@@ -21,7 +21,7 @@
 #			as wheel.
 # nzbhydra2_dir:	Directory where nzbhydra lives.
 #			Default: %%PREFIX%%/share/nzbhydra2
-# nzbhydra2_datafolder:	Data directory for nzbhydra (DB, Logs, config)
+# nzbhydra2_data_dir:	Data directory for nzbhydra (DB, Logs, config)
 #			Default: %%PREFIX%%/nzbhydra2
 
 . /etc/rc.subr
@@ -35,14 +35,17 @@ load_rc_config ${name}
 : ${nzbhydra2_user:="nzbhydra2"}
 : ${nzbhydra2_group:="nzbhydra2"}
 : ${nzbhydra2_dir:="%%PREFIX%%/share/nzbhydra2"}
-: ${nzbhydra2_datafolder:="%%PREFIX%%/nzbhydra2"}
+: ${nzbhydra2_data_dir:="%%PREFIX%%/nzbhydra2"}
 
 pidfile="/var/run/nzbhydra2/nzbhydra2.pid"
 command="%%PYTHON_CMD%%"
-command_args="${nzbhydra2_dir}/nzbhydra2wrapper.py --datafolder ${nzbhydra2_datafolder} --pidfile ${pidfile} --daemon --nobrowser --java %%JAVA%%"
+command_args="${nzbhydra2_dir}/nzbhydra2wrapper.py --datafolder ${nzbhydra2_data_dir} --pidfile ${pidfile} --daemon --nobrowser --java %%JAVA%%"
+start_precmd=nzbhydra2_precmd
 
-start_precmd="prestart"
-prestart() {
+nzbhydra2_precmd() 
+{
+	export XDG_CONFIG_HOME=${nzbhydra2_data_dir}
+
 	if [ -f ${pidfile} ]; then
 		rm -f ${pidfile}
 		echo "Removing stale pidfile."
@@ -50,8 +53,8 @@ prestart() {
 		install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${pidfile%/*}
 	fi
 
-	if [ ! -d ${nzbhydra2_datadir} ]; then
-		install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${nzbhydra2_datadir}
+	if [ ! -d ${nzbhydra2_data_dir} ]; then
+		install -d -o ${nzbhydra2_user} -g ${nzbhydra2_group} ${nzbhydra2_data_dir}
 	fi
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902082245.x18MjmmC082229>