ports/52106: New port: java/javaws: Java Web Start 1.2

Bruce M Simpson bms at spc.org
Mon May 12 11:20:07 UTC 2003


>Number:         52106
>Category:       ports
>Synopsis:       New port: java/javaws: Java Web Start 1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 12 04:20:02 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Bruce M Simpson
>Release:        FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD saboteur.dek.spc.org 5.1-BETA FreeBSD 5.1-BETA #3: Fri May 9 08:06:22 BST 2003 root at saboteur.dollah.com:/usr/obj/usr/src/sys/SABOTEUR i386


	
>Description:
	This port requires the native build of the JDK 1.4.1 for FreeBSD.

	It builds a native Java Web Start binary. It is fairly important
	as an enabling technology for a number of applications such as
	ArgoUML.

	Java(TM) Web Start -- a technology for simplifying deployment of
	Java applications-- gives you the power to launch full-featured
	applications with a single click from your Web browser. You can now
	download and launch applications, such as a complete spreadsheet
	program or an Internet chat client, without going through complicated
	installation procedures.

>How-To-Repeat:
	
>Fix:

	

--- javaws.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	javaws
#	javaws/pkg-descr
#	javaws/distinfo
#	javaws/Makefile
#	javaws/pkg-message
#	javaws/files
#	javaws/files/patch-src::solaris::native::system_md.c
#	javaws/files/patch-build::freebsd::minclude::freebsd.defs
#	javaws/files/patch-build::freebsd::minclude::javaws.cmk
#	javaws/files/patch-build::freebsd::minclude::javaws.jmk
#	javaws/files/patch-build::freebsd::resources::install.sh
#	javaws/files/patch-build::freebsd::resources::javaws
#	javaws/files/patch-build::freebsd::GNUmakefile
#	javaws/pkg-plist
#
echo c - javaws
mkdir -p javaws > /dev/null 2>&1
echo x - javaws/pkg-descr
sed 's/^X//' >javaws/pkg-descr << 'END-of-javaws/pkg-descr'
XFrom the web site:
X
XJava(TM) Web Start -- a technology for simplifying deployment of
XJava applications-- gives you the power to launch full-featured
Xapplications with a single click from your Web browser. You can now
Xdownload and launch applications, such as a complete spreadsheet
Xprogram or an Internet chat client, without going through complicated
Xinstallation procedures.
X
XWWW: http://java.sun.com/products/javawebstart/
X
XBruce
Xbms at spc.org
END-of-javaws/pkg-descr
echo x - javaws/distinfo
sed 's/^X//' >javaws/distinfo << 'END-of-javaws/distinfo'
XMD5 (javaws-1_2-scsl.zip) = e2b961d6d6eb655d86dacd8c683abced
XMD5 (javaws-build-freebsd.tar.gz) = 4732e0f9ee2f31bedbb5f764b01fa0a6
END-of-javaws/distinfo
echo x - javaws/Makefile
sed 's/^X//' >javaws/Makefile << 'END-of-javaws/Makefile'
X# New ports collection makefile for:	javaws
X# Date created:		12 May 2003
X# Whom:			bms
X#
X# $FreeBSD$
X#
X
XPORTNAME=	javaws
XPORTVERSION=	1.2
XCATEGORIES=	java devel
XMASTER_SITES=	# http://wwws.sun.com/software/communitysource/javawebstart/ http://www.incunabulum.com/code/java/
XSRCFILE=	${PORTNAME}-${PORTVERSION:S/./_/g}-scsl.zip
XPATCHSETFILE=	${PORTNAME}-build-freebsd.tar.gz
XDISTFILES=      ${SRCFILE} ${PATCHSETFILE}
XEXTRACT_ONLY=   ${SRCFILE}
X
XMAINTAINER=	bms at spc.org
XCOMMENT=	"Sun's Automated application deployment and delivery tool"
X
X#
X# Java Web Start will only work with JDK 1.2 or later.
X# Currently it is configured to have a hard dependency on 1.4.1.
X#
XBUILD_DEPENDS=	javac:${PORTSDIR}/java/jdk14 \
X		zip:${PORTSDIR}/archivers/zip
XLIB_DEPENDS=	iconv.3:${PORTSDIR}/converters/libiconv
XRUN_DEPENDS=    javac:${PORTSDIR}/java/jdk14 \
X		bash:${PORTSDIR}/shells/bash2
X
XUSE_ZIP=        YES
XUSE_GMAKE=	YES
XUSE_XLIB=	YES
X
XWRKSRC=		${WRKDIR}/${PORTNAME}${PORTVERSION}-src
XBUILD_WRKSRC=	${WRKSRC}/build/freebsd
X
XMAKEFILE=	GNUmakefile
XMAKE_ENV=	PREFIX=${PREFIX} X11BASE=${X11BASE} LOCALBASE=${LOCALBASE}
XALL_TARGET=	installer-us
X
XNO_CDROM=       "License does not allow distribution with fee"
XRESTRICTED=     "Redistribution of repackaged binaries not permitted"
XDOWNLOAD_URL=	"http://wwws.sun.com/software/communitysource/javawebstart/"
X
XNOMAN=		defined
X
X# XXX this file check breaks for some reason
X#.if !exists(${DISTDIR}/${SRCFILE})
X#IGNORE=	You must manually fetch the Java Web Start archive\
X#	(${SRCFILE}) from ${DOWNLOAD_URL} into ${DISTDIR}\
X#	and then run make again
X#.endif
X
X#
X# Fixup permissions after install in case build step was executed
X# as a non-root user.
X#
Xdo-install:
X	${CP} ${BUILD_WRKSRC}/proto-us/install.sh ${PREFIX}
X	cd ${PREFIX} ; ./install.sh
X	${RM} -f ${PREFIX}/install.sh
X	${CHOWN} -R root:wheel ${PREFIX}/javaws
X	${CHMOD} 755 ${PREFIX}/javaws
X	cd ${PREFIX}/javaws ; ${CHMOD} -R 0644 . ; ${CHMOD} 0755 . javaws javawsbin resources
X
X# TODO: Fix install.sh and javaws scripts to use ${LOCALBASE}, not
X# /usr/local.
X
X.include <bsd.port.mk>
END-of-javaws/Makefile
echo x - javaws/pkg-message
sed 's/^X//' >javaws/pkg-message << 'END-of-javaws/pkg-message'
XSUN COMMUNITY SOURCE LICENSE Version 2.3 (Rev.  Date Feb. 
X23, 1999)
X        
XRECITALS
X        
XOriginal Contributor has developed Specifications and Source
XCode implementations of certain Technology; and
X        
XOriginal Contributor desires to license the Technology to a
Xlarge community to facilitate research, innovation and
Xproduct development while maintaining compatibility of such
Xproducts with the Technology as delivered by Original
XContributor; and
X        
XOriginal Contributor desires to license certain Sun
XTrademarks for the purpose of branding products that are
Xcompatible with the relevant Technology delivered by
XOriginal Contributor; and
X               
XYou desire to license the Technology and possibly certain
XSun Trademarks from Original Contributor on the terms and
Xconditions specified in this License.
X                 
XIn consideration for the mutual covenants contained herein,
XYou and Original Contributor agree as follows:
X        
XAGREEMENT
X1.  Introduction.  The Sun Community Source License and
Xeffective attachments ("License") may include five distinct
Xlicenses:  Research Use, TCK, Internal Deployment Use,
XCommercial Use and Trademark License.  The Research Use
Xlicense is effective when You click and accept this License.
XThe TCK and Internal Deployment Use licenses are effective
Xwhen You click and accept this License, unless otherwise
Xspecified in the TCK and Internal Deployment Use
Xattachments.  The Commercial Use and Trademark licenses must
Xbe signed by You and Original Contributor in order to become
Xeffective.  Once effective, these licenses and the
Xassociated requirements and responsibilities are cumulative.
XCapitalized terms used in this License are defined in the
XGlossary.
X
X2.  License Grants.
X
X2.1 Original Contributor Grant.  Subject to Your compliance
Xwith Sections 3, 8.10 and Attachment A of this License,
XOriginal Contributor grants to You a worldwide,
Xroyalty-free, non-exclusive license, to the extent of
XOriginal Contributor's Intellectual Property Rights covering
Xthe Original Code, Upgraded Code and Specifications, to do
Xthe following:
X
Xa) Research Use License:
X
X(i) use, reproduce and modify the Original Code, Upgraded
XCode and Specifications to create Modifications and
XReformatted Specifications for Research Use by You,
X
X(ii) publish and display Original Code, Upgraded Code and
XSpecifications with, or as part of Modifications, as
Xpermitted under Section 3.1 b) below,
X
X(iii) reproduce and distribute copies of Original Code and
XUpgraded Code to Licensees and students for Research Use by
XYou,
X
X(iv) compile, reproduce and distribute Original Code and
XUpgraded Code in Executable form, and Reformatted
XSpecifications to anyone for Research Use by You.
X
Xb) Other than the licenses expressly granted in this
XLicense, Original Contributor retains all right, title, and
Xinterest in Original Code and Upgraded Code and
XSpecifications.
X
X2.2 Your Grants.
X
Xa) To Other Licensees.  You hereby grant to each Licensee a
Xlicense to Your Error Corrections and Shared Modifications,
Xof the same scope and extent as Original Contributor's
Xlicenses under Section 2.1 a) above relative to Research
XUse, Attachment C relative to Internal Deployment Use, and
XAttachment D relative to Commercial Use.
X
Xb) To Original Contributor.  You hereby grant to Original
XContributor a worldwide, royalty-free, non-exclusive,
Xperpetual and irrevocable license, to the extent of Your
XIntellectual Property Rights covering Your Error
XCorrections, Shared Modifications and Reformatted
XSpecifications, to use, reproduce, modify, display and
Xdistribute Your Error Corrections, Shared Modifications and
XReformatted Specifications, in any form, including the right
Xto sublicense such rights through multiple tiers of
Xdistribution.
X
Xc) Other than the licenses expressly granted in Sections 2.2
Xa) and b) above, and the restriction set forth in Section
X3.1 d)(iv) below, You retain all right, title, and interest
Xin Your Error Corrections, Shared Modifications and
XReformatted Specifications.
X
X2.3 Contributor Modifications.  You may use, reproduce,
Xmodify, display and distribute Contributor Error
XCorrections, Shared Modifications and Reformatted
XSpecifications, obtained by You under this License, to the
Xsame scope and extent as with Original Code, Upgraded Code
Xand Specifications.
X
X2.4 Subcontracting.  You may deliver the Source Code of
XCovered Code to other Licensees having at least a Research
XUse license, for the sole purpose of furnishing development
Xservices to You in connection with Your rights granted in
Xthis License.  All such Licensees must execute appropriate
Xdocuments with respect to such work consistent with the
Xterms of this License, and acknowledging their
Xwork-made-for-hire status or assigning exclusive right to
Xthe work product and associated Intellectual Property Rights
Xto You.
X
X3.Requirements and Responsibilities.
X
X3.1 Research Use License.  As a condition of exercising the rights 
Xgranted under Section 2.1 a) above, You agree to comply with the following:
X
Xa) Your Contribution to the Community.  All Error
XCorrections and Shared Modifications which You create or
Xcontribute to are automatically subject to the licenses
Xgranted under Section 2.2 above.  You are encouraged to
Xlicense all of Your other Modifications under Section 2.2 as
XShared Modifications, but are not required to do so.  You
Xagree to notify Original Contributor of any errors in the
XSpecification.
X
Xb) Source Code Availability.  You agree to provide all Your
XError Corrections to Original Contributor as soon as
Xreasonably practicable and, in any event, prior to Internal
XDeployment Use or Commercial Use, if applicable.  Original
XContributor may, at its discretion, post Source Code for
XYour Error Corrections and Shared Modifications on the
XCommunity Webserver.  You may also post Error Corrections
Xand Shared Modifications on a web-server of Your choice;
Xprovided, that You must take reasonable precautions to
Xensure that only Licensees have access to such Error
XCorrections and Shared Modifications.  Such precautions
Xshall include, without limitation, a password protection
Xscheme limited to Licensees and a click-on, download
Xcertification of Licensee status required of those
Xattempting to download from the server.  An example of an
Xacceptable certification is attached as Attachment A-2.
X
Xc) Notices.  All Error Corrections and Shared Modifications
XYou create or contribute to must include a file documenting
Xthe additions and changes You made and the date of such
Xadditions and changes.  You must also include the notice set
Xforth in Attachment A-1 in the file header.  If it is not
Xpossible to put the notice in a particular Source Code file
Xdue to its structure, then You must include the notice in a
Xlocation (such as a relevant directory file), where a
Xrecipient would be most likely to look for such a notice.
X
Xd) Redistribution.
X
X(i) Source.  Covered Code may be distributed in Source Code
Xform only to another Licensee (except for students as
Xprovided below).  You may not offer or impose any terms on
Xany Covered Code that alter the rights, requirements, or
Xresponsibilities of such Licensee.  You may distribute
XCovered Code to students for use in connection with their
Xcourse work and research projects undertaken at accredited
Xeducational institutions.  Such students need not be
XLicensees, but must be given a copy of the notice set forth
Xin Attachment A-3 and such notice must also be included in a
Xfile header or prominent location in the Source Code made
Xavailable to such students.
X
X(ii) Executable.  You may distribute Executable version(s)
Xof Covered Code to Licensees and other third parties only
Xfor the purpose of evaluation and comment in connection with
XResearch Use by You and under a license of Your choice, but
Xwhich limits use of such Executable version(s) of Covered
XCode only to that purpose.
X
X(iii) Modified Class,Interface and Package Naming.  In
Xconnection with Research Use by You only, You may use
XOriginal Contributor's class, interface and package names
Xonly to accurately reference or invoke the Source Code files
XYou modify.  Original Contributor grants to You a limited
Xlicense to the extent necessary for such purposes.
X
X(iv) You expressly agree that any distribution, in whole or
Xin part, of Modifications developed by You shall only be
Xdone pursuant to the term and conditions of this License.
X
Xe) Extensions.
X
X(i) Covered Code.  You may not include any Source Code of
XCommunity Code in any Extensions;
X
X(ii) Publication.  No later than the date on which You first
Xdistribute such Extension for Commercial Use, You must
Xpublish to the industry, on a non-confidential basis and
Xfree of all copyright restrictions with respect to
Xreproduction and use, an accurate and current specification
Xfor any Extension.  In addition, You must make available an
Xappropriate test suite, pursuant to the same rights as the
Xspecification, sufficiently detailed to allow any third
Xparty reasonably skilled in the technology to produce
Ximplementations of the Extension compatible with the
Xspecification.  Such test suites must be made available as
Xsoon as reasonably practicable but, in no event, later than
Xninety (90) days after Your first Commercial Use of the
XExtension.  You must use reasonable efforts to promptly
Xclarify and correct the specification and the test suite
Xupon written request by Original Contributor.
X
X(iii) Open.  You agree to refrain from enforcing any
XIntellectual Property Rights You may have covering any
Xinterface(s) of Your Extension, which would prevent the
Ximplementation of such interface(s) by Original Contributor
Xor any Licensee.  This obligation does not prevent You from
Xenforcing any Intellectual Property Right You have that
Xwould otherwise be infringed by an implementation of Your
XExtension.
X
X(iv) Class, Interface and Package Naming.  You may not add
Xany packages, or any public or protected classes or
Xinterfaces with names that originate or might appear to
Xoriginate from Original Contributor including, without
Xlimitation, package or class names which begin with "sun",
X"java", "javax", "jini", "net.jini", "com.sun" or their
Xequivalents in any subsequent class, interface and/ or
Xpackage naming convention adopted by Original Contributor.
XIt is specifically suggested that You name any new packages
Xusing the "Unique Package Naming Convention" as described in
X"The Java Language Specification" by James Gosling, Bill
XJoy, and Guy Steele, ISBN 0-201-63451-1, August 1996.
XSection 7.7 "Unique Package Names", on page 125 of this
Xspecification which states, in part:
X
X"You form a unique package name by first having (or
Xbelonging to an organization that has) an Internet domain
Xname, such as "sun.com".  You then reverse the name,
Xcomponent by component, to obtain, in this example,
X"Com.sun", and use this as a prefix for Your package names,
Xusing a convention developed within Your organization to
Xfurther administer package names."
X
X3.2 Additional Requirements and Responsibilities.  Any
Xadditional requirements and responsibilities relating to the
XTechnology are listed in Attachment F (Additional
XRequirements and Responsibilities), if applicable, and are
Xhereby incorporated into this Section 3.
X
X4.  Versions of the License.
X
X4.1 License Versions.  Original Contributor may publish
Xrevised versions of the License from time to time.  Each
Xversion will be given a distinguishing version number.
X
X4.2 Effect.  Once a particular version of Covered Code has
Xbeen provided under a version of the License, You may always
Xcontinue to use such Covered Code under the terms of that
Xversion of the License.  You may also choose to use such
XCovered Code under the terms of any subsequent version of
Xthe License.  No one other than Original Contributor has the
Xright to promulgate License versions.
X
X5.  Disclaimer of Warranty.
X
X5.1 COVERED CODE IS PROVIDED UNDER THIS LICENSE "AS IS,"
XWITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
XINCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
XCODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
XPURPOSE OR NON-INFRINGING.  YOU AGREE TO BEAR THE ENTIRE
XRISK IN CONNECTION WITH YOUR USE AND DISTRIBUTION OF COVERED
XCODE UNDER THIS LICENSE.  THIS DISCLAIMER OF WARRANTY
XCONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.  NO USE OF
XANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT SUBJECT TO
XTHIS DISCLAIMER.
X
X5.2 You acknowledge that Original Code, Upgraded Code and
XSpecifications are not designed or intended for use in (i)
Xon-line control of aircraft, air traffic, aircraft
Xnavigation or aircraft communications; or (ii) in the
Xdesign, construction, operation or maintenance of any
Xnuclear facility.  Original Contributor disclaims any
Xexpress or implied warranty of fitness for such uses.
X
X6.  Termination.
X
X6.1 By You.  You may terminate this Research Use license at
Xanytime by providing written notice to Original Contributor.
X
X6.2 By Original Contributor.  This License and the rights
Xgranted hereunder will terminate:
X
X(i) automatically if You fail to comply with the terms of
Xthis License and fail to cure such breach within 30 days of
Xreceipt of written notice of the breach;
X
X(ii) immediately in the event of circumstances specified in
XSections 7.1 and 8.4; or
X
X(iii) at Original Contributor's discretion upon any action
Xinitiated in the first instance by You alleging that use or
Xdistribution by Original Contributor or any Licensee, of
XOriginal Code, Upgraded Code, Error Corrections or Shared
XModifications contributed by You, or Specifications,
Xinfringe a patent owned or controlled by You.
X
X6.3 Effective of Termination.  Upon termination, You agree
Xto discontinue use and return or destroy all copies of
XCovered Code in your possession.  All sublicenses to the
XCovered Code which you have properly granted shall survive
Xany termination of this License.  Provisions which, by their
Xnature, should remain in effect beyond the termination of
Xthis License shall survive including, without limitation,
XSections 2.2, 3, 5, 7 and 8.
X
X6.4 Each party waives and releases the other from any claim
Xto compensation or indemnity for permitted or lawful
Xtermination of the business relationship established by this
XLicense.
X
X7.  Liability.
X
X7.1 Infringement.  Should any of the Original Code, Upgraded
XCode, TCK or Specifications ("Materials") become the subject
Xof a claim of infringement, Original Contributor may, at its
Xsole option, (i) attempt to procure the rights necessary for
XYou to continue using the Materials, (ii) modify the
XMaterials so that they are no longer infringing, or (iii)
Xterminate Your right to use the Materials, immediately upon
Xwritten notice, and refund to You the amount, if any, having
Xthen actually been paid by You to Original Contributor for
Xthe Original Code, Upgraded Code and TCK, depreciated on a
Xstraight line, five year basis.
X
X7.2 LIMITATION OF LIABILITY.  TO THE FULL EXTENT ALLOWED BY
XAPPLICABLE LAW, ORIGINAL CONTRIBUTOR's LIABILITY TO YOU FOR
XCLAIMS RELATING TO THIS LICENSE, WHETHER FOR BREACH OR IN
XTORT, SHALL BE LIMITED TO ONE HUNDRED PERCENT (100%) OF THE
XAMOUNT HAVING THEN ACTUALLY BEEN PAID BY YOU TO ORIGINAL
XCONTRIBUTOR FOR ALL COPIES LICENSED HEREUNDER OF THE
XPARTICULAR ITEMS GIVING RISE TO SUCH CLAIM, IF ANY.  IN NO
XEVENT WILL YOU (RELATIVE TO YOUR SHARED MODIFICATIONS OR
XERROR CORRECTIONS) OR SUN BE LIABLE FOR ANY INDIRECT,
XPUNITIVE, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES IN
XCONNECTION WITH OR ARISING OUT OF THIS LICENSE (INCLUDING,
XWITHOUT LIMITATION, LOSS OF PROFITS, USE, DATA, OR OTHER
XECONOMIC ADVANTAGE), HOWEVER IT ARISES AND ON ANY THEORY OF
XLIABILITY, WHETHER IN AN ACTION FOR CONTRACT, STRICT
XLIABILITY OR TORT (INCLUDING NEGLIGENCE) OR OTHERWISE,
XWHETHER OR NOT YOU OR ORIGINAL CONTRIBUTOR HAS BEEN ADVISED
XOF THE POSSIBILITY OF SUCH DAMAGE AND NOTWITHSTANDING THE
XFAILURE OF ESSENTIAL PURPOSE OF ANY REMEDY.
X
X8.  Miscellaneous.
X
X8.1 Trademark.  You agree to comply with the then current
XSun Trademark & Logo Usage Requirements accessible through
Xthe SCSL Webpage.  Except as expressly provided in the
XLicense, You are granted no right, title or license to, or
Xinterest in, any Sun Trademarks.  You agree not to (i)
Xchallenge Original Contributor's ownership or use of Sun
XTrademarks; (ii) attempt to register any Sun Trademarks, or
Xany mark or logo substantially similar thereto; or (iii)
Xincorporate any Sun Trademarks into your own trademarks,
Xproduct names, service marks, company names, or domain
Xnames.
X
X8.2 Integration.  This License represents the complete
Xagreement concerning the subject matter hereof.
X
X8.3 Assignment.  Original Contributor may assign this
XLicense, and its rights and obligations hereunder, in its
Xsole discretion.  You may assign the Research Use portions
Xof this License to a third party upon prior written notice
Xto Original Contributor (which may be provided via the
XCommunity Web-Server).  You may not assign the Commercial
XUse license or TCK license, including by way of merger
X(regardless of whether You are the surviving entity) or
Xacquisition, without Original Contributor's prior written
Xconsent.
X
X8.4 Severability.  If any provision of this License is held
Xto be unenforceable, such provision shall be reformed only
Xto the extent necessary to make it enforceable.
XNotwithstanding the foregoing, if You are prohibited by law
Xfrom fully and specifically complying with Sections 2.2 or
X3, this License will immediately terminate and You must
Ximmediately discontinue any use of Covered Code.
X
X8.5 Governing Law.  This License shall be governed by the
Xlaws of the United States and the State of California, as
Xapplied to contracts entered into and to be performed in
XCalifornia between California residents.  The application of
Xthe United Nations Convention on Contracts for the
XInternational Sale of Goods is expressly excluded.
X
X8.6 Dispute Resolution.
X
Xa) Any dispute arising out of or relating to this License
Xshall be finally settled by arbitration as set out herein,
Xexcept that either party may bring any action, in a court of
Xcompetent jurisdiction (which jurisdiction shall be
Xexclusive), with respect to any dispute relating to such
Xparty's Intellectual Property Rights or with respect to Your
Xcompliance with the TCK license.  Arbitration shall be
Xadministered:  (i) by the American Arbitration Association
X(AAA), (ii) in accordance with the rules of the United
XNations Commission on International Trade Law (UNCITRAL)
X(the "Rules") in effect at the time of arbitration as
Xmodified herein; and (iii) the arbitrator will apply the
Xsubstantive laws of California and United States.  Judgment
Xupon the award rendered by the arbitrator may be entered in
Xany court having jurisdiction to enforce such award.
X
Xb) All arbitration proceedings shall be conducted in English
X by a single arbitrator selected in accordance with the
X Rules, who must be fluent in English and be either a
X retired judge or practicing attorney having at least ten
X (10) years litigation experience and be reasonably familiar
X with the technology matters relative to the dispute.
X Unless otherwise agreed, arbitration venue shall be in
X London, Tokyo, or San Francisco, whichever is closest to
X defendant's principal business office.  The arbitrator may
X award monetary damages only and nothing shall preclude
X either party from seeking provisional or emergency relief
X from a court of competent jurisdiction.  The arbitrator
X shall have no authority to award damages in excess of those
X permitted in this License and any such award in excess is
X void.  All awards will be payable in U.S.  dollars and may
X include, for the prevailing party (i) pre-judgment award
X interest, (ii) reasonable attorneys' fees incurred in
X connection with the arbitration, and (iii) reasonable costs
X and expenses incurred in enforcing the award.  The
X arbitrator will order each party to produce identified
X documents and respond to no more than twenty-five single
X question interrogatories.
X
X8.7 Construction.  Any law or regulation which provides that
Xthe language of a contract shall be construed against the
Xdrafter shall not apply to this License.
X
X8.8 U.S.  Government End Users.  The Covered Code is a
X"commercial item," as that term is defined in 48 C.F.R.
X2.101 (Oct.  1995), consisting of "commercial computer
Xsoftware" and "commercial computer software documentation,"
Xas such terms are used in 48 C.F.R.  12.212 (Sept.  1995).
XConsistent with 48 C.F.R.  12.212 and 48 C.F.R.  227.7202-1
Xthrough 227.7202-4 (June 1995), all U.S.  Government End
XUsers acquire Covered Code with only those rights set forth
Xherein.  You agree to pass this notice to Your licensees.
X
X8.9 Press Announcements.  All press announcements relative
Xto the execution of this License must be reviewed and
Xapproved by Original Contributor and You prior to release.
X
X8.10 International Use.
X
Xa) Export/Import laws.  Covered Code is subject to U.S.
Xexport control laws and may be subject to export or import
Xregulations in other countries.  Each party agrees to comply
Xstrictly with all such laws and regulations and acknowledges
Xtheir responsibility to obtain such licenses to export,
Xre-export, or import as may be required.  You agree to pass
Xthese obligations to Your licensees.
X
Xb) Intellectual Property Protection.  Due to limited
Xintellectual property protection and enforcement in certain
Xcountries, You agree not to redistribute the Original Code,
XUpgraded Code, TCK and Specifications to any country other
Xthan the list of restricted countries on the SCSL Webpage.
X
X8.11 Language.  This License is in the English language
Xonly, which language shall be controlling in all respects,
Xand all versions of this License in any other language shall
Xbe for accommodation only and shall not be binding on the
Xparties to this License.  All communications and notices
Xmade or given pursuant to this License, and all
Xdocumentation and support to be provided, unless otherwise
Xnoted, shall be in the English language.
X
XPLEASE READ THE TERMS OF THIS LICENSE CAREFULLY.  BY
XCLICKING ON THE "ACCEPT" BUTTON BELOW YOU ARE ACCEPTING AND
XAGREEING TO THE TERMS AND CONDITIONS OF THIS LICENSE WITH
XSUN MICROSYSTEMS, INC.  IF YOU ARE AGREEING TO THIS LICENSE
XON BEHALF OF A COMPANY, YOU REPRESENT THAT YOU ARE
XAUTHORIZED TO BIND THE COMPANY TO SUCH A LICENSE.  WHETHER
XYOU ARE ACTING ON YOUR OWN BEHALF, OR REPRESENTING A
XCOMPANY, YOU MUST BE OF MAJORITY AGE AND BE OTHERWISE
XCOMPETENT TO ENTER INTO CONTRACTS.  IF YOU DO NOT MEET THIS
XCRITERIA OR YOU DO NOT AGREE TO ANY OF THE TERMS AND
XCONDITIONS OF THIS LICENSE, CLICK ON THE REJECT BUTTON TO
XEXIT.
X
XACCEPT REJECT
X
XGLOSSARY
X
X1.  "Commercial Use" means any use (excluding Internal
XDeployment Use) or distribution, directly or indirectly of
XCompliant Covered Code by You to any third party, alone or
Xbundled with any other software or hardware, for direct or
Xindirect commercial or strategic gain or advantage, subject
Xto execution of Attachment D by You and Original
XContributor.
X
X2.  "Community Code" means the Original Code, Upgraded Code,
XError Corrections, Shared Modifications, or any combination
Xthereof.
X
X3.  "Community Webserver(s)" means the webservers designated
Xby Original Contributor for posting Error Corrections and
XShared Modifications.
X
X4.  "Compliant Covered Code" means Covered Code that
Xcomplies with the requirements of the TCK.
X
X5.  "Contributor" means each Licensee that creates or
Xcontributes to the creation of any Error Correction or
XShared Modification.
X
X6.  "Covered Code" means the Original Code, Upgraded Code,
XModifications, or any combination thereof.
X
X7.  "Error Correction" means any change made to Community
XCode which conforms to the Specification and corrects the
Xadverse effect of a failure of Community Code to perform any
Xfunction set forth in or required by the Specifications.
X
X7.  "Executable" means Covered Code that has been converted
Xto a form other than Source Code.
X
X9.  "Extension(s)" means any additional classes or other
Xprogramming code and/or interfaces developed by or for You
Xwhich:  (i) are designed for use with the Technology; (ii)
Xconstitute an API for a library of computing functions or
Xservices; and (iii) are disclosed to third party software
Xdevelopers for the purpose of developing software which
Xinvokes such additional classes or other programming code
Xand/or interfaces.  The foregoing shall not apply to
Xsoftware development by Your subcontractors to be
Xexclusively used by You.
X
X10.  "Intellectual Property Rights" means worldwide
Xstatutory and common law rights associated solely with (i)
Xpatents and patent applications; (ii) works of authorship
Xincluding copyrights, copyright applications, copyright
Xregistrations and "moral rights"; (iii) the protection of
Xtrade and industrial secrets and confidential information;
Xand (iv) divisions, continuations, renewals, and
Xre-issuances of the foregoing now existing or acquired in
Xthe future.
X
X11.  "Internal Deployment Use" means use of Compliant
XCovered Code (excluding Research Use) within Your business
Xor organization only by Your employees and/or agents,
Xsubject to execution of Attachment C by You and Original
XContributor, if required.
X
X12.  "Licensee" means any party that has entered into and
Xhas in effect a version of this License with Original
XContributor.
X
X13.  "Modification(s)" means (i) any change to Covered Code;
X(ii) any new file or other representation of computer
Xprogram statements that contains any portion of Covered
XCode; and/or (iii) any new Source Code implementing any
Xportion of the Specifications.
X
X14.  "Original Code" means the initial Source Code for the
XTechnology as described on the Technology Download Site.
X
X15.  "Original Contributor" means Sun Microsystems, Inc.,
Xits affiliates and its successors and assigns.
X
X16.  "Reformatted Specifications" means any revision to the
XSpecifications which translates or reformats the
XSpecifications (as for example in connection with Your
Xdocumentation) but which does not alter, subset or superset
Xthe functional or operational aspects of the Specifications.
X
X17.  "Research Use" means use and distribution of Covered
XCode only for Your research, development, educational or
Xpersonal and individual use, and expressly excludes Internal
XDeployment Use and Commercial Use.
X
X18.  "SCSL Webpage" means the Sun Community Source license
Xwebpage located at http://sun.com/software/communitysource,
Xor such other url that Sun may designate from time to time.
X
X19.  "Shared Modifications" means Modifications provided by
XYou, at Your option, pursuant to Section 2.2, or received by
XYou from a Contributor pursuant to Section 2.3.
X
X20.  "Source Code" means computer program statements written
Xin any high-level, readable form suitable for modification
Xand development.
X
X21.  "Specifications" means the specifications for the
XTechnology and other documentation, as designated on the
XTechnology Download Site, as may be revised by Original
XContributor from time to time.
X
X22.  "Sun Trademarks" means Original Contributor's SUN,
XJAVA, and JINI trademarks and logos, whether now used or
Xadopted in the future.  
X
X23.  "Technology" means the 
Xtechnology described in Attachment B, and Upgrades.
X
X24.  "Technology Compatibility Kit" or "TCK" means the test
Xprograms, procedures and/or other requirements, designated
Xby Original Contributor for use in verifying compliance of
XCovered Code with the Specifications, in conjunction with
Xthe Original Code and Upgraded Code.  Original Contributor
Xmay, in its sole discretion and from time to time, revise a
XTCK to correct errors and/or omissions and in connection
Xwith Upgrades.
X
X25.  "Technology Download Site" means the site(s) designated
Xby Original Contributor for access to the Original Code,
XUpgraded Code, TCK and Specifications.
X
X26.  "Upgrade(s)" means new versions of Technology
Xdesignated exclusively by Original Contributor as an
X"Upgrade" and released by Original Contributor from time to
Xtime.
X
X27.  "Upgraded Code" means the Source Code for Upgrades,
Xpossibly including Modifications made by Contributors.
X
X28.  "You(r)" means an individual, or a legal entity acting
Xby and through an individual or individuals, exercising
Xrights either under this License or under a future version
Xof this License issued pursuant to Section 4.1.  For legal
Xentities, "You(r)" includes any entity that by majority
Xvoting interest controls, is controlled by, or is under
Xcommon control with You.
X
XATTACHMENT A
X
XREQUIRED NOTICES
X
XATTACHMENT A-1
X
XREQUIRED IN ALL CASES
X
X"The contents of this file, or the files included with this
Xfile, are subject to the current version of Sun Community
XSource License for [fill in name of applicable Technology]
X(the "License"); You may not use this file except in
Xcompliance with the License.  You may obtain a copy of the
XLicense at http://sun.com/software/communitysource.  See the
XLicense for the rights, obligations and limitations
Xgoverning use of the contents of the file.
X
XThe Original and Upgraded Code is [fill in name and version
Xof applicable Technology].  The developer of the Original
Xand Upgraded Code is Sun Microsystems, Inc.  Sun
XMicrosystems, Inc.  owns the copyrights in the portions it
Xcreated.  All Rights Reserved.
X
XContributor(s):
X_______________________________________________
X
XAssociated Test Suite(s) Location:
X________________________________
X
XATTACHMENT A-2
X
XSAMPLE LICENSEE CERTIFICATION
X
X"By clicking the `Agree' button below, You certify that You
Xare a Licensee in good standing under the Sun Community
XSource License, [fill in applicable Technology and Version]
X("License") and that Your access, use and distribution of
Xcode and information You may obtain at this site is subject
Xto the License."
X
XATTACHMENT A-3
X
XREQUIRED STUDENT NOTIFICATION
X
X"This software and related documentation has been obtained
Xby your educational institution subject to the Sun Community
XSource License, [fill in applicable Technology].  You have
Xbeen provided access to the software and related
Xdocumentation for use only in connection with your course
Xwork and research activities as a matriculated student of
Xyour educational institution.  Any other use is expressly
Xprohibited.
X
XTHIS SOFTWARE AND RELATED DOCUMENTATION CONTAINS PROPRIETARY
XMATERIAL OF SUN MICROSYSTEMS, INC, WHICH ARE PROTECTED BY
XVARIOUS INTELLECTUAL PROPERTY RIGHTS.
X
XYou may not use this file except in compliance with the
XLicense.  You may obtain a copy of the License on the web at
Xhttp://sun.com/software/communitysource."
X
XATTACHMENT B
X
XJava(tm) 2 SDK Technology
X
XDescription of "Technology"
X
XJava(tm) 2 SDK Technology v.1.4.1 as described on the
XTechnology Download Site.
X
XATTACHMENT C
X
XINTERNAL DEPLOYMENT USE
X
XThis Attachment C is only effective for the Technology
Xspecified in Attachment B, upon execution of Attachment D
X(Commercial Use License) including the requirement to pay
Xroyalties.  In the event of a conflict between the terms of
Xthis Attachment C and Attachment D, the terms of Attachment
XD shall govern.
X
X1.  Internal Deployment License Grant.  Subject to Your
Xcompliance with Section 2 below, and Section 8.10 of the
XResearch Use license; in addition to the Research Use
Xlicense and the TCK license, Original Contributor grants to
XYou a worldwide, non-exclusive license, to the extent of
XOriginal Contributor's Intellectual Property Rights covering
Xthe Original Code, Upgraded Code and Specifications, to do
Xthe following:
X
Xa) reproduce and distribute internally, Original Code and
XUpgraded Code as part of Compliant Covered Code, and
XSpecifications, for Internal Deployment Use,
X
Xb) compile such Original Code and Upgraded Code, as part of
XCompliant Covered Code, and reproduce and distribute
Xinternally the same in Executable form for Internal
XDeployment Use, and
X
Xc) reproduce and distribute internally, Reformatted
XSpecifications for use in connection with Internal
XDeployment Use.
X
X2.  Additional Requirements and Responsibilities.  In
Xaddition to the requirements and responsibilities described
Xunder Section 3.1 of the Research Use license, and as a
Xcondition to exercising the rights granted under Section 3
Xabove, You agree to the following additional requirements
Xand responsibilities:
X
X2.1 Compatibility.  All Covered Code must be Compliant
XCovered Code prior to any Internal Deployment Use or
XCommercial Use, whether originating with You or acquired
Xfrom a third party.  Successful compatibility testing must
Xbe completed in accordance with the TCK License.  If You
Xmake any further Modifications to any Covered Code
Xpreviously determined to be Compliant Covered Code, you must
Xensure that it continues to be Compliant Covered Code.
X
XATTACHMENT D COMMERCIAL USE LICENSE
X
X1.  Effect.  This Attachment D is effective only if signed
Xbelow by You and Original Contributor, and applies to Your
XCommercial Use of Original Code and Upgraded Code.
X
X2.  Term.  Upon execution of this Attachment D by You and
XOriginal Contributor, this Commercial Use license shall have
Xan initial term of 3 years and shall automatically renew for
Xadditional one year terms unless either party provides
Xnotice to the other no less than 60 days prior to an
Xanniversary date.
X
X3.  Commercial Use License Grant.  Subject to Your
Xcompliance with Section 4 below, Section 8.10 of the
XResearch Use license, and the TCK license; in addition to
Xthe Research Use license, the TCK license, and the Internal
XDeployment Use license, Original Contributor grants to You a
Xworldwide, non-exclusive, non-transferable license, to the
Xextent of Original Contributor's Intellectual Property
XRights covering the Original Code, Upgraded Code and
XSpecifications, to do the following:
X
Xa) reproduce and distribute Compliant Covered Code;
X
Xb) compile Compliant Covered Code and reproduce and
Xdistribute the same in Executable form through multiple
Xtiers of distribution; and
X
Xc) reproduce and distribute Reformatted Specifications in
Xassociation with Compliant Covered Code.
X
X4.  Additional Requirements and Responsibilities.  In
Xaddition to the requirements and responsibilities specified
Xin the Research Use license, the TCK license and the
XInternal Deployment license, and as a condition to
Xexercising the rights granted in Section 3 above, You agree
Xto the following additional requirements and
Xresponsibilities:
X
Xa) Distribution of Source Code.  Source Code of Compliant
XCovered Code may be distributed only to another Licensee of
Xthe same Technology.
X
Xb) Distribution of Executable Code.  You may distribute the
XExecutable version(s) of Compliant Covered Code under a
Xlicense of Your choice, which may contain terms different
Xfrom this License, provided (i) that You are in compliance
Xwith the terms of this License, and (ii) You must make it
Xabsolutely clear that any terms which differ from this
XLicense are offered by You alone, not by Original
XContributor or any other Contributor.
X
Xc) Branding.  Products integrating Compliant Covered Code
Xused for Commercial Use must be branded with the Technology
Xcompliance logo under a separate trademark license required
Xto be executed by You and Original Contributor concurrent
Xwith execution of this Attachment D.
X
X5.  Indemnity/Limitation of Liability.  The provisions of
XSection 7.1 of the Research Use license are superseded by
Xthe following:
X
Xa) Your Indemnity Obligation.  You hereby agree to defend,
Xat Your expense, any legal proceeding brought against
XOriginal Contributor or any Licensee to the extent it is
Xbased on a claim:  (i) that the use, reproduction or
Xdistribution of any of Your Error Corrections or Shared
XModifications is an infringement of a third party trade
Xsecret or a copyright in a country that is a signatory to
Xthe Berne Convention; (ii) arising in connection with any
Xrepresentation, warranty, support, indemnity, liability or
Xother license terms You may offer in connection with any
XCovered Code; or (iii) arising from Your Commercial Use of
XCovered Code, other than a claim covered by Section 5.b)
Xbelow, or a patent claim based solely on Covered Code not
Xprovided by You.  You will pay all damages costs and fees
Xawarded by a court of competent jurisdiction, or such
Xsettlement amount negotiated by You, attributable to such
Xclaim.
X
Xb) Original Contributor's Indemnity Obligation.  Original
XContributor will defend, at its expense, any legal
Xproceeding brought against You, to the extent it is based on
Xa claim that Your authorized Commercial Use of Original Code
Xand Upgraded Code is an infringement of a third party trade
Xsecret or a copyright in a country that is a signatory to
Xthe Berne Convention, and will pay all damages costs and
Xfees awarded by a court of competent jurisdiction, or such
Xsettlement amount negotiated by Original Contributor,
Xattributable to such claim.  The foregoing shall not apply
Xto any claims of intellectual property infringement based
Xupon the combination of code or documentation supplied by
XOriginal Contributor with code, technology or documentation
Xfrom other sources.
X
Xc) Right of Intervention.  Original Contributor will have
Xthe right, but not the obligation, to defend You, at
XOriginal Contributor's expense, in connection with a claim
Xthat Your Commercial Use of Original Code and Upgraded Code
Xis an infringement of a third party patent and will, if
XOriginal Contributor chooses to defend You, pay all damages
Xcosts and fees awarded by a court of competent jurisdiction,
Xor such settlement amount negotiated by Original
XContributor, attributable to such claim.
X
Xd) Prerequisites.  Under Sections 5.b) and c) above, You
Xmust, and under Section 5.a) above, Original Contributor or
Xany Licensee must:  (i) provide notice of the claim promptly
Xto the party providing an indemnity; (ii) give the
Xindemnifying party sole control of the defense and
Xsettlement of the claim; (iii) provide the indemnifying
Xparty, at indemnifying party's expense, all available
Xinformation, assistance and authority to defend; and (iv)
Xnot have compromised or settled such claim or proceeding
Xwithout the indemnifying party's prior written consent.
X
Xe) Additional Remedies.  Should any Original Code, Upgraded
XCode, TCK, Specifications, or Modifications become, or in
Xthe indemnifying party's opinion be likely to become, the
Xsubject of a claim of infringement for which indemnity is
Xprovided above, the indemnifying party may, at its sole
Xoption, attempt to procure on reasonable terms the rights
Xnecessary for the indemnified party to exercise its license
Xrights under this License with respect to the infringing
Xitems, or to modify the infringing items so that they are no
Xlonger infringing without substantially impairing their
Xfunction or performance.  If the indemnifying party is
Xunable to do the foregoing after reasonable efforts, then
Xthe indemnifying party may send a notice of such inability
Xto the indemnified party together with a refund of any
Xlicense fees received by the indemnifying party from the
Xindemnified party for the infringing items applicable to the
Xindemnified party's future use or distribution of such
Xinfringing items, in which case the indemnifying party will
Xnot be liable for any damages resulting from infringing
Xactivity with respect to the infringing items occurring
Xafter such notice and refund.
X
X6.  Support Programs.
X
XSupport to You.  Technical support is not provided to You by
XOriginal Contributor under this License.  You may contract
Xfor one or more support programs from Original Contributor
Xrelating to the Technology which are described on the SCSL
XWebpage.
X
XCustomer Support.  You are responsible for providing
Xtechnical and maintenance support services to Your customers
Xfor Your products and services incorporating the Compliant
XCovered code.
X
X7.  Royalties and Payments.
X
XTechnology specified in Attachment B.
X
XField of Use:____________________
X
XRoyalty per Unit $_____________
X
Xb) Royalty Payments.  Payment of royalties shall be made
Xquarterly, shall be due thirty (30) days following the end
Xof the calendar quarter to which they relate and shall be
Xsubmitted with a written statement documenting the basis for
Xthe royalty calculation.
X
Xc) Taxes.  All payments required by this License shall be
Xmade in United States dollars, are exclusive of taxes, and
XLicensee agrees to bear and be responsible for the payment
Xof all such taxes, including, but not limited to, all sales,
Xuse, rental receipt, personal property or other taxes and
Xtheir equivalents which may be levied or assessed in
Xconnection with this License (excluding only taxes based on
XOriginal Contributor's net income).  To the extent Licensee
Xis required to withhold taxes based upon Original
XContributor's income in any country, You agree to provide
XOriginal Contributor with written evidence of such
Xwithholding, suitable for Original Contributor to obtain a
Xtax credit in the United States.
X
Xd) Records.  You agree to maintain account books and records
Xconsistent with Generally Accepted Accounting Principles
Xappropriate to Your domicile, as may be in effect from time
Xto time, sufficient to allow the correctness of the
Xroyalties required to be paid pursuant to this License to be
Xdetermined.
X
Xe) Audit Rights.  Original Contributor shall have the right
Xto audit such accounts upon reasonable prior notice using an
Xindependent auditor of Original Contributor's choice (the
X"Auditor").  The Auditor shall be bound to keep confidential
Xthe details of Your business affairs and to limit disclosure
Xof the results of any audit to the sufficiency of the
Xaccounts and the amount, if any, of a payment adjustment
Xthat should be made.  Such audits shall not occur more than
Xonce each year (unless discrepancies are discovered in
Xexcess of the five percent (5%) threshold set forth in
XSection 7.f) below, in which case two consecutive quarters
Xper year may be audited).  Except as set forth in Section
X7.f) below, Original Contributor shall bear all costs and
Xexpenses associated with the exercise of its rights to
Xaudit.
X
Xf) Payment Errors.  In the event that any errors in payments
Xshall be determined, such errors shall be corrected by
Xappropriate adjustment in payment for the quarterly period
Xduring which the error is discovered.  In the event of an
Xunderpayment of more than five percent (5%) of the proper
Xamount owed, upon such underpayment being properly
Xdetermined by the Auditor, You agree to reimburse Original
XContributor the amount of the underpayment and all
Xreasonable costs and expenses associated with the exercise
Xof its rights to audit, and interest on the overdue amount
Xat the maximum allowable interest rate from the date of
Xaccrual of such obligation.
X
X8.  Notice of Breach or Infringement.  Each party shall
Xnotify the other immediately in writing when it becomes
Xaware of any breach or violation of the terms of this
XLicense, or when You become aware of any potential or actual
Xinfringement by a third party of the Technology or Sun's
XIntellectual Property Rights therein.
X
X9.  Proprietary Rights Notices.  You may not remove any
Xcopyright notices, trademark notices or other proprietary
Xlegends of Original Contributor or its suppliers contained
Xon or in the Original Code, Upgraded Code and
XSpecifications.
X
X10.  Notices.  All written notices required by this License
Xmust be delivered in person or by means evidenced by a
Xdelivery receipt and will be effective upon receipt by the
Xpersons at the addresses specified below.
X
XOriginal Contributor:  		You:
X
XSun Microsystems, Inc.  	_____________________________
X
X4150 Network Circle 		______________________________
X
XSanta Clara, California 95054 	______________________________
X
XAttn.:  VP, Sun Software and 
XTechnology Sales		______________________________
Xcc:  Legal (Software Sales) 
X
X11.  Disclaimer of Agency.  The relationship created hereby
Xis that of licensor and licensee and the parties hereby
Xacknowledge and agree that nothing herein shall be deemed to
Xconstitute You as a franchisee of Original Contributor.  You
Xhereby waive the benefit of any state or federal statutes
Xdealing with the establishment and regulation of franchises.
X
XAgreed:
X
XYou: 				Original Contributor:
X
X_____________________________ 	Sun Microsystems, Inc.
X(Your Name) 
X
XBy:_________________________	By:_____________________
X
XTitle:_______________________	Title:____________________
X
XDate:______________________ 	Date:____________________
X
XATTACHMENT E TECHNOLOGY COMPATIBILITY KIT
X
XThe following license is effective for the Java(tm)2 SDK
XTechnology Compatibility Kit only upon execution
Xof a separate support agreement between You and Original
XContributor (subject to an annual fee) as described on the
XSCSL Webpage.  The Technology Compatibility Kit for the
XTechnology specified in Attachment B may be accessed at the
XTechnology Download Site only upon execution of the support
Xagreement.
X
X1.  TCK License.
X
Xa) Subject to the restrictions set forth in Section 1.b
Xbelow and Section 8.10 of the Research Use license, in
Xaddition to the Research Use license, Original Contributor
Xgrants to You a worldwide, non-exclusive, non-transferable
Xlicense, to the extent of Original Contributor's
XIntellectual Property Rights in the TCK (without the right
Xto sublicense), to use the TCK to develop and test Covered
XCode.
X
Xb) TCK Use Restrictions.  You are not authorized to create
Xderivative works of the TCK or use the TCK to test any
Ximplementation of the Specification that is not Covered
XCode.  You may not publish your test results or make claims
Xof comparative compatibility with respect to other
Ximplementations of the Specification.  In consideration for
Xthe license grant in Section 1.a above you agree not to
Xdevelop your own tests which are intended to validate
Xconformation with the Specification.
X
X2.  Requirements for Determining Compliance.
X
X2.1 Definitions.
X
Xa) "Added Value" means code which:
X
X(i) has a principal purpose which is substantially different
Xfrom that of the stand-alone Technology;
X
X(ii) represents a significant functional and value
Xenhancement to the Technology;
X
X(iii) operates in conjunction with the Technology; and
X
X(iv) is not marketed as a technology which replaces or
Xsubstitutes for the Technology.
X
Xb) "Java Classes" means the specific class libraries
Xassociated with each Technology defined in Attachment B.
X
Xc) "Java Runtime Interpreter" means the program(s) which
Ximplement the Java virtual machine for the Technology as
Xdefined in the Specification.
X
Xd) "Platform Dependent Part" means those Original Code and
XUpgraded Code files of the Technology which are not in a
X"share" directory or subdirectory thereof.
X
Xe) "Shared Part" means those Original Code and Upgraded Code
Xfiles of the Technology which are identified as "shared" (or
Xwords of similar meaning) or which are in any "share"
Xdirectory or subdirectory thereof, except those files
Xspecifically designated by Original Contributor as
Xmodifiable.
X
Xf) "User's Guide" means the users guide for the TCK which
XSun makes available to You to provide direction in how to
Xrun the TCK and properly interpret the results, as may be
Xrevised by Sun from time to time.
X
X2.2 Development Restrictions.  Compliant Covered Code:
X
Xa) must include Added Value;
X
Xb) must fully comply with the Specifications for the
XTechnology specified in Attachment B;
X
Xc) must include the Shared Part, complete and unmodified;
X
Xd) may not modify the functional behavior of the Java
XRuntime Interpreter or the Java Classes;
X
Xe) may not modify, subset or superset the interfaces of the
XJava Runtime Interpreter or the Java Classes;
X
Xf) may not subset or superset the Java Classes; and
X
Xg) may not modify or extend the required public class or
Xpublic interface declarations whose names begin with "java",
X"javax", "jini", "net.jini", "sun.hotjava", "COM.sun" or
Xtheir equivalents in any subsequent naming convention.
X
X2.3 Compatibility Testing.  Successful compatibility testing
Xmust be completed by You, or at Original Contributor's
Xoption, a third party designated by Original Contributor, to
Xconduct such tests, in accordance with the User's Guide, and
Xusing the most current version of the applicable TCK
Xavailable from Original Contributor one hundred twenty (120)
Xdays (two hundred forty [240] days in the case of silicon
Ximplementations) prior to:  (i) Your Internal Deployment
XUse; and (ii) each release of Compliant Covered Code by You
Xfor Commercial Use.  In the event that You elect to use a
Xversion of Upgraded Code that is newer than that which is
Xrequired under this Section 2.3, then You agree to pass the
Xversion of the TCK that corresponds to such newer version of
XUpgraded Code.
X
X2.4 Test Results.  You agree to provide to Original
XContributor or the third party test facility if applicable,
XYour test results that demonstrate that Covered Code is
XCompliant Covered Code and that Original Contributor may
Xpublish or otherwise distribute such test results.
X
XATTACHMENT F ADDITIONAL REQUIREMENTS AND RESPONSIBILITIES
X
XOriginal Contributor and/or its licensors grant You a non-exclusive and
Xnon-transferable license for the internal use only of any fonts
Xaccompanying the Technology.  Title to fonts and all associated
Xintellectual property rights are retained by Original Contributor
Xand/or its licensors. Unless enforcement is prohibited by applicable law, 
XYou may not modify, decompile, or reverse engineer the fonts. 
XYou may not redistribute the fonts in any form.
X
END-of-javaws/pkg-message
echo c - javaws/files
mkdir -p javaws/files > /dev/null 2>&1
echo x - javaws/files/patch-src::solaris::native::system_md.c
sed 's/^X//' >javaws/files/patch-src::solaris::native::system_md.c << 'END-of-javaws/files/patch-src::solaris::native::system_md.c'
X--- src/solaris/native/system_md.c.orig	Thu Sep  5 10:59:54 2002
X+++ src/solaris/native/system_md.c	Mon May 12 10:58:53 2003
X@@ -8,7 +8,7 @@
X /* Implementation of solaris/linux specific OS layer */
X #include <locale.h>
X #include <wchar.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <langinfo.h>
X #include <iconv.h>
X #include <sys/utsname.h>	/* For os_name */
END-of-javaws/files/patch-src::solaris::native::system_md.c
echo x - javaws/files/patch-build::freebsd::minclude::freebsd.defs
sed 's/^X//' >javaws/files/patch-build::freebsd::minclude::freebsd.defs << 'END-of-javaws/files/patch-build::freebsd::minclude::freebsd.defs'
X--- build/freebsd/minclude/freebsd.defs.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/minclude/freebsd.defs	Mon May 12 10:58:53 2003
X@@ -0,0 +1,50 @@
X+#
X+# @(#)freebsd.defs	1.16 03/05/12
X+# 
X+# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
X+# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
X+#
X+
X+# @(#)freebsd.defs	1.16 03/05/12
X+# these are specific to FreeBSD 5.1-BETA
X+
X+# XXX these need to be passed in from upper level, NOT defined here
X+PREFIX		= /usr/local
X+LOCALBASE	= /usr/local
X+X11BASE         = /usr/X11R6
X+
X+CC             = gcc
X+CPP            = gcc
X+JDK_12         = $(LOCALBASE)/jdk1.4.1
X+MKDIR          = mkdir
X+RM             = rm
X+AR             = ar
X+RANLIB         = ranlib
X+EXEDIR         = $(BUILDDIR)/bin
X+JUMP_EXE       = $(PROTO_DIR)/javawsbin
X+CLASSPATH_SEP  = :
X+PATH_SEP       = /
X+LIBS           = -L$(X11BASE)/lib -L$(LOCALBASE)/lib -lX11 -liconv
X+MD_SRC         = $(TOPDIR)/src/solaris
X+JUMPPLSO       = $(PROTO_DIR)/libjavawspl.so
X+
X+ifdef JPDA
X+   C_FLAGS     = -I$(SHARE_SRC)/native -I$(MD_SRC)/native -I$(SHARE_SRC)/native/jpeg  -DLINUX -DJPDA=$(JPDA)
X+   CC_FLAGS    = -I$(JDK_12)/include -I$(JDK_12)/include/linux -I$(SHARE_SRC)/native -I$(MD_SRC)/native -I$(SHARE_SRC)/native/jpeg -DLINUX -DJPDA=$(JPDA)
X+else
X+   C_FLAGS     = -I$(SHARE_SRC)/native -I$(MD_SRC)/native -I$(SHARE_SRC)/native/jpeg -DLINUX  -s
X+   CC_FLAGS    = -I$(JDK_12)/include -I$(JDK_12)/include/linux -I$(SHARE_SRC)/native -I$(MD_SRC)/native -I$(SHARE_SRC)/native/jpeg -DLINUX  -s
X+endif
X+
X+TAR            = tar
X+CP             = cp
X+RESOURCEDIR    = resources
X+CHMOD          = chmod
X+# XXX
X+PLATFORM_SRC   = $(TOPDIR)/src/linux
X+UNIX_SHARE_SRC = $(TOPDIR)/src/unix
X+ZIP            = $(LOCALBASE)/bin/zip
X+ZIPDASHY       = -y
X+GZIP           = /usr/bin/gzip
X+
X+C_FLAGS	      += -I$(X11BASE)/include -I$(LOCALBASE)/include
END-of-javaws/files/patch-build::freebsd::minclude::freebsd.defs
echo x - javaws/files/patch-build::freebsd::minclude::javaws.cmk
sed 's/^X//' >javaws/files/patch-build::freebsd::minclude::javaws.cmk << 'END-of-javaws/files/patch-build::freebsd::minclude::javaws.cmk'
X--- build/freebsd/minclude/javaws.cmk.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/minclude/javaws.cmk	Mon May 12 10:58:53 2003
X@@ -0,0 +1,36 @@
X+#
X+# @(#)javaws.cmk	1.4 02/07/11
X+# 
X+# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
X+# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
X+#
X+
X+PL_SO_c = \
X+
X+JPEG_c =$(TARGDIR)jdapimin.c \
X+        $(TARGDIR)jdinput.c  \
X+        $(TARGDIR)jcomapi.c  \
X+        $(TARGDIR)jutils.c   \
X+        $(TARGDIR)jcmarker.c \
X+        $(TARGDIR)jmemmgr.c  \
X+        $(TARGDIR)jmemnobs.c \
X+        $(TARGDIR)jdmarker.c \
X+        $(TARGDIR)jdapistd.c \
X+        $(TARGDIR)jerror.c   \
X+        $(TARGDIR)jdmaster.c \
X+        $(TARGDIR)jdpostct.c \
X+        $(TARGDIR)jdmainct.c \
X+        $(TARGDIR)jquant2.c  \
X+        $(TARGDIR)jdcolor.c  \
X+        $(TARGDIR)jdsample.c \
X+        $(TARGDIR)jdphuff.c  \
X+        $(TARGDIR)jdhuff.c   \
X+        $(TARGDIR)jquant1.c  \
X+        $(TARGDIR)jdcoefct.c \
X+        $(TARGDIR)jddctmgr.c \
X+        $(TARGDIR)jidctred.c \
X+        $(TARGDIR)jidctfst.c \
X+        $(TARGDIR)jidctflt.c \
X+        $(TARGDIR)jidctint.c \
X+        $(TARGDIR)jdmerge.c  \
X+
END-of-javaws/files/patch-build::freebsd::minclude::javaws.cmk
echo x - javaws/files/patch-build::freebsd::minclude::javaws.jmk
sed 's/^X//' >javaws/files/patch-build::freebsd::minclude::javaws.jmk << 'END-of-javaws/files/patch-build::freebsd::minclude::javaws.jmk'
X--- build/freebsd/minclude/javaws.jmk.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/minclude/javaws.jmk	Mon May 12 10:58:53 2003
X@@ -0,0 +1,10 @@
X+#
X+# @(#)javaws.jmk	1.7 02/07/11
X+# 
X+# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
X+# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
X+#
X+
X+# @(#)javaws.jmk	1.7 02/07/11
X+
X+PLATFORM_FILES =
END-of-javaws/files/patch-build::freebsd::minclude::javaws.jmk
echo x - javaws/files/patch-build::freebsd::resources::install.sh
sed 's/^X//' >javaws/files/patch-build::freebsd::resources::install.sh << 'END-of-javaws/files/patch-build::freebsd::resources::install.sh'
X--- build/freebsd/resources/install.sh.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/resources/install.sh	Mon May 12 11:22:08 2003
X@@ -0,0 +1,386 @@
X+#!/usr/local/bin/bash
X+
X+#
X+# @(#)install.sh	1.29 02/08/14
X+# 
X+# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
X+# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
X+#
X+
X+# Script to install Java(tm) Web Start and related files.
X+# Run in the directory you wish to have Java Web Start installed.
X+# Besides extracting the files, this will also update
X+# ~/.mailcap and ~/.mime.types accordingly.
X+
X+PATH=/usr/bin:/usr/ucb/bin:/bin
X+
X+# Functions
X+
X+# Untar the attachment
X+extract() {
X+    echo 'Extracting...'
X+    outname=${INSTALLDIR}/temp.tar.Z
X+    tail +387 $0 > $outname
X+    (cd $INSTALLDIR; tar xf temp.tar.Z)
X+    rm -f ${outname}
X+}
X+
X+# Creates the CFG for javasoft
X+createCFGForJS() {
X+    echo 'Creating javaws.cfg...'
X+    echo "javaws.cfg.jre.default = 0" > ${INSTALLDIR}/javaws.cfg
X+
X+    echo "javaws.cfg.jre.0.platform=1.2" >> ${INSTALLDIR}/javaws.cfg
X+    echo "javaws.cfg.jre.0.product=1.4.1" >> ${INSTALLDIR}/javaws.cfg
X+    echo "javaws.cfg.jre.0.path=/usr/local/jdk1.4.1/bin/java" >> ${INSTALLDIR}/javaws.cfg
X+}
X+
X+# Prompt for JDK and create javaws.cfg based on user input
X+createCFGFromUser() {
X+    more <<"EOF"
X+In order to use Java(tm) Web Start you must have a version of Java 2 standard edition
X+installed. If you do not, you can download one from http://java.sun.com.
X+EOF
X+
X+    # Prompt for a default JDK
X+    javaPath=
X+    while [ x${javaPath} = x ]; do
X+	echo "Please enter the path of your installation" \
X+	     "(eg /usr/local/java/jdk1.2):"
X+	read path leftover
X+	if [ ! -d $path ]; then
X+	  echo 'Path is not valid.'
X+	elif [ ! -f ${path}/bin/java ]; then
X+	  echo 'Path does not contain java, please verify it is correct.'
X+	else
X+	  # determine version (notice the redirection here, for whatever reason
X+	  # we send version info to standard error)
X+	  echo "Obtaining version..."
X+	  javaPath=${path}
X+	  version=`${javaPath}/bin/java -version 2>&1 | head -1`
X+	  version=${version#*\"}
X+	  version=${version%%\"*}
X+	  echo "You appear to be running ${version}"
X+	  if [ -z "${version}" ]; then
X+	    echo 'Unable to determine version, please enter it now (eg 1.2):'
X+	    read version leftover
X+	  fi
X+	fi
X+    done
X+
X+    # create javaws.cfg based on version info and javaPath. These are not completey correct.
X+    # The javaws -updateversion will fix them later.
X+    echo 'Creating javaws.cfg...'
X+    echo "javaws.cfg.jre.0.platform=${version}/bin/java" > ${INSTALLDIR}/javaws.cfg
X+    echo "javaws.cfg.jre.0.product=${version}/bin/java" >> ${INSTALLDIR}/javaws.cfg
X+    echo "javaws.cfg.jre.0.path=${javaPath}/bin/java" >> ${INSTALLDIR}/javaws.cfg
X+    echo "javaws.cfg.jre.default = 0" >> ${INSTALLDIR}/javaws.cfg
X+}
X+
X+# Update .mailcap
X+updateMailcap() {
X+    echo 'Updating ~/.mailcap...'
X+    if [ -f ${HOME}/.mailcap ]; then
X+      jGrep=`grep -n  ${MIME_TYPE} ${HOME}/.mailcap`      
X+      if [ -n "$jGrep" ] ; then
X+        # Remove existing entry  - so we are sure the path is right
X+        grep -v ${MIME_TYPE} ${HOME}/.mailcap > ${INSTALLDIR}/.mailcap1
X+        grep -v "# Java Web Start" ${INSTALLDIR}/.mailcap1 > ${INSTALLDIR}/.mailcap2
X+        rm ${INSTALLDIR}/.mailcap1
X+        mv ${INSTALLDIR}/.mailcap2 ${HOME}/.mailcap
X+      fi
X+      # Doesn't contain application/x-java-jnlp-file file, add it.
X+      echo "# Java Web Start" >> ${HOME}/.mailcap
X+      echo "${MIME_TYPE}; $INSTALLDIR/javaws %s" >> ${HOME}/.mailcap
X+    else
X+      # .mailcap doesn't exist, create it.
X+      echo "# Java Web Start" > ${HOME}/.mailcap
X+      echo "${MIME_TYPE}; $INSTALLDIR/javaws %s" >> ${HOME}/.mailcap
X+    fi
X+}
X+
X+# Update .mime.types
X+updateMimeTypes() {
X+    echo 'Updating ~/.mime.types...'
X+    if [ -f ${HOME}/.mime.types ]; then
X+      # the file exists, make sure it contains jnlp
X+      jGrep=`grep ${MIME_TYPE} ${HOME}/.mime.types`
X+      if [ -z "${jGrep}" ]; then
X+	# doesn't contain Javaws, add it
X+	echo "type=${MIME_TYPE} desc=\"Java Web Start\" exts=\"jnlp\"" >> \
X+	     ${HOME}/.mime.types
X+      fi
X+    else
X+      # Doesn't exist so create it, even though if it doesn't exist it
X+      # implies you are not using Communicator, but we'll create it on the
X+      # chance that you do install Communicator.
X+      echo '#--Netscape Communications Corporation MIME Information' > \
X+	   ${HOME}/.mime.types
X+      echo '#Do not delete the above line. It is used to identify the file type.' \
X+	   >> ${HOME}/.mime.types
X+      echo '#mime types added by Netscape Helper' >> ${HOME}/.mime.types
X+      echo 'type=application/x-java-jnlp-file desc="Java Web Start" exts="jnlp"' >> \
X+	   ${HOME}/.mime.types
X+    fi
X+}
X+
X+# Software licensing
X+showLicensing() {
X+more <<"EOF"
X+
X+                            Sun Microsystems, Inc. 
X+                        Binary Code License Agreement
X+
X+READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE
X+TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWARE
X+MEDIA PACKAGE.  BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE
X+TERMS OF THIS AGREEMENT.  IF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY,
X+INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT" BUTTON AT
X+THE END OF THIS AGREEMENT.  IF YOU DO NOT AGREE TO ALL THESE TERMS,
X+PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND
X+OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE "DECLINE" BUTTON
X+AT THE END OF THIS AGREEMENT. 
X+
X+1.  LICENSE TO USE.  Sun grants you a non-exclusive and non-transferable
X+license for the internal use only of the accompanying software and
X+documentation and any error corrections provided by Sun (collectively
X+"Software"), by the number of users and the class of computer hardware for
X+which the corresponding fee has been paid. 
X+
X+2.  RESTRICTIONS.  Software is confidential and copyrighted. Title to
X+Software and all associated intellectual property rights is retained by Sun
X+and/or its licensors.  Except as specifically authorized in any
X+Supplemental License Terms, you may not make copies of Software, other than
X+a single copy of Software for archival purposes.  Unless enforcement is
X+prohibited by applicable law, you may not modify, decompile, or reverse
X+engineer Software.  You acknowledge that Software is not designed, licensed
X+or intended for use in the design, construction, operation or maintenance
X+of any nuclear facility.  Sun disclaims any express or implied warranty of
X+fitness for such uses.  No right, title or interest in or to any trademark,
X+service mark, logo or trade name of Sun or its licensors is granted under
X+this Agreement. 
X+
X+3. LIMITED WARRANTY.  Sun warrants to you that for a period of ninety (90)
X+days from the date of purchase, as evidenced by a copy of the receipt, the
X+media on which Software is furnished (if any) will be free of defects in
X+materials and workmanship under normal use.  Except for the foregoing,
X+Software is provided "AS IS".  Your exclusive remedy and Sun's entire
X+liability under this limited warranty will be at Sun's option to replace
X+Software media or refund the fee paid for Software. 
X+
X+4.  DISCLAIMER OF WARRANTY.  UNLESS SPECIFIED IN THIS AGREEMENT, ALL
X+EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
X+ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
X+OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT THESE
X+DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. 
X+
X+5.  LIMITATION OF LIABILITY.  TO THE EXTENT NOT PROHIBITED BY LAW, IN NO
X+EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR
X+DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
X+DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
X+OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS
X+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.  In no event will Sun's
X+liability to you, whether in contract, tort (including negligence), or
X+otherwise, exceed the amount paid by you for Software under this
X+Agreement.  The foregoing limitations will apply even if the above stated
X+warranty fails of its essential purpose. 
X+
X+6.  Termination.  This Agreement is effective until terminated.  You may
X+terminate this Agreement at any time by destroying all copies of Software. 
X+This Agreement will terminate immediately without notice from Sun if you
X+fail to comply with any provision of this Agreement.  Upon Termination, you
X+must destroy all copies of Software. 
X+
X+7. Export Regulations. All Software and technical data delivered under this
X+Agreement are subject to US export control laws and may be subject to
X+export or import regulations in other countries.  You agree to comply
X+strictly with all such laws and regulations and acknowledge that you have
X+the responsibility to obtain such licenses to export, re-export, or import
X+as may be required after delivery to you. 
X+
X+8.   U.S. Government Restricted Rights.  If Software is being acquired by
X+or on behalf of the U.S. Government or by a U.S. Government prime
X+contractor or subcontractor (at any tier), then the Government's rights in
X+Software and accompanying documentation will be only as set forth in this
X+Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4
X+(for Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and
X+12.212 (for non-DOD acquisitions). 
X+
X+9.  Governing Law.  Any action related to this Agreement will be governed
X+by California law and controlling U.S. federal law.  No choice of law rules
X+of any jurisdiction will apply. 
X+
X+10.  Severability. If any provision of this Agreement is held to be
X+unenforceable, this Agreement will remain in effect with the provision
X+omitted, unless omission would frustrate the intent of the parties, in
X+which case this Agreement will immediately terminate. 
X+
X+11.  Integration.  This Agreement is the entire agreement between you and
X+Sun relating to its subject matter.  It supersedes all prior or
X+contemporaneous oral or written communications, proposals, representations
X+and warranties and prevails over any conflicting or additional terms of any
X+quote, order, acknowledgment, or other communication between the parties
X+relating to its subject matter during the term of this Agreement.  No
X+modification of this Agreement will be binding, unless in writing and
X+signed by an authorized representative of each party. 
X+
X+                         JAVA(TM) WEB START VERSION 1.2.x
X+                            SUPPLEMENTAL LICENSE TERMS
X+
X+These supplemental license terms ("Supplemental Terms") add to or modify
X+the terms of the Binary Code License Agreement (collectively, the
X+"Agreement"). Capitalized terms not defined in these Supplemental Terms
X+shall have the same meanings ascribed to them in the Agreement. These
X+Supplemental Terms shall supersede any inconsistent or conflicting terms in
X+the Agreement, or in any license contained within the Software. 
X+
X+1. Software Internal Use and Development License Grant. Subject to the
X+terms and conditions of this Agreement, including, but not limited to
X+Section 3 (Java Technology Restrictions) of these Supplemental Terms, Sun
X+grants you a non-exclusive, non-transferable, limited license to reproduce
X+internally and use internally the binary form of the Software complete and
X+unmodified for the sole purpose of designing, developing, testing, and
X+running your Java applets and applications intended to run on the Java
X+platform ("Programs"). 
X+
X+2. License to Distribute Software. Subject to the terms and conditions of
X+this Agreement, including, but not limited to Section 3 (Java Technology
X+Restrictions) of these Supplemental Terms, Sun grants you a non-exclusive,
X+non-transferable, limited license to reproduce and distribute the Software
X+in binary code form only, provided that (i) you distribute the Software
X+complete and unmodified and only bundled as part of, and for the sole
X+purpose of running, your Java applets or applications ("Programs"), (ii)
X+the Programs add significant and primary functionality to the Software,
X+(iii) you do not distribute additional software intended to replace any
X+component(s) of the Software, (iv) you do not remove or alter any
X+proprietary legends or notices contained in the Software, (v) you only
X+distribute the Software subject to a license agreement that protects Sun's
X+interests consistent with the terms contained in this Agreement, and (vi)
X+you agree to defend and indemnify Sun and its licensors from and against
X+any damages, costs, liabilities, settlement amounts and/or expenses
X+(including attorneys' fees) incurred in connection with any claim, lawsuit
X+or action by any third party that arises or results from the use or
X+distribution of any and all Programs and/or Software. 
X+
X+3. Java Technology Restrictions. You may not modify the Java Platform
X+Interface ("JPI", identified as classes contained within the "java" package
X+or any subpackages of the "java" package), by creating additional classes
X+within the JPI or otherwise causing the addition to or modification of the
X+classes in the JPI.  In the event that you create an additional class and
X+associated API(s) which (i) extends the functionality of the Java platform,
X+and (ii) is exposed to third party software developers for the purpose of
X+developing additional software which invokes such additional API, you must
X+promptly publish broadly an accurate specification for such API for free
X+use by all developers.  You may not create, or authorize your licensees to
X+create, additional classes, interfaces, or subpackages that are in any way
X+identified as "java", "javax", "sun" or similar convention as specified by
X+Sun in any naming convention designation. 
X+
X+4. Notice of Contents.  Software may contain a Java Runtime Environment
X+(JRE). 
X+
X+5. Notice of Automatic Software Updates from Sun.  You acknowledge that the
X+Software may automatically download, install, and execute applets,
X+applications, software extensions, and updated versions of the Software
X+from Sun ("Software Updates"), which may require you to accept updated
X+terms and conditions for installation. If additional terms and conditions
X+are not presented on installation, the Software Updates will be considered
X+part of the Software and subject to the terms and conditions of the
X+Agreement. 
X+
X+6. Notice of Automatic Downloads. You acknowledge that, by your use of the
X+Software and/or by requesting services that require use of the Software,
X+the Software may automatically download, install, and execute software
X+applications from sources other than Sun ("Other Software"). Sun makes no
X+representations of a relationship of any kind to licensors of Other
X+Software. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL SUN OR ITS
X+LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL,
X+INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED
X+REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE
X+OF OR INABILITY TO USE OTHER SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
X+POSSIBILITY OF SUCH DAMAGES.  
X+
X+7. Limited Warranty.  Any implied warranties on the Software are limited to
X+90 days.  Some states do not allow limitations on duration of an implied
X+warranty, so the above may not apply to you.  This limited warranty gives
X+you specific legal rights.  You may have others, which vary from state to
X+state. 
X+
X+8. Limitation of Liability.   Some states do not allow the exclusion of
X+incidental or consequential damages, so some of the terms of Section 5,
X+Limitation of Liability, above may not be applicable to you. 
X+
X+9. Trademarks and Logos. You acknowledge and agree as between you and Sun
X+that Sun owns the SUN, SOLARIS, JAVA, JINI, FORTE, STAROFFICE, STARPORTAL
X+and iPLANET trademarks and all SUN, SOLARIS, JAVA, JINI, FORTE, STAROFFICE,
X+STARPORTAL and iPLANET-related trademarks, service marks, logos and other
X+brand designations ("Sun Marks"), and you agree to comply with the Sun
X+Trademark and Logo Usage Requirements currently located at
X+http://www.sun.com/policies/trademarks. Any use you make of the Sun Marks
X+inures to Sun's benefit. 
X+
X+10. Source Code. Software may contain source code that is provided solely
X+for reference purposes pursuant to the terms of this Agreement.  Source
X+code may not be redistributed unless expressly provided for in this
X+Agreement. 
X+
X+11. Termination for Infringement. Either party may terminate this Agreement
X+immediately should any Software become, or in either party's opinion be
X+likely to become, the subject of a claim of infringement of any
X+intellectual property right. 
X+
X+For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
X+Santa Clara, California 95054, U.S.A 
X+(LFI#117745/Form ID#011801)
X+EOF
X+agreed=
X+while [ x$agreed = x ]; do
X+    echo
X+    echo "Do you agree to the above license terms? [yes or no] "
X+    read reply leftover
X+    case $reply in
X+	y* | Y*)
X+	    agreed=1;;
X+	n* | N*)
X+    echo "If you don't agree to the license you can't install this sofware";
X+    exit 1;;
X+    esac
X+done
X+}
X+
X+# Updates the version strings in the config file.
X+updateVersions() {
X+    echo 'Determining full JRE versions...'
X+    ${INSTALLDIR}/javaws -updateVersions
X+}
X+
X+
X+# Where to install jn.dtet
X+INSTALLDIR=`pwd`/javaws
X+
X+# Mime type registered under.
X+MIME_TYPE=application/x-java-jnlp-file
X+
X+# Show licensing
X+#showLicensing
X+
X+# Create the install directory
X+if [ ! -d ${INSTALLDIR} ]; then
X+  mkdir ${INSTALLDIR}
X+fi
X+
X+if [ ! -d ${INSTALLDIR} ]; then
X+  echo 'Unable to create javaws directory'
X+  exit 0
X+fi
X+
X+if [ -f /usr/local/jdk1.4.1/bin/java ]; then
X+  createCFGForJS
X+else
X+  createCFGFromUser
X+fi
X+extract
X+updateMailcap
X+updateMimeTypes
X+updateVersions
X+exit 0
END-of-javaws/files/patch-build::freebsd::resources::install.sh
echo x - javaws/files/patch-build::freebsd::resources::javaws
sed 's/^X//' >javaws/files/patch-build::freebsd::resources::javaws << 'END-of-javaws/files/patch-build::freebsd::resources::javaws'
X--- build/freebsd/resources/javaws.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/resources/javaws	Mon May 12 10:58:53 2003
X@@ -0,0 +1,32 @@
X+#!/usr/local/bin/bash
X+
X+# @(#)javaws	1.5 00/08/28
X+#Script to start Java Web Start. Directory that this script is in is added to the
X+#LD_LIBRARY_PATH. JAVAWS_HOME is also set to the directory this script is in,
X+#unless it is already set.
X+
X+PRG=`basename $0` >/dev/null 2>&1
X+APPHOME=`/usr/bin/dirname "$0"`
X+
X+if [ "${APPHOME##/}" = "${APPHOME}" ]; then
X+  # Doesn't start with a /, must be relative
X+  APPHOME=`pwd`/${APPHOME}
X+fi
X+
X+# update LD_LIBRARY_PATH to include the directory containing this file
X+if [ -z "${LD_LIBRARY_PATH}" ]; then
X+  LD_LIBRARY_PATH=${APPHOME}
X+else
X+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${APPHOME}
X+fi
X+
X+export LD_LIBRARY_PATH
X+
X+# Update JAVAWS_HOME to be the directory the script is running from.
X+if [ -z "${JAVAWS_HOME}" ]; then
X+  JAVAWS_HOME=${APPHOME}
X+  export JAVAWS_HOME
X+fi
X+
X+exec ${APPHOME}/javawsbin "$@"
X+
END-of-javaws/files/patch-build::freebsd::resources::javaws
echo x - javaws/files/patch-build::freebsd::GNUmakefile
sed 's/^X//' >javaws/files/patch-build::freebsd::GNUmakefile << 'END-of-javaws/files/patch-build::freebsd::GNUmakefile'
X--- build/freebsd/GNUmakefile.orig	Mon May 12 10:58:53 2003
X+++ build/freebsd/GNUmakefile	Mon May 12 10:58:53 2003
X@@ -0,0 +1,81 @@
X+#
X+# @(#)GNUmakefile	1.25 02/04/01
X+#
X+# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
X+# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
X+#
X+
X+# @(#)GNUmakefile	1.25 02/04/01
X+# Main makefile for build Java Web Start on FreeBSD
X+include ../share/Platform.gmk
X+# Include general solaris definitions
X+include ./minclude/freebsd.defs
X+
X+include ../share/minclude/javaws.unix.jmk
X+
X+include minclude/javaws.jmk
X+
X+# Include shared build directives
X+include ../share/JPDA.gmk
X+BUILDDIR = .
X+include ../share/Defs.gmk
X+include ../share/GNUmakefile
X+
X+# Include source dependencies
X+include minclude/javaws.cmk
X+
X+# Include build directives for unix files
X+include $(BUILDDIR)/../share/GNUmakefile.unix
X+
X+# Release engineering targets
X+include ../share/Release.gmk
X+
X+TAR_FILES = \
X+	javawsbin \
X+	javaws.jar \
X+	javaws.policy \
X+	javaws \
X+	cacerts \
X+	resources
X+
X+#	javaws_launcher.dt
X+
X+ifeq ($(I18N),1)
X+	TAR_FILES += $(I18N_JAR_ABS)
X+endif
X+
X+$(PROTO_DIR)/jump.tar: FRC
X+	cd $(PROTO_DIR); $(TAR) vcf jump.tar $(TAR_FILES)
X+
X+prototype-common:: $(PROTO_DIR)/cacerts
X+	$(CP) -f ../../share/resources/Readme.html $(PROTO_DIR)/readme.html
X+ifdef I18N
X+	for file in $(README_I18N_SRC) ; do \
X+	   fname=`basename $$file`; \
X+	   lname=$(PROTO_DIR)/`echo $$fname | sed s/R/r/`; \
X+	   echo "Copying "$$file" to "$$lname; \
X+	   $(CP) -f $$file $$lname; \
X+	done
X+endif
X+	$(CP) -f ../../share/resources/javalogo52x88.gif $(PROTO_DIR)
X+	$(CP) -f ../../share/resources/sunlogo64x30.gif  $(PROTO_DIR)
X+	$(CP) -f $(RESOURCEDIR)/javaws $(PROTO_DIR)
X+	$(CHMOD) a+x $(PROTO_DIR)/javaws
X+	#$(CP) -f $(RESOURCEDIR)/javaws_launcher.dt $(PROTO_DIR)
X+	#$(CHMOD) a+x $(PROTO_DIR)/javaws_launcher.dt
X+	$(CP) -f $(SHARE_SRC)/config/javaws.policy $(PROTO_DIR)
X+	$(CP) -f $(AU_PATH) $(PROTO_DIR)
X+
X+installer-platform: $(RESOURCEDIR)/install.sh $(PROTO_DIR)/jump.tar
X+	$(CP) -f $(RESOURCEDIR)/install.sh $(PROTO_DIR)/install.sh
X+	$(CHMOD) u+w $(PROTO_DIR)/install.sh
X+	cat $(PROTO_DIR)/jump.tar >> $(PROTO_DIR)/install.sh
X+	$(CHMOD) a-w $(PROTO_DIR)/install.sh
X+	$(CHMOD) a+x $(PROTO_DIR)/install.sh
X+	(cd $(PROTO_DIR); $(ZIP) install.zip \
X+	install.sh readme*.html javalogo52x88.gif sunlogo64x30.gif)
X+	(cd $(PROTO_DIR); $(CHMOD) a+rw readme*.html javalogo52x88.gif sunlogo64x30.gif)
X+
X+dev-platform:
X+
X+FRC:
END-of-javaws/files/patch-build::freebsd::GNUmakefile
echo x - javaws/pkg-plist
sed 's/^X//' >javaws/pkg-plist << 'END-of-javaws/pkg-plist'
Xjavaws/javaws
Xjavaws/javawsbin
Xjavaws/javaws.cfg
Xjavaws/javaws.jar
Xjavaws/javaws.policy
Xjavaws/cacerts
Xjavaws/resources/splash.jpg
Xjavaws/resources/miniSplash.jpg
Xjavaws/resources/copyright.jpg
Xjavaws/resources/messages.properties
X at dirrm javaws/resources
X at dirrm javaws
END-of-javaws/pkg-plist
exit
--- javaws.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list