diff options
author | glewis <glewis@FreeBSD.org> | 2008-10-10 13:07:52 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2008-10-10 13:07:52 +0800 |
commit | c6371e576a625a3f4de9441f0bc7db67802a9f64 (patch) | |
tree | b33cde463f904b260df37701622f2fdb92a234a8 /java | |
parent | 68e6a40b45333c5a3d842cb7f9f3954f1c7c0e95 (diff) | |
download | freebsd-ports-gnome-c6371e576a625a3f4de9441f0bc7db67802a9f64.tar.gz freebsd-ports-gnome-c6371e576a625a3f4de9441f0bc7db67802a9f64.tar.zst freebsd-ports-gnome-c6371e576a625a3f4de9441f0bc7db67802a9f64.zip |
. Add a cacerts file that includes actual certificates.
. Add support for installing the JCE unlimited policy files.
Submitted by: ale
Diffstat (limited to 'java')
-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 |