. Add BSD support to PortConfig. Fixes JMX on FreeBSD.

PR:		186636
This commit is contained in:
Greg Lewis
2014-02-15 23:31:42 +00:00
parent a70fdc92c4
commit e9ec4ef357
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \
@@ -0,0 +1,13 @@
$FreeBSD$
--- jdk/src/solaris/classes/sun/net/PortConfig.java Sat Jan 18 12:20:24 2014 -0800
+++ jdk/src/solaris/classes/sun/net/PortConfig.java Sat Feb 15 14:31:26 2014 -0800
@@ -52,7 +52,7 @@
} else if (os.startsWith("SunOS")) {
defaultLower = 32768;
defaultUpper = 65535;
- } else if (os.contains("OS X")) {
+ } else if (os.contains("OS X") || os.endsWith("BSD")) {
defaultLower = 49152;
defaultUpper = 65535;
} else {