Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2014 02:48:21 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347714 - in head/net-mgmt: unifi2 unifi2/files unifi3 unifi3/files
Message-ID:  <201403100248.s2A2mLMa095574@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Mon Mar 10 02:48:21 2014
New Revision: 347714
URL: http://svnweb.freebsd.org/changeset/ports/347714
QAT: https://qat.redports.org/buildarchive/r347714/

Log:
  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.

Modified:
  head/net-mgmt/unifi2/Makefile
  head/net-mgmt/unifi2/files/unifi.in
  head/net-mgmt/unifi3/Makefile
  head/net-mgmt/unifi3/files/unifi.in

Modified: head/net-mgmt/unifi2/Makefile
==============================================================================
--- head/net-mgmt/unifi2/Makefile	Mon Mar 10 00:55:41 2014	(r347713)
+++ head/net-mgmt/unifi2/Makefile	Mon Mar 10 02:48:21 2014	(r347714)
@@ -3,7 +3,7 @@
 
 PORTNAME=	unifi2
 PORTVERSION=	2.4.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt java
 MASTER_SITES=	http://dl.ubnt.com/unifi/${PORTVERSION}/
 DISTNAME=	UniFi.unix

Modified: head/net-mgmt/unifi2/files/unifi.in
==============================================================================
--- head/net-mgmt/unifi2/files/unifi.in	Mon Mar 10 00:55:41 2014	(r347713)
+++ head/net-mgmt/unifi2/files/unifi.in	Mon Mar 10 02:48:21 2014	(r347714)
@@ -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

Modified: head/net-mgmt/unifi3/Makefile
==============================================================================
--- head/net-mgmt/unifi3/Makefile	Mon Mar 10 00:55:41 2014	(r347713)
+++ head/net-mgmt/unifi3/Makefile	Mon Mar 10 02:48:21 2014	(r347714)
@@ -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

Modified: head/net-mgmt/unifi3/files/unifi.in
==============================================================================
--- head/net-mgmt/unifi3/files/unifi.in	Mon Mar 10 00:55:41 2014	(r347713)
+++ head/net-mgmt/unifi3/files/unifi.in	Mon Mar 10 02:48:21 2014	(r347714)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403100248.s2A2mLMa095574>