blob: 9aec2e80c98aa20f9025e35ecde1c3bd25381db2 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
PORTNAME= artifactory
DISTVERSION= 5.8.3
CATEGORIES= devel java
MASTER_SITES= https://bintray.com/artifact/download/jfrog/artifactory/
DISTNAME= jfrog-${PORTNAME}-oss-${PORTVERSION}
MAINTAINER= dharrigan@gmail.com
COMMENT= Universal Artifact Repository Manager
LICENSE= GPLv3 APACHE20
LICENSE_COMB= multi
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING.AFFERO
LICENSE_FILE_APACHE20= ${WRKSRC}/tomcat/LICENSE
RUN_DEPENDS= bash:shells/bash
WRKSRC= ${WRKDIR}/${PORTNAME}-oss-${PORTVERSION}
USES= shebangfix zip
SHEBANG_FILES= bin/artifactory.sh
USE_JAVA= yes
JAVA_VERSION= 1.8+
JAVA_VENDOR= openjdk
NO_BUILD= yes
NO_ARCH= yes
USE_RC_SUBR= ${PORTNAME}
APP_NAME= ${PORTNAME}
APP_HOME?= ${PORTNAME}
PID_FILE?= /var/run/${PORTNAME}.pid
VARDIR= /var/${PORTNAME}
USERS= artifactory
GROUPS= artifactory
SUB_LIST= APP_HOME=${PREFIX}/${APP_HOME} \
APP_NAME=${APP_NAME} \
PID_FILE=${PID_FILE} \
VARDIR=${VARDIR}
SUB_FILES= pkg-message \
PLIST_SUB= APP_HOME=${APP_HOME} \
VARDIR=${VARDIR}
do-install:
.for f in artifactory-service.exe artifactory.bat installService.bat \
uninstallService.bat
${RM} ${WRKSRC}/bin/${f}
.endfor
${RM} ${WRKSRC}/tomcat/bin/*.bat
${MKDIR} ${STAGEDIR}${PREFIX}/${APP_HOME}
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${APP_HOME})
${MKDIR} ${STAGEDIR}/${VARDIR}/tomcat/logs/catalina
${LN} -sf ${VARDIR}/tomcat/logs/catalina ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/logs
.for d in etc logs
${MV} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d} ${STAGEDIR}/${VARDIR}
${LN} -sf ${VARDIR}/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d}
.endfor
.for d in temp webapps work
${MV} ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/${d} ${STAGEDIR}/${VARDIR}/tomcat
${LN} -sf ${VARDIR}/tomcat/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/${d}
.endfor
.for d in data backup support access
${MKDIR} ${STAGEDIR}/${VARDIR}/${d}
${LN} -sf ${VARDIR}/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d}
.endfor
.include <bsd.port.mk>
|