pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/oracle-jre8 Import oracle-jre8-8.0.45 as lang/ora...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2adae4b663a8
branches: trunk
changeset: 652321:2adae4b663a8
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sat May 30 09:49:43 2015 +0000
description:
Import oracle-jre8-8.0.45 as lang/oracle-jre8.
This is the official port of the Oracle Java(tm) Runtime Environment
(Java SE 8).
diffstat:
lang/oracle-jre8/DEINSTALL | 8 +
lang/oracle-jre8/DESCR | 2 +
lang/oracle-jre8/INSTALL | 7 +
lang/oracle-jre8/MESSAGE.NetBSD | 16 +
lang/oracle-jre8/Makefile | 141 +++++++++++++
lang/oracle-jre8/Makefile.common | 86 ++++++++
lang/oracle-jre8/PLIST.linux-i386 | 307 ++++++++++++++++++++++++++++++
lang/oracle-jre8/PLIST.linux-x86_64 | 304 +++++++++++++++++++++++++++++
lang/oracle-jre8/PLIST.solaris-x86_64 | 203 +++++++++++++++++++
lang/oracle-jre8/buildlink3.mk | 25 ++
lang/oracle-jre8/builtin.mk | 95 +++++++++
lang/oracle-jre8/distinfo | 14 +
lang/oracle-jre8/sfiles-linux-i386.mk | 42 ++++
lang/oracle-jre8/sfiles-linux-x86_64.mk | 42 ++++
lang/oracle-jre8/sfiles-solaris-x86_64.mk | 21 ++
15 files changed, 1313 insertions(+), 0 deletions(-)
diffs (truncated from 1373 to 300 lines):
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/DEINSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/DEINSTALL Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: DEINSTALL,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+
+case ${STAGE} in
+DEINSTALL)
+ ${RM} -f @JAVA_HOME@/lib/@JAVA_ARCH@/client/classes.jsa
+ ${RM} -f @JAVA_HOME@/lib/@JAVA_ARCH@/server/classes.jsa
+ ;;
+esac
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/DESCR Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,2 @@
+This is the official port of the Oracle Java(tm) Runtime Environment
+(Java SE 8).
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/INSTALL Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,7 @@
+# $NetBSD: INSTALL,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+
+case ${STAGE} in
+POST-INSTALL)
+ ${PREFIX}/bin/oracle8-java -Xshare:dump -mx128m
+ ;;
+esac
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/MESSAGE.NetBSD
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/MESSAGE.NetBSD Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,16 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+
+In order to be able to run the JVM, you need to add the following line
+to your /etc/fstab:
+
+ procfs /emul/linux/proc procfs rw,linux
+
+Furthermore, the maximum data segment size assigned to your user must
+be at least 262144.
+
+You may want to read the following for details about running this JDK:
+
+ ${JAVA_HOME}/README
+
+===========================================================================
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/Makefile Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,141 @@
+# $NetBSD: Makefile,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+
+# Note: Regen distinfo with PKG_OPTIONS.oracle-jre8+=oracle-jre-jce
+# Note: Update DOWNLOAD_NAME when you update the JRE version
+# Note: This needs to be kept in sync with the oracle-jdk8 package
+# Note: If you make makesum, make sure that you include both archs in distinfo
+
+DISTNAME= jre-8u${UPDATE_NUMBER}-${DIST_OS}-${DIST_ARCH}
+PKGNAME= oracle-jre8-8.0.${UPDATE_NUMBER}
+MASTER_SITES= # empty
+
+LICENSE= oracle-binary-code-license
+
+DOWNLOAD_NAME= Java Runtime Environment (JRE) 8u${UPDATE_NUMBER}
+
+USE_TOOLS+= pax
+
+WRKSRC= ${WRKDIR}/jre1.8.0_${UPDATE_NUMBER}
+JAVA_WRAPPERS= java javaws keytool orbd policytool rmid rmiregistry \
+ servertool tnameserv
+REQD_DIRS= ${JAVA_HOME}
+REQD_DIRS+= ${JAVA_HOME}/lib
+REQD_DIRS+= ${JAVA_HOME}/lib/applet
+REQD_DIRS+= ${JAVA_HOME}/lib/images
+REQD_DIRS+= ${JAVA_HOME}/lib/images/cursors
+REQD_DIRS+= ${JAVA_HOME}/lib/security
+CONF_FILES= # empty
+
+.include "../../lang/oracle-jre8/Makefile.common"
+
+SFILES_MK=sfiles-${DIST_OS}-${EMUL_ARCH}.mk
+
+.sinclude "${SFILES_MK}"
+
+.for file in ${SFILES}
+CONF_FILES+= ${JAVA_HOME}/lib/${file}.default ${JAVA_HOME}/lib/${file}
+.endfor
+
+CHECK_FILES_SKIP+= ${JAVA_HOME}/lib/${JAVA_ARCH}/client/classes.jsa
+CHECK_SHLIBS_SUPPORTED= NO
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.oracle-jre8
+PKG_SUPPORTED_OPTIONS= oracle-jre-jce
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_SRC= PLIST.${DIST_OS}-${EMUL_ARCH}
+
+PLIST_VARS+= jce native
+.if !empty(PKG_OPTIONS:Moracle-jre-jce) || make(distinfo)
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} jce_policy-8.zip
+.endif
+.if !empty(PKG_OPTIONS:Moracle-jre-jce)
+PLIST.jce= yes
+FETCH_MESSAGE+= ""
+FETCH_MESSAGE+= "As oracle-jre-jce is enabled jce_policy-8.zip is also needed"
+.endif
+
+# Some of the binaries require libX11, so ensure that requirement is
+# satisfied when the package is installed on the native OS.
+#
+.if defined(EMUL_IS_NATIVE) && ${OPSYS} != "SunOS"
+. if ${X11_TYPE} == "native"
+X11_LIBDIR= ${X11BASE}/lib${LIBABISUFFIX}
+. if ${_OPSYS_SHLIB_TYPE} == "dylib"
+X11_LIB=${X11_LIBDIR}/libX11.dylib
+. else
+X11_LIB=${X11_LIBDIR}/libX11.so.6
+. endif
+. if !exists(${X11_LIB})
+PKG_FAIL_REASON+= "${X11_LIB} does not exist. Please install the" \
+ "X11 library packages for your system."
+. endif
+. else
+. include "../../x11/libX11/buildlink3.mk"
+. include "../../x11/libXext/buildlink3.mk"
+. include "../../x11/libXi/buildlink3.mk"
+. include "../../x11/libXt/buildlink3.mk"
+. include "../../x11/libXtst/buildlink3.mk"
+X11_LIBDIR= ${X11BASE}/lib
+. endif
+
+. if ${EMUL_OPSYS} == "linux"
+. include "../../audio/alsa-lib/buildlink3.mk"
+ALSA_LIBDIR= ${BUILDLINK_PREFIX.alsa-lib}/${BUILDLINK_LIBDIRS.alsa-lib}
+
+. include "../../databases/unixodbc/buildlink3.mk"
+ODBC_LIBDIR= ${BUILDLINK_PREFIX.unixodbc}/${BUILDLINK_LIBDIRS.unixodbc}
+. endif
+
+ARCH_LIBDIR= ${JAVA_HOME}/lib/${JAVA_ARCH}
+.PHONY: create-library-symlinks
+post-install: create-library-symlinks
+create-library-symlinks:
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libX11.so.6 ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libX11.so.6 ${DESTDIR}${ARCH_LIBDIR}/jli
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libXext.so.6 ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libXi.so.6 ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libXt.so.6 ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${X11_LIBDIR}/libXtst.so.6 ${DESTDIR}${ARCH_LIBDIR}
+. if ${EMUL_OPSYS} == "linux"
+ ${RUN}${LN} -fs ${ALSA_LIBDIR}/libasound.so.2 ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${ODBC_LIBDIR}/libodbc.so ${DESTDIR}${ARCH_LIBDIR}
+ ${RUN}${LN} -fs ${ODBC_LIBDIR}/libodbcinst.so ${DESTDIR}${ARCH_LIBDIR}
+. endif
+
+PLIST.native= yes
+.endif
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/.systemPrefs
+ ${TOUCH} ${WRKSRC}/.systemPrefs/.system.lock
+ ${TOUCH} ${WRKSRC}/.systemPrefs/.systemRootModFile
+
+do-configure:
+ cd ${WRKSRC}/lib; for file in ${SFILES}; do \
+ ${MV} -f $$file $$file.default; \
+ done
+
+pre-install:
+ # This file is generated the *first* time the package is built on a box
+ ${RM} -f ${WRKSRC}/lib/servicetag/registration.xml
+.if !empty(PKG_OPTIONS:Moracle-jre-jce)
+ cd ${WRKDIR}/UnlimitedJCEPolicyJDK8 ; pax -rw -pe -v . ${WRKSRC}/lib/security
+.endif
+
+#
+# re-create sfiles.mk from properties and config files
+#
+makesfiles: extract
+ ${ECHO} > ${SFILES_MK:Q} '# $$Net''BSD$$'
+ ${ECHO} >> ${SFILES_MK:Q} '#'
+ ${ECHO} >> ${SFILES_MK:Q} '# Created with "make makesfiles"'
+ ${ECHO} >> ${SFILES_MK:Q} '# Do not edit this file manually!'
+ ${ECHO} >> ${SFILES_MK:Q} '#'
+ cd ${WRKSRC}/lib && ${FIND} * -name fontconfig.\* -o \
+ -name \*.properties -o -name \*.properties.\?\? -o \
+ -name \*.cfg -o -name \*.security | \
+ ${SED} 's/^/SFILES+= /' >> ${PKGDIR}/${SFILES_MK:Q}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/Makefile.common Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,86 @@
+# $NetBSD: Makefile.common,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+# used by lang/oracle-jre8/Makefile
+# used by lang/oracle-jdk8/Makefile
+
+CATEGORIES= lang java
+COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.oracle.com/technetwork/java/index.html
+DOWNLOAD= http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
+ARCHIVE= http://www.oracle.com/technetwork/java/javase/archive-139210.html
+
+RESTRICTED= Redistribution of repackaged binaries not permitted
+NO_SRC_ON_CDROM=${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+NO_BIN_ON_CDROM=${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+
+EMUL_PLATFORMS= linux-i386 linux-x86_64 solaris-x86_64
+
+USE_TOOLS+= pax
+
+# JDK8 Update number
+UPDATE_NUMBER= 45
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_OPSYS} == "solaris"
+DIST_OS= solaris
+.else
+DIST_OS= linux
+EMUL_MODULES.linux= compat locale x11
+.endif
+
+DIST_ARCH.i386= i586
+DIST_ARCH.x86_64= x64
+
+.if defined(DIST_ARCH.${EMUL_ARCH})
+DIST_ARCH= ${DIST_ARCH.${EMUL_ARCH}}
+.else
+DIST_ARCH= ${EMUL_ARCH}
+.endif
+
+JAVA_ARCH.i386= i386
+JAVA_ARCH.x86_64= amd64
+
+.if defined(JAVA_ARCH.${EMUL_ARCH})
+JAVA_ARCH= ${JAVA_ARCH.${EMUL_ARCH}}
+.else
+JAVA_ARCH= ${EMUL_ARCH}
+.endif
+FILES_SUBST+= JAVA_ARCH=${JAVA_ARCH:Q}
+
+INTERACTIVE_STAGE= fetch
+BUILD_DIRS= # empty
+
+JAVA_HOME= ${PREFIX}/java/oracle-8
+JAVA_NAME= oracle8
+JAVA_UNLIMIT= datasize
+JAVA_LD_LIBRARY_PATH= ${JAVA_HOME}/lib/${JAVA_ARCH}/jli
+
+MESSAGE_SUBST+= JAVA_HOME=${JAVA_HOME:Q}
+
+EXTRACT_ENV+= HOME=${WRKDIR}/fake_home
+
+# the following forces compression of jarfiles, which is a huge disk
+# space win and trivial to no speed reduction in the face of the
+# new class sharing in Java 5+... -tvierling
+EXTRACT_ENV+= UNPACK200_FLAGS=-Htrue
+
+FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}"
+FETCH_MESSAGE+= ""
+FETCH_MESSAGE+= " must be fetched into:"
+FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
+FETCH_MESSAGE+= " from:"
+FETCH_MESSAGE+= " ${DOWNLOAD}"
+FETCH_MESSAGE+= " or ${ARCHIVE}"
+FETCH_MESSAGE+= ""
+FETCH_MESSAGE+= " Click Download for '${DOWNLOAD_NAME}', read and accept the"
+FETCH_MESSAGE+= " license, then choose '${EMUL_OPSYS} tar.gz file'."
+
+do-install:
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${JAVA_HOME}
+ cd ${WRKSRC} && pax -rwp ma . ${DESTDIR}${JAVA_HOME}
+
+.include "../../mk/java-env.mk"
diff -r 5fc38d28d608 -r 2adae4b663a8 lang/oracle-jre8/PLIST.linux-i386
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oracle-jre8/PLIST.linux-i386 Sat May 30 09:49:43 2015 +0000
@@ -0,0 +1,307 @@
+@comment $NetBSD: PLIST.linux-i386,v 1.1 2015/05/30 09:49:43 ryoon Exp $
+bin/oracle8-java
+bin/oracle8-javaws
+bin/oracle8-keytool
+bin/oracle8-orbd
+bin/oracle8-policytool
+bin/oracle8-rmid
+bin/oracle8-rmiregistry
+bin/oracle8-servertool
+bin/oracle8-tnameserv
+java/oracle-8/.systemPrefs/.system.lock
+java/oracle-8/.systemPrefs/.systemRootModFile
Home |
Main Index |
Thread Index |
Old Index