Skip to content

Commit

Permalink
news/nzbhydra2: Update version 4.7.4=>5.3.3
Browse files Browse the repository at this point in the history
Changelog: https://github.com/theotherp/nzbhydra2/releases/tag/v5.3.5

PR:             274418
Approved by:    submitter is maintainer
  • Loading branch information
Kreeblah authored and 5u623l20 committed Dec 12, 2023
1 parent 28d71ea commit e276e87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
17 changes: 8 additions & 9 deletions news/nzbhydra2/Makefile
@@ -1,6 +1,6 @@
PORTNAME= nzbhydra2
DISTVERSION= 4.7.4
DISTVERSIONSUFFIX= -linux
DISTVERSION= 5.3.3
DISTVERSIONSUFFIX= -generic
CATEGORIES= news java
MASTER_SITES= https://github.com/theotherp/${PORTNAME}/releases/download/v${DISTVERSION}/

Expand All @@ -22,7 +22,8 @@ NO_WRKSUBDIR= yes

SUB_FILES= nzbhydra2
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
JAVA=${JAVA}
JAVA=${JAVA} \
DISTVERSION=${DISTVERSION}

JAVA_VERSION= 17+
JAVA_VENDOR= openjdk
Expand All @@ -32,19 +33,17 @@ USERS= nzbhydra2
GROUPS= nzbhydra2

PLIST_FILES= ${DATADIR}/lib/core-${DISTVERSION}-exec.jar \
${DATADIR}/nzbhydra2 \
${DATADIR}/nzbhydra2wrapperPy3.py \
${DATADIR}/changelog.md \
${DATADIR}/readme.md \
${DATADIR}/LICENSE

post-extract:
# Cleanup unnecessary files
@${RM} -r ${WRKSRC}/systemd ${WRKSRC}/sysv ${WRKSRC}/rc.d ${WRKSRC}/upstart ${WRKSRC}/nzbhydra2wrapper.py

pre-install:
# temp fix for https://github.com/theotherp/nzbhydra2/issues/812
${RM} -r ${WRKSRC}/data
@${RM} -r ${WRKSRC}/systemd ${WRKSRC}/sysv ${WRKSRC}/rc.d \
${WRKSRC}/upstart ${WRKSRC}/nzbhydra2wrapper.py \
${WRKSRC}/other ${WRKSRC}/executables ${WRKSRC}/WindowsService \
${WRKSRC}/NZBHydra2*

do-install:
@${MKDIR} ${STAGEDIR}/${DATADIR}
Expand Down
6 changes: 3 additions & 3 deletions news/nzbhydra2/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1671278127
SHA256 (nzbhydra2-4.7.4-linux.zip) = 70ca65452f1e80f010a61bd5a760961efcab04e06cd0599403b174af753d8a84
SIZE (nzbhydra2-4.7.4-linux.zip) = 83396533
TIMESTAMP = 1700556557
SHA256 (nzbhydra2-5.3.3-generic.zip) = 61e656a066ed01dd4214c52609c051c7f2e1451a9f7080510f731863ac461a92
SIZE (nzbhydra2-5.3.3-generic.zip) = 195956868
2 changes: 2 additions & 0 deletions news/nzbhydra2/files/nzbhydra2.in
Expand Up @@ -45,6 +45,8 @@ nzbhydra2_precmd()
export XDG_CONFIG_HOME=${nzbhydra2_data_dir}
export NZBHYDRA_DISABLE_UPDATE=1

find "%%PREFIX%%/share/nzbhydra2/lib/" ! -name "core-%%DISTVERSION%%-exec.jar" -delete

if [ -f ${pidfile} ]; then
rm -f ${pidfile}
echo "Removing stale pidfile."
Expand Down

0 comments on commit e276e87

Please sign in to comment.