Add a port of Oracle Linux JDK 8.
This commit is contained in:
parent
ee4a36e4e4
commit
99ab8a3105
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350764
6 changed files with 4562 additions and 0 deletions
|
@ -118,6 +118,7 @@
|
|||
SUBDIR += linux-oracle-jre18
|
||||
SUBDIR += linux-sun-jdk16
|
||||
SUBDIR += linux-sun-jdk17
|
||||
SUBDIR += linux-sun-jdk18
|
||||
SUBDIR += linux-sun-jre16
|
||||
SUBDIR += linux-sun-jre17
|
||||
SUBDIR += mmake
|
||||
|
|
98
java/linux-sun-jdk18/Makefile
Normal file
98
java/linux-sun-jdk18/Makefile
Normal file
|
@ -0,0 +1,98 @@
|
|||
# Created by: Greg Lewis <glewis@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= jdk
|
||||
PORTVERSION= ${JDK_VERSION}.${JDK_UPDATE_VERSION}
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= #
|
||||
PKGNAMEPREFIX= linux-sun-
|
||||
DISTNAME= jdk-${JDK_VERSION}-linux-i586
|
||||
|
||||
MAINTAINER= java@FreeBSD.org
|
||||
COMMENT= Oracle Java ${JDK_VERSION} Development Kit for Linux
|
||||
|
||||
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
|
||||
|
||||
OPTIONS_DEFINE= DEMO
|
||||
DEMO_DESC= Install demos and samples
|
||||
|
||||
NO_CDROM= License does not allow distribution with fee
|
||||
RESTRICTED= Redistribution of repackaged binaries not permitted
|
||||
PKGNAMESUFFIX= 1${JDK_VERSION}
|
||||
|
||||
WRKSRC= ${WRKDIR}/jdk${DL_JDK_VERSION}
|
||||
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} PORTVERSION=${PORTVERSION}
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_LINUX= yes
|
||||
USE_LINUX_APPS= xorglibs
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
JDK_VERSION= 8
|
||||
JDK_INTERNAL_VERSION= 1.8.0
|
||||
JDK_UPDATE_VERSION= 0
|
||||
DL_JDK_VERSION= ${JDK_INTERNAL_VERSION}
|
||||
DOWNLOAD_URL= http://www.oracle.com/technetwork/java/javase/downloads/index.html
|
||||
|
||||
APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JDK_INTERNAL_VERSION}
|
||||
SCRIPT_FILES= bin/jcontrol jre/bin/jcontrol
|
||||
BIN_DIRS= bin jre/bin
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
||||
IGNORE?=You must manually fetch the J2SE SDK download for the Linux platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDEMO}
|
||||
DEMO_UPDATE_VERSION= ${JDK_UPDATE_VERSION}
|
||||
.if ${DEMO_UPDATE_VERSION} != ${JDK_UPDATE_VERSION}
|
||||
DEMO_DISTNAME= jdk-${JDK_VERSION}-linux-i586-demos
|
||||
DEMO_WRKSRC= ${WRKDIR}/jdk${JDK_INTERNAL_VERSION}_${DEMO_UPDATE_VERSION}
|
||||
.else
|
||||
DEMO_DISTNAME= ${DISTNAME}-demos
|
||||
DEMO_WRKSRC= ${WRKSRC}
|
||||
.endif
|
||||
.if !exists(${DISTDIR}/${DEMO_DISTNAME}${EXTRACT_SUFX})
|
||||
IGNORE?=You must manually fetch the J2SE demos and samples for the Linux platform (${DEMO_DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
|
||||
.endif
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DEMO_DISTNAME}${EXTRACT_SUFX}
|
||||
PLIST_SUB+= DEMO=""
|
||||
.else
|
||||
PLIST_SUB+= DEMO="@comment "
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.if ${PORT_OPTIONS:MDEMO} && ${DEMO_WRKSRC} != ${WRKSRC}
|
||||
post-extract:
|
||||
@${MV} ${DEMO_WRKSRC}/demo ${WRKSRC}/
|
||||
@${MV} ${DEMO_WRKSRC}/sample ${WRKSRC}/
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.for script in ${SCRIPT_FILES}
|
||||
@${REINPLACE_CMD} -i.orig -e 's:^#!/bin/bash:#!/bin/sh:' ${WRKSRC}/${script}
|
||||
.endfor
|
||||
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
||||
@(cd ${WRKSRC}/include; ${LN} -s linux freebsd)
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${APP_HOME}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${APP_HOME}
|
||||
.for dir in ${BIN_DIRS}
|
||||
@${CHOWN} -R ${BINOWN}:${BINGRP} "${STAGEDIR}${APP_HOME}/${dir}"
|
||||
@${FIND} ${STAGEDIR}${APP_HOME}/${dir} -type f -exec "${CHMOD}" ${BINMODE} "{}" \;
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${APP_HOME}/jre/.systemPrefs
|
||||
${TOUCH} ${STAGEDIR}${APP_HOME}/jre/.systemPrefs/.system.lock
|
||||
${TOUCH} ${STAGEDIR}${APP_HOME}/jre/.systemPrefs/.systemRootModFile
|
||||
${CHMOD} 644 ${STAGEDIR}${APP_HOME}/jre/.systemPrefs/.system.lock
|
||||
${CHMOD} 644 ${STAGEDIR}${APP_HOME}/jre/.systemPrefs/.systemRootModFile
|
||||
|
||||
.include <bsd.port.post.mk>
|
4
java/linux-sun-jdk18/distinfo
Normal file
4
java/linux-sun-jdk18/distinfo
Normal file
|
@ -0,0 +1,4 @@
|
|||
SHA256 (jdk-8-linux-i586.tar.gz) = 01c1f2f7bf619b613066f191fe201d41def3b3d1b639592626c6c410f7f818d5
|
||||
SIZE (jdk-8-linux-i586.tar.gz) = 159875026
|
||||
SHA256 (jdk-8-linux-i586-demos.tar.gz) = 3de60de9d3c81ab687b178d86c8ec2bfd5f82a29f7ce912dfffa1bbeab4dcb4f
|
||||
SIZE (jdk-8-linux-i586-demos.tar.gz) = 55204261
|
3
java/linux-sun-jdk18/pkg-descr
Normal file
3
java/linux-sun-jdk18/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
The Oracle Java Development Kit 8 for Linux.
|
||||
|
||||
WWW: http://www.oracle.com/us/technologies/java/index.html
|
18
java/linux-sun-jdk18/pkg-message
Normal file
18
java/linux-sun-jdk18/pkg-message
Normal file
|
@ -0,0 +1,18 @@
|
|||
======================================================================
|
||||
Warning: This JDK may be unstable. You are advised to use the native
|
||||
FreeBSD 1.8 JDK, in ports/java/openjdk8.
|
||||
|
||||
This Java VM will attempt to obtain some system information by
|
||||
accessing files in linux's procfs. You must install the Linux
|
||||
emulation procfs filesystem for this to work correctly. The JVM
|
||||
will exhibit various problems otherwise. This can be accomplished
|
||||
by adding the following line to your /etc/fstab file:
|
||||
|
||||
linprocfs /compat/linux/proc linprocfs rw 0 0
|
||||
|
||||
and then, as root, executing the commands:
|
||||
|
||||
kldload linprocfs
|
||||
mount /compat/linux/proc
|
||||
|
||||
======================================================================
|
4438
java/linux-sun-jdk18/pkg-plist
Normal file
4438
java/linux-sun-jdk18/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue