git: 98e172c68bba - main - net-mgmt/unifi8: Set UTF8 encoding on startup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Dec 2024 21:00:06 UTC
The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=98e172c68bba6b77d2430d5ff1304261920e90ea commit 98e172c68bba6b77d2430d5ff1304261920e90ea Author: Juraj Lutter <otis@FreeBSD.org> AuthorDate: 2024-12-27 20:55:49 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2024-12-27 20:59:50 +0000 net-mgmt/unifi8: Set UTF8 encoding on startup In order to use non-ASCII characters in WiFi network names, instruct java to use UTF8 encoding, similarly to what is also done in startup script for Linux. PR: 283443 --- net-mgmt/unifi8/Makefile | 1 + net-mgmt/unifi8/files/unifi.in | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net-mgmt/unifi8/Makefile b/net-mgmt/unifi8/Makefile index 6c7b5ea2a1b2..30eb6123bcca 100644 --- a/net-mgmt/unifi8/Makefile +++ b/net-mgmt/unifi8/Makefile @@ -1,5 +1,6 @@ PORTNAME= unifi8 PORTVERSION= 8.6.9 +PORTREVISION?= 1 CATEGORIES= net-mgmt java MASTER_SITES= http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \ https://repo1.maven.org/maven2/%SUBDIR%/:jax diff --git a/net-mgmt/unifi8/files/unifi.in b/net-mgmt/unifi8/files/unifi.in index de9813e5f0f6..24c27141bebe 100644 --- a/net-mgmt/unifi8/files/unifi.in +++ b/net-mgmt/unifi8/files/unifi.in @@ -45,8 +45,11 @@ load_rc_config ${name} : ${unifi_group:=%%GROUPS%%} : ${unifi_chdir=%%JAVASHAREDIR%%/unifi} : ${unifi_java_home=%%JAVA_HOME%%} -: ${unifi_javaflags="-Djava.awt.headless=true -Xmx1024M \ +: ${unifi_javaflags="-Djava.awt.headless=true \ -Djava.net.preferIPv4Stack=false \ + -Dapple.awt.UIElement=true \ + -Dfile.encoding=UTF-8 \ + -Xmx1024M \ --add-opens java.base/java.lang=ALL-UNNAMED \ --add-opens java.base/java.time=ALL-UNNAMED \ --add-opens java.base/sun.security.util=ALL-UNNAMED \