aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-12-23 11:31:48 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-12-23 11:31:48 +0800
commitb378902b2851ef70b2573f7312fd2cf76d15b46d (patch)
tree78456ca63e7bfadf719ec4a183f21bb18430cde6 /net-mgmt
parentd7d048eca6bc4113a03cd330fef73b50f1db8550 (diff)
downloadfreebsd-ports-gnome-b378902b2851ef70b2573f7312fd2cf76d15b46d.tar.gz
freebsd-ports-gnome-b378902b2851ef70b2573f7312fd2cf76d15b46d.tar.zst
freebsd-ports-gnome-b378902b2851ef70b2573f7312fd2cf76d15b46d.zip
- rackmonkey.db (sqlite) is not recreated when !INIT_DB
Approved by: ecrist@secure-computing.net (maintainer) via #bsdports
Diffstat (limited to 'net-mgmt')
-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