blob: fa496a43a96230979f2e9eaa499c9a9d431041e0 (
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
|
PORTNAME= sonar-scanner-cli
DISTVERSION= 4.4.0.2170
PORTREVISION= 0
CATEGORIES= devel security www java
MASTER_SITES= https://binaries.sonarsource.com/Distribution/${PORTNAME}/
MAINTAINER= netchild@FreeBSD.org
COMMENT= Scanner component of SonarQube
LICENSE= LGPL3
# node -> JS analysis
RUN_DEPENDS= node:www/node
USES= cpe zip
CPE_VENDOR= sonarsource
USE_JAVA= yes
WRKSRC= ${WRKDIR}/sonar-scanner-${DISTVERSION}
NO_ARCH= yes
NO_BUILD= yes
JAVA_VERSION= 11+
JAVA_VENDOR= openjdk
APP_NAME= ${PORTNAME}
APP_DIR= libexec/${PORTNAME}
JAR_VERSION= ${DISTVERSION}
SUB_LIST= \
APP_DIR=${APP_DIR} \
JAR_VERSION=${JAR_VERSION}
SUB_FILES= \
sonar-scanner \
pkg-message
PLIST_SUB= \
APP_DIR=${APP_DIR} \
JAR_VERSION=${JAR_VERSION}
post-extract:
${MV} ${WRKSRC}/conf/sonar-scanner.properties ${WRKSRC}/conf/sonar-scanner.properties.sample
${RM} ${WRKSRC}/bin/*.bat
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${APP_DIR}
${INSTALL} ${WRKDIR}/sonar-scanner ${STAGEDIR}${PREFIX}/bin/
.for dir in bin conf lib
cd ${WRKSRC}; ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${PREFIX}/${APP_DIR} "! -name *\.orig"
.endfor
gen-plist:
${ECHO} '@sample ${APP_DIR}/conf/sonar-scanner.properties.sample' >${PLIST}.new
${ECHO} 'bin/sonar-scanner' >>${PLIST}.new
.for dir in bin conf lib
${FIND} ${STAGEDIR}${PREFIX}/${APP_DIR}/${dir} -type f | \
${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; \
s:${JAR_VERSION}:%%JAR_VERSION%%:g" | \
${GREP} -v conf/sonar-scanner.properties | ${SORT} >> ${PLIST}.new
.endfor
.include <bsd.port.mk>
|