diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2008-10-10 05:07:52 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2008-10-10 05:07:52 +0000 |
commit | ede7455dc981780d1ab0479ae9db363e620434c2 (patch) | |
tree | 0e016b6207ac3deb7fe440db21126a98732ae865 /java/diablo-jdk16 | |
parent | 9f58abb43b1654b02fa2947d45a25fb080ccabae (diff) | |
download | ports-ede7455dc981780d1ab0479ae9db363e620434c2.tar.gz ports-ede7455dc981780d1ab0479ae9db363e620434c2.zip |
Notes
Diffstat (limited to 'java/diablo-jdk16')
-rw-r--r-- | java/diablo-jdk16/Makefile | 48 | ||||
-rw-r--r-- | java/diablo-jdk16/distinfo | 3 | ||||
-rw-r--r-- | java/diablo-jdk16/files/cacerts | bin | 0 -> 53384 bytes |
3 files changed, 41 insertions, 10 deletions
diff --git a/java/diablo-jdk16/Makefile b/java/diablo-jdk16/Makefile index d498d9400df5..434ebf6be412 100644 --- a/java/diablo-jdk16/Makefile +++ b/java/diablo-jdk16/Makefile @@ -7,11 +7,13 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}.${RELEASE_VERSION}.${BUILD_VERSION} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= # PKGNAMEPREFIX= diablo- DISTNAME= ${PKGNAMEPREFIX}caffe-${JDK_OSREL}-${ARCH}-${JDK_VERSION}_${RELEASE_VERSION}-b${BUILD_VERSION} -EXTRACT_SUFX= .tar.bz2 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= glewis@FreeBSD.org COMMENT= Java Development Kit ${JDK_VERSION}_${RELEASE_VERSION}.${BUILD_VERSION} @@ -34,6 +36,10 @@ LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}16 WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}jdk${JDK_VERSION}_${RELEASE_VERSION} NO_BUILD= yes +OPTIONS= POLICY "Install the Unlimited Strength Policy Files" off + +POLICYFILE= jce_policy-6.zip + SUB_FILES+= pkg-install \ pkg-deinstall SUB_LIST+= ARCH="${ARCH}" \ @@ -61,18 +67,30 @@ PLIST_SUB+= CLIENTVM="" PLIST_SUB+= CLIENTVM="@comment " .endif -.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) && defined(JDK_OSREL) +.if defined(WITH_POLICY) +EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip +DISTFILES+= ${POLICYFILE} +.endif + +.if !defined(PACKAGE_BUILDING) && defined(JDK_OSREL) && (!exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})))#{ DISTFILE_INSTRUCTIONS=\n\ Because of licensing restrictions, you must fetch the distribution\n\ -manually.\n\n\ -Please access\n\ -\n\ - ${DOWNLOAD_URL}\n\ -\n\ +manually.\n\n +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})#{ +DISTFILE_INSTRUCTIONS+=Please access\n\n\ +\ \ \ \ ${DOWNLOAD_URL}\n\n\ with a web browser and \"Accept\" the End User License Agreement for\n\ -\"Caffe Diablo ${JDK_VERSION}\". Please place the downloaded\n\ -${DISTNAME}${EXTRACT_SUFX} in ${DISTDIR}.\n\n -.endif +\"Caffe Diablo ${JDK_VERSION}\".\n\n +.endif#} +.if defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})#{ +DISTFILE_INSTRUCTIONS+=Please open\n\n\ +\ \ \ \ http://java.sun.com/javase/downloads/\n\n\ +in a web browser and follow the \"Download\" link for \"Java\n\ +Cryptography Extension (JCE) Unlimited Strength Jurisdiction\n\ +Policy Files 6\" to obtain the JCE policy file, ${POLICYFILE}.\n\n +.endif#} +DISTFILE_INSTRUCTIONS+=Please place the downloaded file(s) in ${DISTDIR}.\n\n +.endif#} pre-fetch: .if defined(DISTFILE_INSTRUCTIONS) @@ -80,10 +98,20 @@ pre-fetch: @exit 1 .endif +.if defined(WITH_POLICY) +post-extract: + @unzip -qo ${DISTDIR}/${POLICYFILE} -d ${WRKDIR} +.endif + do-install: ${MKDIR} "${INSTALL_DIR}" cd "${WRKSRC}" && ${FIND} . \ | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} "${INSTALL_DIR}" + ${INSTALL_DATA} ${FILESDIR}/cacerts \ + ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/jre/lib/security/cacerts +.if defined(WITH_POLICY) + ${INSTALL_DATA} ${WRKDIR}/jce/*.jar ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/jre/lib/security +.endif post-install: # Register the VM diff --git a/java/diablo-jdk16/distinfo b/java/diablo-jdk16/distinfo index 41ad5813d4ae..9daffcd1b537 100644 --- a/java/diablo-jdk16/distinfo +++ b/java/diablo-jdk16/distinfo @@ -10,3 +10,6 @@ SIZE (diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2) = 62778916 MD5 (diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2) = 39d0af2a6dbffc51ea4e465f4bd9f33d SHA256 (diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2) = 971a537f8e852166fa94a9666b14e2f0a8ee51dcf7a470ab7bcb5be0dba05409 SIZE (diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2) = 64093245 +MD5 (jce_policy-6.zip) = b20f9d6ed14e55d73a5ed204bca01e7a +SHA256 (jce_policy-6.zip) = d0c2258c3364120b4dbf7dd1655c967eee7057ac6ae6334b5ea8ceb8bafb9262 +SIZE (jce_policy-6.zip) = 9101 diff --git a/java/diablo-jdk16/files/cacerts b/java/diablo-jdk16/files/cacerts Binary files differnew file mode 100644 index 000000000000..9922f341ebbb --- /dev/null +++ b/java/diablo-jdk16/files/cacerts |