pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add SUN_JRE14_USE_JCE which pulls in Sun's Unlimite...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/810025bc09bb
branches:  trunk
changeset: 477613:810025bc09bb
user:      abs <abs%pkgsrc.org@localhost>
date:      Tue Jul 06 11:32:49 2004 +0000

description:
Add SUN_JRE14_USE_JCE which pulls in Sun's Unlimited Strength
Java Cryptography Extension. Implemented as a variable rather than
as an additional package as it needs to replace JRE jar files.

diffstat:

 lang/sun-jre14/Makefile        |  19 ++++++++++++++++++-
 lang/sun-jre14/Makefile.common |   4 +---
 lang/sun-jre14/PLIST           |   4 +++-
 lang/sun-jre14/distinfo        |   4 +++-
 mk/bsd.pkg.defaults.mk         |   8 +++++++-
 5 files changed, 32 insertions(+), 7 deletions(-)

diffs (105 lines):

diff -r 438630565585 -r 810025bc09bb lang/sun-jre14/Makefile
--- a/lang/sun-jre14/Makefile   Tue Jul 06 11:28:55 2004 +0000
+++ b/lang/sun-jre14/Makefile   Tue Jul 06 11:32:49 2004 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2004/07/02 14:40:21 jschauma Exp $
+# $NetBSD: Makefile,v 1.19 2004/07/06 11:32:49 abs Exp $
+
+# Note: Regen distinfo with SUN_JRE14_USE_JCE=YES
 
 DISTNAME=      j2re-1_4_2_05-linux-i586
 PKGNAME=       sun-jre14-2.5
@@ -30,9 +32,24 @@
 SUPPORT_FILES+=        ${JAVA_HOME}/lib/${FILE}.default ${JAVA_HOME}/lib/${FILE}
 .endfor
 
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+=           SUN_JRE14_USE_JCE
+PLIST_SRC=             ${WRKDIR}/PLIST
+
+.if !empty(SUN_JRE14_USE_JCE:M[Yy][Ee][Ss])
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} jce_policy-1_4_2.zip
+.endif
+
 do-configure:
        cd ${WRKSRC}/lib; for file in ${SFILES}; do                     \
                ${MV} -f $$file $$file.default;                         \
        done
+.if !empty(SUN_JRE14_USE_JCE:M[Yy][Ee][Ss])
+       cd ${WRKDIR}/jce ; pax -rw -pe -v . ${WRKSRC}/lib/security
+       ${SED} 's/@SUN_JRE14_USE_JCE@//' ${PKGDIR}/PLIST > ${PLIST_SRC}
+.else
+       ${SED} '/@SUN_JRE14_USE_JCE@/d' ${PKGDIR}/PLIST > ${PLIST_SRC}
+.endif
 
 .include "../../lang/sun-jre14/Makefile.common"
diff -r 438630565585 -r 810025bc09bb lang/sun-jre14/Makefile.common
--- a/lang/sun-jre14/Makefile.common    Tue Jul 06 11:28:55 2004 +0000
+++ b/lang/sun-jre14/Makefile.common    Tue Jul 06 11:32:49 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.21 2004/07/02 14:40:21 jschauma Exp $
+# $NetBSD: Makefile.common,v 1.22 2004/07/06 11:32:49 abs Exp $
 
 CATEGORIES=    lang java
 EXTRACT_SUFX=  .bin
@@ -8,8 +8,6 @@
 DOWNLOAD=      http://java.sun.com/j2se/1.4.2/download.html
 ARCHIVE=       http://java.sun.com/products/archive/index.html
 
-EXTRACT_CMD=   ${ECHO} yes | ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >/dev/null
-
 LICENSE=       jdk13-license
 RESTRICTED=    "Redistribution of repackaged binaries not permitted"
 NO_SRC_ON_CDROM=${RESTRICTED}
diff -r 438630565585 -r 810025bc09bb lang/sun-jre14/PLIST
--- a/lang/sun-jre14/PLIST      Tue Jul 06 11:28:55 2004 +0000
+++ b/lang/sun-jre14/PLIST      Tue Jul 06 11:32:49 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2004/07/02 14:40:21 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.14 2004/07/06 11:32:49 abs Exp $
 bin/sun14-java
 java/sun-1.4/.systemPrefs/.system.lock
 java/sun-1.4/.systemPrefs/.systemRootModFile
@@ -176,6 +176,8 @@
 java/sun-1.4/lib/psfont.properties.ja.default
 java/sun-1.4/lib/psfontj2d.properties.default
 java/sun-1.4/lib/rt.jar
+@SUN_JRE14_USE_JCE@java/sun-1.4/lib/security/COPYRIGHT.html
+@SUN_JRE14_USE_JCE@java/sun-1.4/lib/security/README.txt
 java/sun-1.4/lib/security/US_export_policy.jar
 java/sun-1.4/lib/security/cacerts
 java/sun-1.4/lib/security/java.policy
diff -r 438630565585 -r 810025bc09bb lang/sun-jre14/distinfo
--- a/lang/sun-jre14/distinfo   Tue Jul 06 11:28:55 2004 +0000
+++ b/lang/sun-jre14/distinfo   Tue Jul 06 11:32:49 2004 +0000
@@ -1,4 +1,6 @@
-$NetBSD: distinfo,v 1.11 2004/07/02 14:40:21 jschauma Exp $
+$NetBSD: distinfo,v 1.12 2004/07/06 11:32:49 abs Exp $
 
 SHA1 (j2re-1_4_2_05-linux-i586.bin) = 326a50523fbedb449596f2c502c2572d9b88114c
 Size (j2re-1_4_2_05-linux-i586.bin) = 14381383 bytes
+SHA1 (jce_policy-1_4_2.zip) = ea17b649ebcaaf4246e9dd28dbc77926176c64ee
+Size (jce_policy-1_4_2.zip) = 12195 bytes
diff -r 438630565585 -r 810025bc09bb mk/bsd.pkg.defaults.mk
--- a/mk/bsd.pkg.defaults.mk    Tue Jul 06 11:28:55 2004 +0000
+++ b/mk/bsd.pkg.defaults.mk    Tue Jul 06 11:32:49 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.defaults.mk,v 1.254 2004/06/26 06:03:41 grant Exp $
+# $NetBSD: bsd.pkg.defaults.mk,v 1.255 2004/07/06 11:32:49 abs Exp $
 #
 
 # A file providing defaults for pkgsrc and the packages collection.
@@ -1910,6 +1910,12 @@
 #          --enable-ipf-transparent
 #          --enable-snmp
 
+SUN_JRE14_USE_JCE?= NO
+# Whether to include the Java Cryptography Extension (JCE) Unlimited Strength
+# Jurisdiction Policy Files in the sun-jre14 package
+# Possible: YES or NO.
+# Default: NO
+
 SSH_RSHPATH?= ${RSH}
 # Used in ssh to specify standard rsh path
 # Possible: path to rsh binary



Home | Main Index | Thread Index | Old Index