aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2011-07-28 22:29:52 +0800
committercrees <crees@FreeBSD.org>2011-07-28 22:29:52 +0800
commit9eb5bfbcc5f4fa19817fbea108a57bde91b5a426 (patch)
tree27e9da411daa22023a550634324a72285056f669 /sysutils
parentc08d330aa9a7948c5b071ae4757678ae9c38d082 (diff)
downloadfreebsd-ports-gnome-9eb5bfbcc5f4fa19817fbea108a57bde91b5a426.tar.gz
freebsd-ports-gnome-9eb5bfbcc5f4fa19817fbea108a57bde91b5a426.tar.zst
freebsd-ports-gnome-9eb5bfbcc5f4fa19817fbea108a57bde91b5a426.zip
Fix missing DATADIR
Submitted by: Edje (Freenode#monitorix)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/monitorix/Makefile1
-rw-r--r--sysutils/monitorix/pkg-plist2
2 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/monitorix/Makefile b/sysutils/monitorix/Makefile
index 23d3b942c157..f808d4d17950 100644
--- a/sysutils/monitorix/Makefile
+++ b/sysutils/monitorix/Makefile
@@ -123,6 +123,7 @@ do-install:
.endif
post-install:
+ @${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/monitorix.conf ${PREFIX}/etc/monitorix.conf.sample
@if [ ! -f ${PREFIX}/etc/monitorix.conf ]; then \
${CP} -p ${PREFIX}/etc/monitorix.conf.sample \
diff --git a/sysutils/monitorix/pkg-plist b/sysutils/monitorix/pkg-plist
index bee30af68949..976217466798 100644
--- a/sysutils/monitorix/pkg-plist
+++ b/sysutils/monitorix/pkg-plist
@@ -5,6 +5,8 @@
etc/monitorix.conf.sample
@exec if [ ! -f %D/etc/monitorix.conf ]; then cp %B/%f %D/etc/monitorix.conf; fi
sbin/monitorix
+@exec mkdir -p %D/%%DATADIR%%
+@dirrmtry %%DATADIR%%
%%CGIDIR%%/monitorix.cgi
@dirrmtry %%CGIDIR%%
%%REPORTS%%%%WWWDIR%%/reports/ca.html