blob: 8380785573f8bce4babc35e57e46ce2ec79546b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
PORTNAME= nzbhydra2
DISTVERSION= 4.7.4
DISTVERSIONSUFFIX= -linux
CATEGORIES= news java
MASTER_SITES= https://github.com/theotherp/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= marcel@herrbischoff.com
COMMENT= Usenet meta search
WWW= https://github.com/theotherp/nzbhydra2
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
USES= python zip
USE_JAVA= yes
USE_RC_SUBR= nzbhydra2
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= nzbhydra2
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
JAVA=${JAVA}
JAVA_VERSION= 17+
JAVA_VENDOR= openjdk
JAVA_RUN= yes
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
do-install:
@${MKDIR} ${STAGEDIR}/${DATADIR}
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}
.include <bsd.port.mk>
|