aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-09-27 05:02:16 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-09-27 05:02:16 +0000
commit16f59a42864c76edfe273d6089f539ff85054461 (patch)
tree9603f909ce921b9fe3a9bf0940e3bfdb6d8eab48 /java
parent5f81b8df55bac6500740d5cf17c34d033ac2619b (diff)
downloadports-16f59a42864c76edfe273d6089f539ff85054461.tar.gz
ports-16f59a42864c76edfe273d6089f539ff85054461.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/Makefile1
-rw-r--r--java/bootstrap-openjdk6/Makefile48
-rw-r--r--java/bootstrap-openjdk6/Makefile.update92
-rw-r--r--java/bootstrap-openjdk6/distinfo.amd643
-rw-r--r--java/bootstrap-openjdk6/distinfo.i3863
-rw-r--r--java/bootstrap-openjdk6/pkg-descr7
-rw-r--r--java/bootstrap-openjdk6/pkg-message19
-rw-r--r--java/bootstrap-openjdk6/pkg-plist53
8 files changed, 226 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index bfee010d0d43..531e4f19674a 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -8,6 +8,7 @@
SUBDIR += berkeley-db
SUBDIR += bluej
SUBDIR += bootstrap-openjdk
+ SUBDIR += bootstrap-openjdk6
SUBDIR += bouncycastle
SUBDIR += bouncycastle15
SUBDIR += cacao
diff --git a/java/bootstrap-openjdk6/Makefile b/java/bootstrap-openjdk6/Makefile
new file mode 100644
index 000000000000..aa7bf022bc34
--- /dev/null
+++ b/java/bootstrap-openjdk6/Makefile
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME= openjdk6
+PORTVERSION= ${DISTVERSION_${ARCH}}
+CATEGORIES= java devel
+MASTER_SITES= LOCAL/jkim
+PKGNAMEPREFIX= bootstrap-
+DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER= jkim@FreeBSD.org
+COMMENT= Oracle\'s Java 6 virtual machine release under the GPL v2
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCHS= amd64 i386
+
+RUN_DEPENDS= java-zoneinfo>0:java/java-zoneinfo
+
+DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH}
+DISTVERSION_amd64= r450701
+DISTVERSION_i386= r450701
+
+JDK_ROOT= bootstrap-${PORTNAME}
+
+NO_BUILD= yes
+PLIST_SUB= ARCH=${ARCH} JDK_ROOT=${JDK_ROOT}
+USES= tar:xz
+WRKSRC= ${WRKDIR}/${JDK_ROOT}
+
+INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+PLIST_SUB+= CLIENTVM=""
+.else
+PLIST_SUB+= CLIENTVM="@comment "
+.endif
+
+do-install:
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
+ @cd ${WRKSRC} && ${COPYTREE_BIN} "bin jre/bin" ${INSTALLDIR}
+
+update:
+ @${MAKE} -f ${.CURDIR}/Makefile.update \
+ JDK_PORT=${PORTNAME} JDK_ROOT=${JDK_ROOT}
+
+.include <bsd.port.post.mk>
diff --git a/java/bootstrap-openjdk6/Makefile.update b/java/bootstrap-openjdk6/Makefile.update
new file mode 100644
index 000000000000..337de7bd3547
--- /dev/null
+++ b/java/bootstrap-openjdk6/Makefile.update
@@ -0,0 +1,92 @@
+# $FreeBSD$
+
+JDK_PORT?= openjdk6
+JDK_ROOT?= bootstrap-${JDK_PORT}
+TARGET_OS?= 10
+
+.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_PORTDIR!= ${REALPATH} ${PORTSDIR}/java/${JDK_PORT}
+JDK_IMAGEDIR?= ${JDK_PORTDIR}/work/stage/usr/local/${JDK_PORT}
+
+GET_REVISION= ${LOCALBASE}/bin/svnversion ${JDK_PORTDIR}
+TAR?= /usr/bin/tar
+
+.if !defined(ARCH)
+ARCH!= ${UNAME} -p
+.endif
+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
+PLIST?= ${.CURDIR}/pkg-plist
+PLIST_SUB= ARCH="${ARCH}" JDK_ROOT="."
+
+BUILD_ARGS= BATCH=yes PORT_DBDIR=/var/empty
+BUILD_ENV= __MAKE_CONF=/dev/null PATH="${PATH}"
+JDK_BUILD_ARGS= ${BUILD_ARGS}
+JDK_BUILD_ARGS+=java_openjdk6_UNSET=ICEDTEA
+
+.if ${ARCH} == "i386"
+PLIST_SUB+= CLIENTVM=""
+.else
+PLIST_SUB+= CLIENTVM="@comment "
+.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 "`date -u`"."
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
+.if !defined(NO_BUILD)
+ @${SETENV} -i ${BUILD_ENV} \
+ ${MAKE} -C "${JDK_PORTDIR}" ${JDK_BUILD_ARGS} stage
+ @${FIND} "${JDK_IMAGEDIR}" -type f \
+ -exec ${STRIP_CMD} -s {} \; 2> /dev/null
+.endif
+ @cd "${JDK_IMAGEDIR}" && \
+ ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} | \
+ ${GREP} -v ^@ | ${TAR} -c -f - -T - -s '|^\./|${JDK_ROOT}/|' | \
+ ${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 "`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-openjdk6/distinfo.amd64 b/java/bootstrap-openjdk6/distinfo.amd64
new file mode 100644
index 000000000000..3d6e707ff496
--- /dev/null
+++ b/java/bootstrap-openjdk6/distinfo.amd64
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506476350
+SHA256 (openjdk6-amd64-r450701.tar.xz) = efeae4b3d09d92d06182fe79b9a0348fddf4229909db33cbb0aef6d25a2fabf0
+SIZE (openjdk6-amd64-r450701.tar.xz) = 22084332
diff --git a/java/bootstrap-openjdk6/distinfo.i386 b/java/bootstrap-openjdk6/distinfo.i386
new file mode 100644
index 000000000000..4627bf8cb8cc
--- /dev/null
+++ b/java/bootstrap-openjdk6/distinfo.i386
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506476351
+SHA256 (openjdk6-i386-r450701.tar.xz) = ec38b1473e1a7c4118080043cc6458771f3ac8a9b56dc344e10badd6e4abeece
+SIZE (openjdk6-i386-r450701.tar.xz) = 22155724
diff --git a/java/bootstrap-openjdk6/pkg-descr b/java/bootstrap-openjdk6/pkg-descr
new file mode 100644
index 000000000000..74c5ea8d924c
--- /dev/null
+++ b/java/bootstrap-openjdk6/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-openjdk6/pkg-message b/java/bootstrap-openjdk6/pkg-message
new file mode 100644
index 000000000000..0a651e40752f
--- /dev/null
+++ b/java/bootstrap-openjdk6/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-openjdk6/pkg-plist b/java/bootstrap-openjdk6/pkg-plist
new file mode 100644
index 000000000000..4680987f70f9
--- /dev/null
+++ b/java/bootstrap-openjdk6/pkg-plist
@@ -0,0 +1,53 @@
+%%JDK_ROOT%%/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/LICENSE
+%%JDK_ROOT%%/THIRD_PARTY_README
+%%JDK_ROOT%%/bin/idlj
+%%JDK_ROOT%%/bin/jar
+%%JDK_ROOT%%/bin/java
+%%JDK_ROOT%%/bin/javac
+%%JDK_ROOT%%/bin/javah
+%%JDK_ROOT%%/bin/javap
+%%JDK_ROOT%%/bin/native2ascii
+%%JDK_ROOT%%/bin/rmic
+%%JDK_ROOT%%/include/jni.h
+%%JDK_ROOT%%/include/freebsd/jni_md.h
+%%JDK_ROOT%%/jre/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/jre/LICENSE
+%%JDK_ROOT%%/jre/THIRD_PARTY_README
+%%JDK_ROOT%%/jre/bin/java
+%%JDK_ROOT%%/jre/lib/charsets.jar
+%%JDK_ROOT%%/jre/lib/currency.data
+%%JDK_ROOT%%/jre/lib/fontconfig.bfc
+%%JDK_ROOT%%/jre/lib/jce.jar
+%%JDK_ROOT%%/jre/lib/jsse.jar
+%%JDK_ROOT%%/jre/lib/logging.properties
+%%JDK_ROOT%%/jre/lib/meta-index
+%%JDK_ROOT%%/jre/lib/net.properties
+%%JDK_ROOT%%/jre/lib/resources.jar
+%%JDK_ROOT%%/jre/lib/rt.jar
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/jvm.cfg
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libawt.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libfontmanager.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjava.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjpeg.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/liblcms.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnet.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnio.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libverify.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/libzip.so
+%%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/libjvm.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/headless/libmawt.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/server/libjvm.so
+%%JDK_ROOT%%/jre/lib/%%ARCH%%/xawt/libmawt.so
+%%JDK_ROOT%%/jre/lib/cmm/GRAY.pf
+%%JDK_ROOT%%/jre/lib/cmm/PYCC.pf
+%%JDK_ROOT%%/jre/lib/cmm/sRGB.pf
+%%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/security/java.security
+%%JDK_ROOT%%/jre/lib/zi
+%%JDK_ROOT%%/lib/ct.sym
+%%JDK_ROOT%%/lib/tools.jar