summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/sonarqube-community/Makefile9
-rw-r--r--devel/sonarqube-community/pkg-plist1
2 files changed, 7 insertions, 3 deletions
diff --git a/devel/sonarqube-community/Makefile b/devel/sonarqube-community/Makefile
index c5487524a1e2..4b9ab9beba2d 100644
--- a/devel/sonarqube-community/Makefile
+++ b/devel/sonarqube-community/Makefile
@@ -2,7 +2,7 @@
PORTNAME= sonarqube
DISTVERSION= 8.2.0.32929
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= devel security www java
MASTER_SITES= https://binaries.sonarsource.com/Distribution/sonarqube/:m_core \
https://binaries.sonarsource.com/Distribution/sonar-csharp-plugin/:m_csharp \
@@ -47,8 +47,9 @@ APP_DIR= libexec/${PORTNAME}
LOG_DIR= /var/log/${PORTNAME}
PID_DIR= /var/run/${PORTNAME}
JAR_VERSION= ${DISTVERSION}
-DATA_DIR= /var/db/${PORTNAME}/data
-TEMP_DIR= /var/db/${PORTNAME}/temp
+DBBASE_DIR= /var/db/${PORTNAME}
+DATA_DIR= ${DBBASE_DIR}/data
+TEMP_DIR= ${DBBASE_DIR}/temp
SONARCSHARP_VER= 8.6.1.17183
SONARJAVA_VER= 6.3.0.21585
@@ -80,6 +81,7 @@ PLIST_SUB= APP_NAME=${APP_NAME} \
LOG_DIR=${LOG_DIR} \
PID_DIR=${PID_DIR} \
JAR_VERSION=${JAR_VERSION} \
+ DBBASE_DIR=${DBBASE_DIR} \
DATA_DIR=${DATA_DIR} \
TEMP_DIR=${TEMP_DIR} \
SONARCSHARP_VER=${SONARCSHARP_VER} \
@@ -122,6 +124,7 @@ do-install:
gen-plist:
${ECHO} '@sample ${APP_DIR}/conf/sonar.properties.sample' >${PLIST}.new
+ ${ECHO} '@dir(sonarqube,sonarqube,755) %%DBBASE_DIR%%' >>${PLIST}.new
${ECHO} '@dir(sonarqube,sonarqube,755) %%DATA_DIR%%' >>${PLIST}.new
${ECHO} '@dir(sonarqube,sonarqube,755) %%TEMP_DIR%%' >>${PLIST}.new
${ECHO} '@dir %%APP_DIR%%/elasticsearch/plugins' >>${PLIST}.new
diff --git a/devel/sonarqube-community/pkg-plist b/devel/sonarqube-community/pkg-plist
index 0a6249a45f59..28187d6083a0 100644
--- a/devel/sonarqube-community/pkg-plist
+++ b/devel/sonarqube-community/pkg-plist
@@ -1,4 +1,5 @@
@sample libexec/sonarqube/conf/sonar.properties.sample
+@dir(sonarqube,sonarqube,755) %%DBBASE_DIR%%
@dir(sonarqube,sonarqube,755) %%DATA_DIR%%
@dir(sonarqube,sonarqube,755) %%TEMP_DIR%%
@dir %%APP_DIR%%/elasticsearch/plugins