aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/rackmonkey/Makefile6
-rw-r--r--net-mgmt/rackmonkey/pkg-plist2
2 files changed, 7 insertions, 1 deletions
diff --git a/net-mgmt/rackmonkey/Makefile b/net-mgmt/rackmonkey/Makefile
index 44813c41b6d7..663c09d6362f 100644
--- a/net-mgmt/rackmonkey/Makefile
+++ b/net-mgmt/rackmonkey/Makefile
@@ -51,6 +51,12 @@ USE_PGSQL= 83
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif
+.if defined(INIT_DB)
+PLIST_SUB+= INIT_DB=""
+.else
+PLIST_SUB+= INIT_DB="@comment "
+.endif
+
do-install:
${MKDIR} ${WWWDIR}/
${INSTALL} ${WRKSRC}/perl/rackmonkey.pl ${WRKSRC}/perl/rack2xls.pl ${WRKSRC}/perl/rackdns.pl ${WWWDIR}/
diff --git a/net-mgmt/rackmonkey/pkg-plist b/net-mgmt/rackmonkey/pkg-plist
index 442ee1f5a88d..329c7570b469 100644
--- a/net-mgmt/rackmonkey/pkg-plist
+++ b/net-mgmt/rackmonkey/pkg-plist
@@ -1,5 +1,5 @@
%%WWWDIR%%/rackmonkey.pl
-%%WWWDIR%%/rackmonkey.db
+%%INIT_DB%%%%WWWDIR%%/rackmonkey.db
%%WWWDIR%%/rack2xls.pl
%%WWWDIR%%/rackdns.pl
%%WWWDIR%%/graphics/favicon.ico