aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/unifi3
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2014-03-10 10:48:21 +0800
committerfeld <feld@FreeBSD.org>2014-03-10 10:48:21 +0800
commitc4c4d2d5f161bb9b47191168298f1c54fc656afe (patch)
treec6553ea9c4ba452a25539095dfe58cb2851ad79a /net-mgmt/unifi3
parent75421d9045505995eacb0e47b799ef449ac768a8 (diff)
downloadfreebsd-ports-gnome-c4c4d2d5f161bb9b47191168298f1c54fc656afe.tar.gz
freebsd-ports-gnome-c4c4d2d5f161bb9b47191168298f1c54fc656afe.tar.zst
freebsd-ports-gnome-c4c4d2d5f161bb9b47191168298f1c54fc656afe.zip
Permit control of the flags passed to java through a new variable
called unifi_javaflags Users have requested an easy way to make this change. Ubiquiti recommends 1024M by default, but the actual memory requirement depends on the size of your environment. It is safe to run at much lower levels with only a few APs.
Diffstat (limited to 'net-mgmt/unifi3')
-rw-r--r--net-mgmt/unifi3/Makefile2
-rw-r--r--net-mgmt/unifi3/files/unifi.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/net-mgmt/unifi3/Makefile b/net-mgmt/unifi3/Makefile
index 4884a61db2b3..4714f87edd65 100644
--- a/net-mgmt/unifi3/Makefile
+++ b/net-mgmt/unifi3/Makefile
@@ -3,7 +3,7 @@
PORTNAME= unifi3
PORTVERSION= 3.1.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
DISTNAME= UniFi.unix
diff --git a/net-mgmt/unifi3/files/unifi.in b/net-mgmt/unifi3/files/unifi.in
index f1dafecb738e..5e61de90008d 100644
--- a/net-mgmt/unifi3/files/unifi.in
+++ b/net-mgmt/unifi3/files/unifi.in
@@ -23,10 +23,11 @@ load_rc_config ${name}
: ${unifi_user:=%%USERS%%}
: ${unifi_group:=%%GROUPS%%}
: ${unifi_chdir=%%JAVASHAREDIR%%/unifi}
+: ${unifi_javaflags:="-Djava.awt.headless=true -Xmx1024M"}
command_interpreter=.
command="%%PREFIX%%/bin/java"
-command_args="-Djava.awt.headless=true -Xmx1024M -jar lib/ace.jar"
+command_args="${unifi_javaflags} -jar lib/ace.jar"
start_cmd=start_cmd
start_precmd=start_precmd
stop_cmd=stop_cmd