mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
. Add a TZUPDATE option, defaulting to on, which will update the time zone
data for the JDK using Sun's tzupdater. [1] . Some simplification of the convoluted logic around telling the user which files to download. In particular, don't care if we've already told them to download a file. . Bump PORTREVISION since many North American users will need to pick up the time zone changes. Collaboration with: Tim Zingelman <zingelman@fnal.gov> [1]
This commit is contained in:
parent
0f4c0827d5
commit
ce95857bda
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185941
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= jdk
|
||||
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= # http://www.sun.com/software/java2/download.html
|
||||
# http://www.eyesbeyond.com/freebsddom/java/jdk14.html
|
||||
@ -15,6 +15,7 @@ SCSL_SRCFILE= j2sdk-${JDK_VERSION:S/./_/g}-src-scsl.zip
|
||||
SCSL_BINFILE= j2sdk-${JDK_VERSION:S/./_/g}-bin-scsl.zip
|
||||
PATCHSETFILE= bsd-jdk14-patches-${JDK_PATCHSET_VERSION}.tar.gz
|
||||
POLICYFILE= jce_policy-${JDK_VERSION:S/./_/g}.zip
|
||||
TZUPDATEFILE= tzupdater-${TZUPDATE_VERSION:S/./_/g}.zip
|
||||
DISTFILES= ${SCSL_SRCFILE} ${SCSL_BINFILE} ${PATCHSETFILE}
|
||||
|
||||
MAINTAINER= glewis@FreeBSD.org
|
||||
@ -30,6 +31,7 @@ RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
|
||||
OPTIONS= DEBUG "Enable debugging support" off \
|
||||
IPV6 "Enable IPv6 support" off \
|
||||
POLICY "Install the Unlimited Strength Policy Files" off \
|
||||
TZUPDATE "Update the time zone data" on \
|
||||
WEB "Enable the browser plugin and Java Web Start" on
|
||||
|
||||
.if defined(WITH_OPENMOTIF_JDK)
|
||||
@ -51,6 +53,9 @@ JDK_VERSION= 1.4.2
|
||||
JDK_PATCHSET_VERSION= 8
|
||||
LATEST_LINK= jdk14
|
||||
|
||||
TZUPDATE_VERSION= 1.0.1
|
||||
TZUPDATE_TZVERSION= 2007a
|
||||
|
||||
SUN_LINUX_JDK_VERSION= 1.4.2
|
||||
|
||||
.if !defined(WITH_LINUX_BOOTSTRAP)
|
||||
@ -70,6 +75,11 @@ DISTFILES+= ${POLICYFILE}
|
||||
EXTRACT_ONLY+= ${POLICYFILE}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TZUPDATE)
|
||||
DISTFILES+= ${TZUPDATEFILE}
|
||||
EXTRACT_ONLY+= ${TZUPDATEFILE}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_WEB)
|
||||
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts
|
||||
.endif
|
||||
@ -157,7 +167,7 @@ PTHREAD_FILES= ../../hotspot/build/bsd/makefiles/vm.make \
|
||||
X11_FILES= ../../j2se/src/solaris/native/sun/awt/fontpath.c
|
||||
|
||||
# Check for JDK sources and patch file
|
||||
.if !defined(PACKAGE_BUILDING) && (!exists(${DISTDIR}/${SCSL_SRCFILE}) || !exists(${DISTDIR}/${SCSL_BINFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})) || !exists(${DISTDIR}/${PATCHSETFILE}))#{
|
||||
.if !defined(PACKAGE_BUILDING) && (!exists(${DISTDIR}/${SCSL_SRCFILE}) || !exists(${DISTDIR}/${SCSL_BINFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})) || (defined(WITH_TZUPDATE) && !exists(${DISTDIR}/${TZUPDATEFILE})) || !exists(${DISTDIR}/${PATCHSETFILE}))#{
|
||||
ECHO_MSG=/usr/bin/printf
|
||||
IGNORE= :\n\
|
||||
Due to licensing restrictions, certain files must be fetched manually.\n\n
|
||||
@ -177,23 +187,21 @@ IGNORE += and the\n
|
||||
IGNORE += SCSL Binaries file, ${SCSL_BINFILE}
|
||||
.endif#}
|
||||
IGNORE += .\n\n
|
||||
.if !exists(${DISTDIR}/${PATCHSETFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE}))#{
|
||||
IGNORE += In addition, please
|
||||
.endif#}
|
||||
.elif !exists(${DISTDIR}/${PATCHSETFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE}))#}{
|
||||
IGNORE += Please
|
||||
.endif#}
|
||||
.if defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})#{
|
||||
IGNORE += open http://java.sun.com/products/jce/index-14.html\n\
|
||||
IGNORE += Please open http://java.sun.com/products/jce/index-14.html\n\
|
||||
in a web browser and follow the \"Download JCE Unlimited Strength\n\
|
||||
Jurisdiction Policy Files\" link for \"Other Downloads\" to obtain the\n\
|
||||
JCE policy file, ${POLICYFILE}.\n\n
|
||||
.if !exists(${DISTDIR}/${PATCHSETFILE})#{
|
||||
IGNORE += In addition, please
|
||||
.endif#}
|
||||
.if defined(WITH_TZUPDATE) && !exists(${DISTDIR}/${TZUPDATEFILE})#{
|
||||
IGNORE += Please open http://java.sun.com/javase/downloads/index.jsp\n\
|
||||
in a web browser and follow the \"Download\" link for\n\
|
||||
\"JDK US DST Timezone Update Tool - ${TZUPDATE_VERSION}\" to obtain the\n\
|
||||
time zone update file, ${TZUPDATEFILE}.\n\n
|
||||
.endif#}
|
||||
.if !exists(${DISTDIR}/${PATCHSETFILE})#{
|
||||
IGNORE += download the patchset, ${PATCHSETFILE}, from\n\
|
||||
IGNORE += Please download the patchset, ${PATCHSETFILE}, from\n\
|
||||
http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\n
|
||||
.endif#}
|
||||
IGNORE += Please place the downloaded file(s) in ${DISTDIR}
|
||||
@ -312,6 +320,11 @@ post-build:
|
||||
@# XXX don't install japanese manpages
|
||||
@${RM} -rf ${JDKIMAGEDIR}/man/ja
|
||||
@${RM} -rf ${JDKIMAGEDIR}/man/ja_JP.eucJP
|
||||
.if defined(WITH_TZUPDATE)
|
||||
@# Update time zones
|
||||
@-${JDKIMAGEDIR}/bin/java -jar \
|
||||
${WRKDIR}/tzupdater${TZUPDATE_TZVERSION}/tzupdater.jar -u
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if defined(WITHOUT_WEB)
|
||||
|
@ -10,3 +10,6 @@ SIZE (bsd-jdk14-patches-8.tar.gz) = 1148395
|
||||
MD5 (jce_policy-1_4_2.zip) = ff961c5f5326191c5ac2e4624d756f7e
|
||||
SHA256 (jce_policy-1_4_2.zip) = 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097
|
||||
SIZE (jce_policy-1_4_2.zip) = 12195
|
||||
MD5 (tzupdater-1_0_1.zip) = 0f2a4d1321ccf503ebfa73aa4f06b2b4
|
||||
SHA256 (tzupdater-1_0_1.zip) = d0ab27a16df850e5a3c26bea927fa3a9ce3f0b6a43c836d43cfbb6dae95df0fe
|
||||
SIZE (tzupdater-1_0_1.zip) = 253959
|
||||
|
Loading…
Reference in New Issue
Block a user