summaryrefslogtreecommitdiff
path: root/www/grafana2
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2015-05-04 21:39:58 +0000
committerCharlie Root <root@db.2.localnet.cc>2015-05-04 21:40:25 +0000
commit59b99ad6772969fa9168173bc6e1472e44326aa8 (patch)
treec328733c5e9fc4748466a41576be1518fc96f74d /www/grafana2
parent4e6c85c199d2ad840bc399c839716cd8a72267d9 (diff)
downloadfreebsd-ports-grafana-59b99ad6772969fa9168173bc6e1472e44326aa8.tar.gz
freebsd-ports-grafana-59b99ad6772969fa9168173bc6e1472e44326aa8.zip
correct user, create lib and logdir
Diffstat (limited to 'www/grafana2')
-rw-r--r--www/grafana2/Makefile6
-rw-r--r--www/grafana2/pkg-plist6
2 files changed, 8 insertions, 4 deletions
diff --git a/www/grafana2/Makefile b/www/grafana2/Makefile
index 157dbea..56b9499 100644
--- a/www/grafana2/Makefile
+++ b/www/grafana2/Makefile
@@ -39,8 +39,8 @@ GRAFANA_GROUP?= grafana
GRAFANA_HOMEDIR=${PREFIX}/share/grafana2
GRAFANA_PIDFILE=/var/run/${PORTNAME}.pid
-USERS= ${INFLUXD_USER}
-GROUPS= ${INFLUXD_GROUP}
+USERS= ${GRAFANA_USER}
+GROUPS= ${GRAFANA_GROUP}
STRIP= # stripping can break go binaries
@@ -68,6 +68,8 @@ do-build:
#do-install:
post-install:
+ ${MKDIR} ${STAGEDIR}/var/lib/${PORTNAME}/
+ ${MKDIR} ${STAGEDIR}/var/log/${PORTNAME}/
${INSTALL_PROGRAM} ${WRKDIR}/src/github.com/grafana/grafana/grafana ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
(cd ${WRKDIR}/src/github.com/grafana/grafana && \
${COPYTREE_SHARE} public \
diff --git a/www/grafana2/pkg-plist b/www/grafana2/pkg-plist
index d7186e8..218545b 100644
--- a/www/grafana2/pkg-plist
+++ b/www/grafana2/pkg-plist
@@ -1,7 +1,9 @@
bin/%%GO_PKGNAME%%
%%ETCDIR%%.ini
-@dir(influxd,%%GRAFANA_GROUP%%,0750) /var/lib/%%GO_PKGNAME%%
-@dir(influxd,%%GRAFANA_GROUP%%,0750) %%DATADIR%%
+@dir(%%GRAFANA_USER%%,%%GRAFANA_GROUP%%,0750) /var/log/%%GO_PKGNAME%%
+@dir(%%GRAFANA_USER%%,%%GRAFANA_GROUP%%,0750) /var/lib/%%GO_PKGNAME%%
+@dir /var/lib
+@dir(%%GRAFANA_USER%%,%%GRAFANA_GROUP%%,0750) %%DATADIR%%
%%DATADIR%%/conf/defaults.ini
%%DATADIR%%/public/app/app.js
%%DATADIR%%/public/app/components/config.js