FreeBSD Bugzilla – Attachment 206754 Details for
Bug 240016
net-mgmt/unifi5: Allow newer versions of Java
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for newer Java support
unifi5.diff (text/plain), 3.78 KB, created by
Greg Lewis
on 2019-08-21 16:17:23 UTC
(
hide
)
Description:
Patch for newer Java support
Filename:
MIME Type:
Creator:
Greg Lewis
Created:
2019-08-21 16:17:23 UTC
Size:
3.78 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 509159) >+++ Makefile (working copy) >@@ -5,9 +5,14 @@ > PORTVERSION= 5.10.25 > PORTREVISION= 0 > CATEGORIES= net-mgmt java >-MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/ >-DISTNAME= unifi_sysvinit_all >-EXTRACT_SUFX= .deb >+MASTER_SITES= http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \ >+ https://repo1.maven.org/maven2/%SUBDIR%/:jax >+MASTER_SITE_SUBDIR= ${PORTVERSION}/:unifi \ >+ javax/activation/${JAX_DISTNAME}/${JAX_VERSION}/:jax >+DISTFILES= unifi_sysvinit_all.deb:unifi \ >+ ${JAX_DISTNAME}-${JAX_VERSION}.jar:jax >+EXTRACT_ONLY= unifi_sysvinit_all.deb >+ > DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} > > MAINTAINER= feld@FreeBSD.org >@@ -17,7 +22,7 @@ > snappyjava>0:archivers/snappy-java > > SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \ >- JAVA=${JAVA} >+ JAVA=${JAVA} JAVA_HOME=${JAVA_HOME} > > EXTRACT_CMD= /usr/bin/ar > EXTRACT_BEFORE_ARGS= -p >@@ -27,7 +32,7 @@ > CPE_VENDOR= ubnt > CPE_PRODUCT= unifi_controller > USE_JAVA= yes >-JAVA_VERSION= 1.8 >+JAVA_VERSION= 8+ > JAVA_OS= native > JAVA_VENDOR= openjdk bsdjava > JAVA_RUN= yes >@@ -40,6 +45,9 @@ > USERS= unifi > GROUPS= unifi > >+JAX_DISTNAME= javax.activation-api >+JAX_VERSION= 1.2.0 >+ > NO_WRKSUBDIR= yes > > CONFLICTS= unifi-devel-* >@@ -46,6 +54,10 @@ > > DIR_LIST= conf data logs run work > >+post-extract: >+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${JAX_DISTNAME}-${JAX_VERSION}.jar \ >+ ${WRKSRC}/usr/lib/unifi/lib/ >+ > post-patch: > (cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-*.jar) > ${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native >Index: distinfo >=================================================================== >--- distinfo (revision 509159) >+++ distinfo (working copy) >@@ -1,3 +1,5 @@ >-TIMESTAMP = 1562161900 >+TIMESTAMP = 1566366032 > SHA256 (unifi5-5.10.25/unifi_sysvinit_all.deb) = bd39c9f2953736582f9707e120b7ed9cc9e023ce9a727ec6a74627d0f0c903ec > SIZE (unifi5-5.10.25/unifi_sysvinit_all.deb) = 81225384 >+SHA256 (unifi5-5.10.25/javax.activation-api-1.2.0.jar) = 43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393 >+SIZE (unifi5-5.10.25/javax.activation-api-1.2.0.jar) = 56674 >Index: files/unifi.in >=================================================================== >--- files/unifi.in (revision 509159) >+++ files/unifi.in (working copy) >@@ -12,7 +12,31 @@ > # Add the following line to /etc/rc.conf to enable `unifi': > # > # unifi_enable="YES" >+# >+# Other configuration settings for unifi that can be set in /etc/rc.conf: >+# >+# unifi_user (str) >+# This is the user that unifi runs as >+# Set to %%USERS%% by default >+# >+# unifi_group (str) >+# This is the group that unifi runs as >+# Set to %%GROUPS%% by default >+# >+# unifi_chdir (str) >+# This is the directory that unifi chdirs into before starting >+# Set to %%JAVASHAREDIR%%/unifi by default >+# >+# unifi_java_home (str) >+# The path to the base directory for the Java to use to run unifi >+# Defaults to %%JAVA_HOME%% >+# >+# unifi_javaflags (str) >+# Flags passed to Java to run unifi >+# Set to "-Djava.awt.headless=true -Xmx1024M" by default >+# > >+ > . /etc/rc.subr > name=unifi > >@@ -23,12 +47,14 @@ > : ${unifi_user:=%%USERS%%} > : ${unifi_group:=%%GROUPS%%} > : ${unifi_chdir=%%JAVASHAREDIR%%/unifi} >+: ${unifi_java_home=%%JAVA_HOME%%} > : ${unifi_javaflags:="-Djava.awt.headless=true -Xmx1024M"} > > pidfile="/var/run/unifi/${name}.pid" >-procname=%%JAVA%% >+procname=${unifi_java_home}/bin/java > command="/usr/sbin/daemon" >-command_args="-f -p ${pidfile} %%JAVA%% ${unifi_javaflags} -jar lib/ace.jar start" >+classpath=`echo ${unifi_chdir}/lib/*.jar | sed -e 's/ /:/g'` >+command_args="-f -p ${pidfile} ${unifi_java_home}/bin/java ${unifi_javaflags} -cp ${classpath} com.ubnt.ace.Launcher start" > start_precmd=start_precmd > stop_precmd=stop_precmd > stop_postcmd=stop_postcmd
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240016
:
206754
|
207594