diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-12 00:42:31 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-12 00:42:31 +0000 |
commit | 2151c80bb7a3dda38b807e60899e06a993122b66 (patch) | |
tree | 0a3ea2505ea467f67d5da7a95ffc70795c6d8629 /java/bootstrap-openjdk | |
parent | 73fb96782e630566e307f2e2645526c2cde62a86 (diff) | |
download | ports-2151c80bb7a3dda38b807e60899e06a993122b66.tar.gz ports-2151c80bb7a3dda38b807e60899e06a993122b66.zip |
Notes
Diffstat (limited to 'java/bootstrap-openjdk')
-rw-r--r-- | java/bootstrap-openjdk/Makefile | 58 | ||||
-rw-r--r-- | java/bootstrap-openjdk/Makefile.update | 83 | ||||
-rw-r--r-- | java/bootstrap-openjdk/distinfo.amd64 | 2 | ||||
-rw-r--r-- | java/bootstrap-openjdk/distinfo.i386 | 2 | ||||
-rw-r--r-- | java/bootstrap-openjdk/pkg-descr | 7 | ||||
-rw-r--r-- | java/bootstrap-openjdk/pkg-message | 19 | ||||
-rw-r--r-- | java/bootstrap-openjdk/pkg-plist | 181 |
7 files changed, 352 insertions, 0 deletions
diff --git a/java/bootstrap-openjdk/Makefile b/java/bootstrap-openjdk/Makefile new file mode 100644 index 000000000000..8bbac7fadadd --- /dev/null +++ b/java/bootstrap-openjdk/Makefile @@ -0,0 +1,58 @@ +# $FreeBSD$ + +PORTNAME= ${JDK_NAME} +PORTVERSION= ${DISTVERSION_${ARCH}} +CATEGORIES= java devel +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= jkim +PKGNAMEPREFIX= bootstrap- +DISTNAME= ${JDK_PORT}-${ARCH}-${PORTVERSION} + +MAINTAINER= jkim@FreeBSD.org +COMMENT= Oracle's Java 6 virtual machine release under the GPL v2 + +LICENSE= GPLv2 + +RUN_DEPENDS= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo + +ONLY_FOR_ARCH= amd64 i386 + +DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH} +DISTVERSION_amd64= r305682 +DISTVERSION_i386= r305682 + +JDK_NAME= openjdk +JDK_PORT= openjdk6 +JDK_ROOT= bootstrap-${JDK_NAME} + +NO_BUILD= yes +PLIST_SUB= ARCH=${ARCH} JDK_NAME=${JDK_NAME} JDK_ROOT=${JDK_ROOT} +USE_XZ= yes +WRKSRC= ${WRKDIR}/${JDK_ROOT} + +INSTALLDIR= ${PREFIX}/${JDK_ROOT} +JDK_BINS= bin/* jre/bin/* jre/lib/${ARCH}/jexec + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 800105 +RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libz.so.4:${PORTSDIR}/misc/compat7x +.endif + +.if ${ARCH} == "i386" +PLIST_SUB+= CLIENTVM="" +.else +PLIST_SUB+= CLIENTVM="@comment " +.endif + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} + @cd ${INSTALLDIR} && ${CHOWN} ${BINOWN}:${BINGRP} ${JDK_BINS} + @cd ${INSTALLDIR} && ${CHMOD} ${BINMODE} ${JDK_BINS} + @${CAT} ${PKGMESSAGE} + +update: + @${MAKE} -f ${.CURDIR}/Makefile.update \ + JDK_NAME=${JDK_NAME} JDK_PORT=${JDK_PORT} JDK_ROOT=${JDK_ROOT} + +.include <bsd.port.post.mk> diff --git a/java/bootstrap-openjdk/Makefile.update b/java/bootstrap-openjdk/Makefile.update new file mode 100644 index 000000000000..79c53b2dc90d --- /dev/null +++ b/java/bootstrap-openjdk/Makefile.update @@ -0,0 +1,83 @@ +# $FreeBSD$ + +JDK_NAME?= openjdk +JDK_PORT?= openjdk6 +JDK_ROOT?= bootstrap-${JDK_NAME} +TARGET_OS?= 7 + +.if !defined(PORTSDIR) +.if exists(${.CURDIR}/../${JDK_PORT}/Makefile) +PORTSDIR= ${.CURDIR}/../.. +.else +PORTSDIR= /usr/ports +.endif +.endif + +LOCALBASE?= /usr/local + +.include "${PORTSDIR}/Mk/bsd.commands.mk" + +JDK_EXCLUDE?= demo man sample src.zip +JDK_PORTDIR!= ${REALPATH} ${PORTSDIR}/java/${JDK_PORT} +JDK_IMAGEDIR?= ${JDK_PORTDIR}/work/build/bsd-${ARCH:S/i386/i586/}/j2sdk-image + +GET_REVISION= ${LOCALBASE}/bin/svnversion ${JDK_PORTDIR} +TAR?= /usr/bin/tar + +ARCH!= ${UNAME} -p +BUILD_OS!= ${UNAME} -r | ${SED} -e 's/\..*//' +PORTREVISION!= ${GET_REVISION} 2>/dev/null || ${TRUE} + +DISTDIR?= ${.CURDIR} +DISTFILE= ${JDK_PORT}-${ARCH}-r${PORTREVISION}.tar.xz +DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH} +MAKEFILE= ${.CURDIR}/Makefile + +TAR_EXCLUDE= +.if !empty(JDK_EXCLUDE) +.for i in ${JDK_EXCLUDE} +TAR_EXCLUDE+= --exclude ${i} +.endfor +.endif + +all: + @${ECHO} "" + @${ECHO} "==============================================================" + @${ECHO} "" +.if ${BUILD_OS} > ${TARGET_OS} + @${ECHO} "We need FreeBSD ${TARGET_OS} but you seem to have ${BUILD_OS}." + @${ECHO} "" + @${ECHO} "==============================================================" + @${ECHO} "" + @${FALSE} +.endif + @${ECHO} "Building ${DISTFILE}...." + @${ECHO} "" + @${ECHO} "Started at "`${SETENV} LANG=C date -u`"." + @${ECHO} "" + @${ECHO} "==============================================================" + @${ECHO} "" +.if !defined(NO_BUILD) + @cd "${JDK_PORTDIR}" && ${MAKE} BATCH=yes +.endif + @cd "${JDK_IMAGEDIR}" && \ + ${FIND} . \! -type d | ${SORT} | \ + ${TAR} -c -f - -T - -s '|^\./|${JDK_ROOT}/|' ${TAR_EXCLUDE} | \ + ${XZ_CMD} -9 -c > "${DISTDIR}/${DISTFILE}" + @${SED} -i.bak \ + 's/^DISTVERSION_${ARCH}=.*/DISTVERSION_${ARCH}= r${PORTREVISION}/' \ + "${MAKEFILE}" + @${MAKE} -f "${MAKEFILE}" makesum DISTDIR="${DISTDIR}" \ + DISTINFO_FILE="${DISTINFO_FILE}" + @${ECHO} "" + @${ECHO} "==============================================================" + @${ECHO} "" + @${ECHO} "${DISTFILE} was built successfully!" + @${ECHO} "" + @${ECHO} "Finished at "`${SETENV} LANG=C date -u`"." + @${ECHO} "" + @${ECHO} "You may clean up the build directory if everything looks okay," + @${ECHO} "e.g., 'rm -fr ${JDK_PORTDIR}/work'." + @${ECHO} "" + @${ECHO} "==============================================================" + @${ECHO} "" diff --git a/java/bootstrap-openjdk/distinfo.amd64 b/java/bootstrap-openjdk/distinfo.amd64 new file mode 100644 index 000000000000..b2f68c095332 --- /dev/null +++ b/java/bootstrap-openjdk/distinfo.amd64 @@ -0,0 +1,2 @@ +SHA256 (openjdk6-amd64-r305682.tar.xz) = 4a9300f92669608fad6a0d763003fe4a3bc5c11875a265040d99dc78b09503b4 +SIZE (openjdk6-amd64-r305682.tar.xz) = 25168044 diff --git a/java/bootstrap-openjdk/distinfo.i386 b/java/bootstrap-openjdk/distinfo.i386 new file mode 100644 index 000000000000..c68f37bade59 --- /dev/null +++ b/java/bootstrap-openjdk/distinfo.i386 @@ -0,0 +1,2 @@ +SHA256 (openjdk6-i386-r305682.tar.xz) = 0fa7277c89007e5ce265494a94881f80c6d87cc73ff6b42c1f46fce83b08416d +SIZE (openjdk6-i386-r305682.tar.xz) = 25470632 diff --git a/java/bootstrap-openjdk/pkg-descr b/java/bootstrap-openjdk/pkg-descr new file mode 100644 index 000000000000..74c5ea8d924c --- /dev/null +++ b/java/bootstrap-openjdk/pkg-descr @@ -0,0 +1,7 @@ +OpenJDK is an open-source implementation of the Java Platform, Standard Edition. + +Much of the OpenJDK code is licensed under the GPL version 2 with the +Classpath exception. The Java Hotspot virtual machine source code is +licensed under the GPL version 2 only. + +WWW: http://openjdk.java.net/ diff --git a/java/bootstrap-openjdk/pkg-message b/java/bootstrap-openjdk/pkg-message new file mode 100644 index 000000000000..0a651e40752f --- /dev/null +++ b/java/bootstrap-openjdk/pkg-message @@ -0,0 +1,19 @@ +====================================================================== + +WARNING: This port only exists for bootstrapping java/openjdk[67]. +You are advised to remove this port as soon as a stable JDK is built. + +This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and +procfs(5) mounted on /proc. + +If you have not done it yet, please do the following: + + mount -t fdescfs fdesc /dev/fd + mount -t procfs proc /proc + +To make it permanent, you need the following lines in /etc/fstab: + + fdesc /dev/fd fdescfs rw 0 0 + proc /proc procfs rw 0 0 + +====================================================================== diff --git a/java/bootstrap-openjdk/pkg-plist b/java/bootstrap-openjdk/pkg-plist new file mode 100644 index 000000000000..5a16526bde67 --- /dev/null +++ b/java/bootstrap-openjdk/pkg-plist @@ -0,0 +1,181 @@ +%%JDK_ROOT%%/ASSEMBLY_EXCEPTION +%%JDK_ROOT%%/LICENSE +%%JDK_ROOT%%/THIRD_PARTY_README +%%JDK_ROOT%%/bin/appletviewer +%%JDK_ROOT%%/bin/apt +%%JDK_ROOT%%/bin/extcheck +%%JDK_ROOT%%/bin/idlj +%%JDK_ROOT%%/bin/jar +%%JDK_ROOT%%/bin/jarsigner +%%JDK_ROOT%%/bin/java +%%JDK_ROOT%%/bin/javac +%%JDK_ROOT%%/bin/javadoc +%%JDK_ROOT%%/bin/javah +%%JDK_ROOT%%/bin/javap +%%JDK_ROOT%%/bin/jconsole +%%JDK_ROOT%%/bin/jdb +%%JDK_ROOT%%/bin/jhat +%%JDK_ROOT%%/bin/jinfo +%%JDK_ROOT%%/bin/jmap +%%JDK_ROOT%%/bin/jps +%%JDK_ROOT%%/bin/jrunscript +%%JDK_ROOT%%/bin/jsadebugd +%%JDK_ROOT%%/bin/jstack +%%JDK_ROOT%%/bin/jstat +%%JDK_ROOT%%/bin/jstatd +%%JDK_ROOT%%/bin/keytool +%%JDK_ROOT%%/bin/native2ascii +%%JDK_ROOT%%/bin/orbd +%%JDK_ROOT%%/bin/pack200 +%%JDK_ROOT%%/bin/policytool +%%JDK_ROOT%%/bin/rmic +%%JDK_ROOT%%/bin/rmid +%%JDK_ROOT%%/bin/rmiregistry +%%JDK_ROOT%%/bin/schemagen +%%JDK_ROOT%%/bin/serialver +%%JDK_ROOT%%/bin/servertool +%%JDK_ROOT%%/bin/tnameserv +%%JDK_ROOT%%/bin/unpack200 +%%JDK_ROOT%%/bin/wsgen +%%JDK_ROOT%%/bin/wsimport +%%JDK_ROOT%%/bin/xjc +%%JDK_ROOT%%/include/classfile_constants.h +%%JDK_ROOT%%/include/freebsd/jawt_md.h +%%JDK_ROOT%%/include/freebsd/jni_md.h +%%JDK_ROOT%%/include/jawt.h +%%JDK_ROOT%%/include/jdwpTransport.h +%%JDK_ROOT%%/include/jni.h +%%JDK_ROOT%%/include/jvmti.h +%%JDK_ROOT%%/include/jvmticmlr.h +%%JDK_ROOT%%/jre/ASSEMBLY_EXCEPTION +%%JDK_ROOT%%/jre/LICENSE +%%JDK_ROOT%%/jre/THIRD_PARTY_README +%%JDK_ROOT%%/jre/bin/java +%%JDK_ROOT%%/jre/bin/keytool +%%JDK_ROOT%%/jre/bin/orbd +%%JDK_ROOT%%/jre/bin/pack200 +%%JDK_ROOT%%/jre/bin/policytool +%%JDK_ROOT%%/jre/bin/rmid +%%JDK_ROOT%%/jre/bin/rmiregistry +%%JDK_ROOT%%/jre/bin/servertool +%%JDK_ROOT%%/jre/bin/tnameserv +%%JDK_ROOT%%/jre/bin/unpack200 +%%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/Xusage.txt +%%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/libjsig.so +%%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/libjvm.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/headless/libmawt.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/jexec +%%JDK_ROOT%%/jre/lib/%%ARCH%%/jvm.cfg +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libattach.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libawt.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libdt_socket.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libfontmanager.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libhprof.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libinstrument.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libj2gss.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libj2pcsc.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libj2pkcs11.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjaas_unix.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjava.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjava_crw_demo.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjawt.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjdwp.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjli.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjpeg.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjsig.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjsound.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/liblcms.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libmanagement.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libmlib_image.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnet.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnio.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnpt.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/librmi.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libsaproc.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libsplashscreen.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libunpack.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libverify.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/libzip.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/native_threads/libhpi.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/server/Xusage.txt +%%JDK_ROOT%%/jre/lib/%%ARCH%%/server/libjsig.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/server/libjvm.so +%%JDK_ROOT%%/jre/lib/%%ARCH%%/xawt/libmawt.so +%%JDK_ROOT%%/jre/lib/calendars.properties +%%JDK_ROOT%%/jre/lib/charsets.jar +%%JDK_ROOT%%/jre/lib/classlist +%%JDK_ROOT%%/jre/lib/cmm/CIEXYZ.pf +%%JDK_ROOT%%/jre/lib/cmm/GRAY.pf +%%JDK_ROOT%%/jre/lib/cmm/LINEAR_RGB.pf +%%JDK_ROOT%%/jre/lib/cmm/PYCC.pf +%%JDK_ROOT%%/jre/lib/cmm/sRGB.pf +%%JDK_ROOT%%/jre/lib/content-types.properties +%%JDK_ROOT%%/jre/lib/currency.data +%%JDK_ROOT%%/jre/lib/ext/dnsns.jar +%%JDK_ROOT%%/jre/lib/ext/localedata.jar +%%JDK_ROOT%%/jre/lib/ext/meta-index +%%JDK_ROOT%%/jre/lib/ext/sunjce_provider.jar +%%JDK_ROOT%%/jre/lib/ext/sunpkcs11.jar +%%JDK_ROOT%%/jre/lib/flavormap.properties +%%JDK_ROOT%%/jre/lib/fontconfig.bfc +%%JDK_ROOT%%/jre/lib/fontconfig.properties.src +%%JDK_ROOT%%/jre/lib/im/indicim.jar +%%JDK_ROOT%%/jre/lib/im/thaiim.jar +%%JDK_ROOT%%/jre/lib/images/cursors/cursors.properties +%%JDK_ROOT%%/jre/lib/images/cursors/invalid32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_CopyDrop32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_CopyNoDrop32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_LinkDrop32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_LinkNoDrop32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_MoveDrop32x32.gif +%%JDK_ROOT%%/jre/lib/images/cursors/motif_MoveNoDrop32x32.gif +%%JDK_ROOT%%/jre/lib/jce.jar +%%JDK_ROOT%%/jre/lib/jsse.jar +%%JDK_ROOT%%/jre/lib/jvm.hprof.txt +%%JDK_ROOT%%/jre/lib/logging.properties +%%JDK_ROOT%%/jre/lib/management-agent.jar +%%JDK_ROOT%%/jre/lib/management/jmxremote.access +%%JDK_ROOT%%/jre/lib/management/jmxremote.password.template +%%JDK_ROOT%%/jre/lib/management/management.properties +%%JDK_ROOT%%/jre/lib/management/snmp.acl.template +%%JDK_ROOT%%/jre/lib/meta-index +%%JDK_ROOT%%/jre/lib/net.properties +%%JDK_ROOT%%/jre/lib/psfont.properties.ja +%%JDK_ROOT%%/jre/lib/psfontj2d.properties +%%JDK_ROOT%%/jre/lib/resources.jar +%%JDK_ROOT%%/jre/lib/rt.jar +%%JDK_ROOT%%/jre/lib/security/US_export_policy.jar +%%JDK_ROOT%%/jre/lib/security/cacerts +%%JDK_ROOT%%/jre/lib/security/java.policy +%%JDK_ROOT%%/jre/lib/security/java.security +%%JDK_ROOT%%/jre/lib/security/local_policy.jar +%%JDK_ROOT%%/jre/lib/sound.properties +%%JDK_ROOT%%/jre/lib/zi +%%JDK_ROOT%%/lib/ct.sym +%%JDK_ROOT%%/lib/dt.jar +%%JDK_ROOT%%/lib/ir.idl +%%JDK_ROOT%%/lib/jconsole.jar +%%JDK_ROOT%%/lib/orb.idl +%%JDK_ROOT%%/lib/sa-jdi.jar +%%JDK_ROOT%%/lib/tools.jar +@dirrm %%JDK_ROOT%%/lib +@dirrm %%JDK_ROOT%%/jre/lib/security +@dirrm %%JDK_ROOT%%/jre/lib/management +@dirrm %%JDK_ROOT%%/jre/lib/images/cursors +@dirrm %%JDK_ROOT%%/jre/lib/images +@dirrm %%JDK_ROOT%%/jre/lib/im +@dirrm %%JDK_ROOT%%/jre/lib/ext +@dirrm %%JDK_ROOT%%/jre/lib/cmm +@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%%/xawt +@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%%/server +@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%%/native_threads +@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%%/headless +%%CLIENTVM%%@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%%/client +@dirrm %%JDK_ROOT%%/jre/lib/%%ARCH%% +@dirrm %%JDK_ROOT%%/jre/lib +@dirrm %%JDK_ROOT%%/jre/bin +@dirrm %%JDK_ROOT%%/jre +@dirrm %%JDK_ROOT%%/include/freebsd +@dirrm %%JDK_ROOT%%/include +@dirrm %%JDK_ROOT%%/bin +@dirrm %%JDK_ROOT%% |