Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140138806
D19091.id53627.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D19091.id53627.diff
View Options
Index: news/nzbhydra2/Makefile
===================================================================
--- news/nzbhydra2/Makefile
+++ news/nzbhydra2/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= nzbhydra2
-DISTVERSION= 2.3.4
+DISTVERSION= 2.3.5
DISTVERSIONSUFFIX= -linux
CATEGORIES= news java
MASTER_SITES= https://github.com/theotherp/${PORTNAME}/releases/download/v${DISTVERSION}/
@@ -32,7 +32,7 @@
USERS= nzbhydra2
GROUPS= nzbhydra2
-PLIST_FILES= ${DATADIR}/lib/core-2.3.4-exec.jar \
+PLIST_FILES= ${DATADIR}/lib/core-2.3.5-exec.jar \
${DATADIR}/nzbhydra2 \
${DATADIR}/nzbhydra2wrapper.py \
${DATADIR}/changelog.md \
Index: news/nzbhydra2/distinfo
===================================================================
--- news/nzbhydra2/distinfo
+++ news/nzbhydra2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1549150850
-SHA256 (nzbhydra2-2.3.4-linux.zip) = 4c999d26886531ddba66d7c8e656da3fba50476abd722d8823d3cd128d8d5132
-SIZE (nzbhydra2-2.3.4-linux.zip) = 61624259
+TIMESTAMP = 1549474127
+SHA256 (nzbhydra2-2.3.5-linux.zip) = 0ec78c59224de337503c4245d0c22a47278422af2450e1e873f8700407716d12
+SIZE (nzbhydra2-2.3.5-linux.zip) = 61625154
Index: news/nzbhydra2/files/nzbhydra2.in
===================================================================
--- news/nzbhydra2/files/nzbhydra2.in
+++ news/nzbhydra2/files/nzbhydra2.in
@@ -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 @@
: ${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 @@
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
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 6:09 PM (11 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27118469
Default Alt Text
D19091.id53627.diff (2 KB)
Attached To
Mode
D19091: news/nzbhydra2: Update to 2.3.6 and fix nzbhydra2.in to create directory/permissions on first run
Attached
Detach File
Event Timeline
Log In to Comment