--- netbeans-6.1.orig/debian/compat +++ netbeans-6.1/debian/compat @@ -0,0 +1 @@ +5 --- netbeans-6.1.orig/debian/rules +++ netbeans-6.1/debian/rules @@ -0,0 +1,178 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +JAVA_HOME=/usr/lib/jvm/java-6-openjdk + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +#package names +pkg-nb := netbeans + +base-apisupport := apisupport1 +base-ide := ide9 +base-java := java2 +base-nb := nb6.1 +base-platform := platform8 + +pkg-apisupport := libnb-$(base-apisupport)-java +pkg-ide := libnb-$(base-ide)-java +pkg-java := libnb-$(base-java)-java + +NBDIR := /usr/share/netbeans +JAVADIR := /usr/share/java + +JHALL_JAR := jhall.jar +JSEARCH_JAR := jsearch.jar +JH_JAR := jh.jar +JNA_JAR := jna.jar +SWINGL_JAR := swing-layout.jar + +NB_SWINGL_JAR := swing-layout-1.0.3.jar +NB_JSEARCH_JAR := jsearch-2.0_05.jar +NB_JH_JAR := jh-2.0_05.jar +NB_JNA_JAR := jna-3.0.2.jar +NB_JSR223_JAR := jsr223-api.jar + +NB_INSTALL_DIR := usr/share/netbeans + +INSTALL := dh_install -p +LINK := dh_link -p + +DEB_INSTALL_MANPAGES_$(pkg-nb) = $(DEB_SRCDIR)/debian/netbeans.1 + +build/$(pkg-nb):: stamp-build-$(pkg-nb) +# This target is here to avoid multiple invocation of build target. +# build/$(pkg-nb) is invoked 2 times when building binary packages. +stamp-build-$(pkg-nb): + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans + ln -sf $(NBDIR)/platform8 $(DEB_SRCDIR)/nbbuild/netbeans/platform8 + + # generate empty javax.script file, so there is something in jsr223 API module + mkdir -p $(DEB_SRCDIR)/libs.jsr223/src/javax/script + echo "package javax.script; class empty { }" > $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + mkdir -p $(DEB_SRCDIR)/libs.jsr223/external + jar cf $(DEB_SRCDIR)/libs.jsr223/external/$(NB_JSR223_JAR) $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + ln -sf $(JAVADIR)/$(SWINGL_JAR) $(DEB_SRCDIR)/o.jdesktop.layout/external/$(NB_SWINGL_JAR) + ln -sf $(JAVADIR)/$(JSEARCH_JAR) $(DEB_SRCDIR)/apisupport.harness/external/$(NB_JSEARCH_JAR) + ln -sf $(JAVADIR)/$(JH_JAR) $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext + ln -sf $(JAVADIR)/jsch.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/jsch-0.1.24.jar + ln -sf $(JAVADIR)/nb-resolver.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/resolver-1.2.jar + ln -sf $(JAVADIR)/ini4j.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/ini4j-0.2.6.jar + ln -sf $(JAVADIR)/freemarker.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/freemarker-2.3.8.jar + ln -sf $(JAVADIR)/svnClientAdapter.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/svnClientAdapter-0.9.23.jar + ln -sf $(JAVADIR)/xercesImpl.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/xerces-2.8.0.jar + ln -sf $(JAVADIR)/lucene-core.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/lucene-core-2.2.0.jar + ln -sf $(JAVADIR)/commons-logging.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/commons-logging-1.0.4.jar + + ln -sf /usr/share/ant/lib $(DEB_SRCDIR)/o.apache.tools.ant.module/external/lib + + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext + ln -sf $(JAVADIR)/javac-api.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/javac-api-nb-7.0-b07.jar + ln -sf $(JAVADIR)/javac-impl.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/javac-impl-nb-7.0-b07.jar + ln -sf $(JAVADIR)/swing-worker.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/swing-worker-1.1.jar + ln -sf $(JAVADIR)/AppFramework.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/appframework-1.0.3.jar + ln -sf $(JAVADIR)/beansbinding.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/beansbinding-1.2.1.jar + ln -sf $(JAVADIR)/junit4.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/junit-4.1.jar + ln -sf $(JAVADIR)/junit.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/junit-3.8.2.jar + + cp $(DEB_SRCDIR)/LICENSE.txt $(DEB_SRCDIR)/ide.branding/release + + ant \ + -Dpermit.jdk6.builds=true \ + -Dbuild.compiler.deprecation=false \ + -Dbuild.compiler.debug=false \ + -Dverify.checkout=false \ + -Dnb.cluster.platform-is-built=true \ + -Dnb.cluster.harness-is-built=true \ + -Do.n.core.dir=$(NBDIR)/$(base-platform) \ + -Dcore.dir=$(NBDIR)/$(base-platform) \ + -Do.n.bootstrap.dir=$(NBDIR)/$(base-platform) \ + -Dopenide.awt.dir=$(NBDIR)/$(base-platform) \ + -Dlibs.beans-binding.classpath=$(JAVADIR)/beansbinding.jar \ + -Dlibs.swing-layout.classpath=$(JAVADIR)/$(SWINGL_JAR) \ + -Dcluster.config=basic \ + -f $(DEB_SRCDIR)/nbbuild/build.xml build-nozip + touch $@ + +install/$(pkg-ide):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/.noautoupdate + $(INSTALL)$(pkg-ide) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/* $(NB_INSTALL_DIR)/$(base-ide) + $(INSTALL)$(pkg-ide) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/.noautoupdate $(NB_INSTALL_DIR)/$(base-ide) + +install/$(pkg-java):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/.noautoupdate + $(INSTALL)$(pkg-java) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/* $(NB_INSTALL_DIR)/$(base-java) + $(INSTALL)$(pkg-java) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/.noautoupdate $(NB_INSTALL_DIR)/$(base-java) + $(LINK)$(pkg-java) usr/share/ant/bin $(NB_INSTALL_DIR)/$(base-java)/ant/bin + $(LINK)$(pkg-java) usr/share/ant/etc $(NB_INSTALL_DIR)/$(base-java)/ant/etc + $(LINK)$(pkg-java) usr/share/ant/lib $(NB_INSTALL_DIR)/$(base-java)/ant/lib + +install/$(pkg-apisupport):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/.noautoupdate + $(INSTALL)$(pkg-apisupport) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/* $(NB_INSTALL_DIR)/$(base-apisupport) + $(INSTALL)$(pkg-apisupport) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/.noautoupdate $(NB_INSTALL_DIR)/$(base-apisupport) + +install/$(pkg-nb):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/.noautoupdate + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/* $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/.noautoupdate $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/bin/* $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/bin + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/CREDITS.html usr/share/$(pkg-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/README.html usr/share/$(pkg-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/netbeans.css usr/share/$(pkg-nb) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-platform) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-platform) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/harness $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/harness + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-apisupport) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-apisupport) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-ide) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-ide) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-java) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-java) + + # Create file marker to avoid displaying license dialog at first IDE start + echo > $(DEB_SRCDIR)/debian/license_accepted + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/license_accepted $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb)/var + + # Install file productid used by autoupdate to report installation type + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/productid $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb)/config + + # Install netbeans.conf + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf etc + $(LINK)$(pkg-nb) /etc/netbeans.conf $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc/netbeans.conf + + # Install netbeans.clusters + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.clusters etc + $(LINK)$(pkg-nb) /etc/netbeans.clusters $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc/netbeans.clusters + + # Save original version of netbeans.conf as postinst patches it + cp $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf.orig + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf.orig $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc + + # Install launcher + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/bin/netbeans usr/bin + + # Install desktop file + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/netbeans.desktop usr/share/applications + + +clean:: + # these files are left by cdbs (a bug?) + -rm -f *.cdbs-config_list + -rm -f $(DEB_SRCDIR)/stamp-build-$(pkg-nb) + -rm -f $(DEB_SRCDIR)/nbbuild/netbeans/$(base-platform) + -rm -f $(DEB_SRCDIR)/o.apache.tools.ant.module/external/lib + ln -sf $(JAVADIR)/$(JH_JAR) $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + ant -Dpermit.jdk6.builds=true -v -f $(DEB_SRCDIR)/nbbuild/build.xml hg-clean + -rm -f $(DEB_SRCDIR)/apisupport.harness/external/$(NB_JSEARCH_JAR) + -rm -f $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + -rm -f $(DEB_SRCDIR)/o.jdesktop.layout/external/$(NB_SWINGL_JAR) + -rm -f $(DEB_SRCDIR)/libs.jsr223/external/$(NB_JSR223_JAR) + -rm -f $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + -rm -f $(DEB_SRCDIR)/libs.jna/external/$(NB_JNA_JAR) + # this file is not deleted by ant real-clean though it should so delete it here + -rm -f $(DEB_SRCDIR)/schema2beans/anttask/s2banttask.jar + -rm -f $(DEB_SRCDIR)/ide.branding/release/LICENSE.txt + -rm -f $(DEB_SRCDIR)/debian/license_accepted + -rm -f $(DEB_SRCDIR)/swingapp/src/org/netbeans/modules/swingapp/resources/CRUDShellApp.zip + -rm -f $(DEB_SRCDIR)/swingapp/src/org/netbeans/modules/swingapp/resources/BasicShellApp.zip --- netbeans-6.1.orig/debian/changelog +++ netbeans-6.1/debian/changelog @@ -0,0 +1,26 @@ +netbeans (6.1-0ubuntu1) intrepid; urgency=low + + * New upstream release. Closes: #253016 + * Updated Standards-Version to 3.8.0 + * Patches updated + * Cleaned up debian/rules + + -- Yulia Novozhilova Tue, 29 Jul 2008 19:43:23 +0400 + +netbeans (6.0.1-0ubuntu2) hardy; urgency=low + + * Bug fix upload (LP: #201332) + - Replace GPLv2 text in debian/copyright by reference to + /usr/share/common-licenses/GPL-2 + - Update dependency to openjdk6 + - Refine package descriptions + - Add IDE Update Center specific to Ubuntu packages + + -- Marek Slama Fri, 07 Mar 2008 18:00:00 +0100 + +netbeans (6.0.1-0ubuntu1) hardy; urgency=low + + * Initial version. (LP: #187708) + + -- Marek Slama Tue, 29 Jan 2008 14:11:22 +0100 + --- netbeans-6.1.orig/debian/control +++ netbeans-6.1/debian/control @@ -0,0 +1,53 @@ +Source: netbeans +Section: devel +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Marek Slama +Build-Depends: debhelper (>=5), cdbs (>=0.4.8), ant (>=1.7.0), ant-optional (>=1.7.0), + openjdk-6-jdk, javahelp2 +Build-Depends-Indep: libswing-layout-java, + libnb-platform8-java (>=6.1), libnb-platform8-devel-java (>=6.1), + libnb-javaparser-java (>=6.1), libnb-svnclientadapter-java (>=6.0.1), + libfreemarker-java, libjsch-java, libnb-resolver-java (>=1.2), + libxerces2-java, liblucene2-java, libappframework-java, + libbeansbinding-java, junit, junit4, libcommons-logging-java, + libini4j-java +Standards-Version: 3.8.0 +Homepage: http://www.netbeans.org + +Package: netbeans +Architecture: all +Section: devel +Depends: libnb-platform8-java (>=6.1), libnb-ide9-java (>=6.1), + libnb-java2-java (>=6.1), libnb-apisupport1-java (>=6.1) +Conflicts: netbeans5.5 +Replaces: netbeans5.5 +Description: Integrated Development Environment + NetBeans Integrated Development Environment for + Java, C/C++, Ruby, UML, etc. + +Package: libnb-ide9-java +Architecture: all +Section: libs +Depends: libnb-platform8-java (>=6.1), libfreemarker-java, libjsch-java, + libnb-resolver-java(>=1.2), libnb-svnclientadapter-java (>=6.0.1), + libxerces2-java, libcommons-logging-java, libini4j-java, liblucene2-java +Description: Common Integrated Development Environment Libraries for NetBeans + Common languages independent libraries for use in the IDE. + +Package: libnb-java2-java +Architecture: all +Section: libs +Depends: openjdk-6-jdk | sun-java6-jdk, libnb-platform8-java (>=6.1), libnb-ide9-java (>=6.1), + libnb-javaparser-java (>=6.1), libappframework-java, ant (>=1.7.0), ant-optional (>=1.7.0), + libbeansbinding-java, junit, junit4 +Description: Common Java Related Libraries for NetBeans + Common libraries for the NetBeans Java IDE. + +Package: libnb-apisupport1-java +Architecture: all +Section: libs +Depends: libnb-platform8-java (>=6.1), libnb-platform8-devel-java (>=6.1), + libnb-ide9-java (>=6.1), libnb-java2-java (>=6.1) +Description: Common NetBeans Platform Development Related Libraries for NetBeans + Common libraries for development of NetBeans Platform modular extensions. --- netbeans-6.1.orig/debian/libnb-ide9-java.dirs +++ netbeans-6.1/debian/libnb-ide9-java.dirs @@ -0,0 +1 @@ +usr/share/netbeans/ide9 --- netbeans-6.1.orig/debian/libnb-apisupport1-java.dirs +++ netbeans-6.1/debian/libnb-apisupport1-java.dirs @@ -0,0 +1 @@ +usr/share/netbeans/apisupport1 --- netbeans-6.1.orig/debian/libnb-java2-java.dirs +++ netbeans-6.1/debian/libnb-java2-java.dirs @@ -0,0 +1 @@ +usr/share/netbeans/java2 --- netbeans-6.1.orig/debian/productid +++ netbeans-6.1/debian/productid @@ -0,0 +1 @@ +NBUBU --- netbeans-6.1.orig/debian/copyright +++ netbeans-6.1/debian/copyright @@ -0,0 +1,436 @@ +This package was debianized by Marek Slama on +22-Jan-2008. + +The current Debian maintainer is Marek Slama + +Upstream downloaded from: + http://core.netbeans.org/files/documents/12/2068/netbeans-6.1-src.tar.gz + +Upstream home page: + http://www.netbeans.org/ + +Copyright: + + - - - - - copyright notice and license for Debian packaging - - - - - + +Copyright 2007-2008 Sun Microsystems, Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + - - - - - copyright notice and license for upstream - - - - - + +Copyright 2007-2008 Sun Microsystems, Inc. + +LICENSE #1: The Common Development and Distribution License +(CDDL), Version 1.0 governs your use of: +NetBeans Platform software. + +LICENSE #2: The GNU General Public License (GPL), Version 2 +with the Classpath exception governs your use of: +NetBeans Platform software + +------------------------------------------------------------ + +LICENSE #1: + +COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + +1. Definitions. + +1.1. Contributor means each individual or entity that creates or +contributes to the creation of Modifications. + +1.2. Contributor Version means the combination of the Original +Software, prior Modifications used by a Contributor (if any), +and the Modifications made by that particular Contributor. + +1.3. Covered Software means (a) the Original Software, or (b) +Modifications, or (c) the combination of files containing +Original Software with files containing Modifications, in each +case including portions thereof. + +1.4. Executable means the Covered Software in any form other +than Source Code. + +1.5. Initial Developer means the individual or entity that first +makes Original Software available under this License. + +1.6. Larger Workmeans a work which combines Covered Software or +portions thereof with code not governed by the terms of this +License. + +1.7. License means this document. + +1.8. Licensable means having the right to grant, to the maximum +extent possible, whether at the time of the initial grant or +subsequently acquired, any and all of the rights conveyed herein. + +1.9. Modifications means the Source Code and Executable form of +any of the following: A. Any file that results from an addition +to, deletion from or modification of the contents of a file +containing Original Software or previous Modifications; B. Any +new file that contains any part of the Original Software or +previous Modification; or C. Any new file that is contributed or +otherwise made available under the terms of this License. + +1.10. Original Software means the Source Code and Executable +form of computer software code that is originally released under +this License. + +1.11. Patent Claims means any patent claim(s), now owned or +hereafter acquired, including without limitation, method, +process, and apparatus claims, in any patent Licensable by +grantor. + +1.12. Source Code means (a) the common form of computer software +code in which modifications are made and (b) associated +documentation included in or with such code. + +1.13. You (or Your) means an individual or a legal entity +exercising rights under, and complying with all of the terms of, +this License. For legal entities, You includes any entity which +controls, is controlled by, or is under common control with You. +For purposes of this definition, control means (a) the power, +direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (b) ownership of +more than fifty percent (50%) of the outstanding shares or +beneficial ownership of such entity. + +2. License Grants. + +2.1. The Initial Developer Grant. Conditioned upon Your +compliance with Section 3.1 below and subject to third party +intellectual property claims, the Initial Developer hereby +grants You a world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Initial Developer, to use, reproduce, +modify, display, perform, sublicense and distribute the Original +Software (or portions thereof), with or without Modifications, +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using or +selling of Original Software, to make, have made, use, practice, +sell, and offer for sale, and/or otherwise dispose of the +Original Software (or portions thereof); + +(c) The licenses granted in Sections 2.1(a) and (b) are +effective on the date Initial Developer first distributes or +otherwise makes the Original Software available to a third party +under the terms of this License; + +(d) Notwithstanding Section 2.1(b) above, no patent license is +granted: (1) for code that You delete from the Original +Software, or (2) for infringements caused by: (i) the +modification of the Original Software, or (ii) the combination +of the Original Software with other software or devices. + +2.2. Contributor Grant. Conditioned upon Your compliance with +Section 3.1 below and subject to third party intellectual +property claims, each Contributor hereby grants You a +world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Contributor to use, reproduce, modify, +display, perform, sublicense and distribute the Modifications +created by such Contributor (or portions thereof), either on an +unmodified basis, with other Modifications, as Covered Software +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using, or +selling of Modifications made by that Contributor either alone +and/or in combination with its Contributor Version (or portions +of such combination), to make, use, sell, offer for sale, have +made, and/or otherwise dispose of: (1) Modifications made by +that Contributor (or portions thereof); and (2) the combination +of Modifications made by that Contributor with its Contributor +Version (or portions of such combination). + +(c) The licenses granted in Sections 2.2(a) and 2.2(b) +areeffective on the date Contributor first distributes or +otherwise makes the Modifications available to a third party. + +(d) Notwithstanding Section 2.2(b) above, no patent license is +granted: (1) for any code that Contributor has deleted from the +Contributor Version; (2) for infringements caused by: (i) third +party modifications of Contributor Version, or (ii) the +combination of Modifications made by that Contributor with other +software (except as part of the Contributor Version) or other +devices; or (3) under Patent Claims infringed by Covered +Software in the absence of Modifications made by that +Contributor. + +3. Distribution Obligations. + +3.1. Availability of Source Code. Any Covered Software that You +distribute or otherwise make available in Executable form must +also be made available in Source Code form and that Source Code +form must be distributed only under the terms of this License. +You must include a copy of this License with every copy of the +Source Code form of the Covered Software You distribute or +otherwise make available. You must inform recipients of any such +Covered Software in Executable form as to how they can obtain +such Covered Software in Source Code form in a reasonable manner +on or through a medium customarily used for software exchange. + +3.2. Modifications. The Modifications that You create or to +which You contribute are governed by the terms of this License. +You represent that You believe Your Modifications are Your +original creation(s) and/or You have sufficient rights to grant +the rights conveyed by this License. + +3.3. Required Notices. You must include a notice in each of Your +Modifications that identifies You as the Contributor of the +Modification. You may not remove or alter any copyright, patent +or trademark notices contained within the Covered Software, or +any notices of licensing or any descriptive text giving +attribution to any Contributor or the Initial Developer. + +3.4. Application of Additional Terms. You may not offer or +impose any terms on any Covered Software in Source Code form +that alters or restricts the applicable version of this License +or the recipients rights hereunder. You may choose to offer, and +to charge a fee for, warranty, support, indemnity or liability +obligations to one or more recipients of Covered +Software. However, you may do so only on Your own behalf, and +not on behalf of the Initial Developer or any Contributor. You +must make it absolutely clear that any such warranty, support, +indemnity or liability obligation is offered by You alone, and +You hereby agree to indemnify the Initial Developer and every +Contributor for any liability incurred by the Initial Developer +or such Contributor as a result of warranty, support, indemnity +or liability terms You offer. + +3.5. Distribution of Executable Versions. You may distribute the +Executable form of the Covered Software under the terms of this +License or under the terms of a license of Your choice, which +may contain terms different from this License, provided that You +are in compliance with the terms of this License and that the +license for the Executable form does not attempt to limit or +alter the recipients rights in the Source Code form from the +rights set forth in this License. If You distribute the Covered +Software in Executable form under a different license, You must +make it absolutely clear that any terms which differ from this +License are offered by You alone, not by the Initial Developer +or Contributor. You hereby agree to indemnify the Initial +Developer and every Contributor for any liability incurred by +the Initial Developer or such Contributor as a result of any +such terms You offer. + +3.6. Larger Works. You may create a Larger Work by combining +Covered Software with other code not governed by the terms of +this License and distribute the Larger Work as a single product. +In such a case, You must make sure the requirements of this +License are fulfilled for the Covered Software. + +4. Versions of the License. + +4.1. New Versions. Sun Microsystems, Inc. is the initial license +steward and may publish revised and/or new versions of this +License from time to time. Each version will be given a +distinguishing version number. Except as provided in Section +4.3, no one other than the license steward has the right to +modify this License. + +4.2. Effect of New Versions. You may always continue to use, +distribute or otherwise make the Covered Software available +under the terms of the version of the License under which You +originally received the Covered Software. If the Initial +Developer includes a notice in the Original Software prohibiting +it from being distributed or otherwise made available under any +subsequent version of the License, You must distribute and make +the Covered Software available under the terms of the version of +the License under which You originally received the Covered +Software. Otherwise, You may also choose to use, distribute or +otherwise make the Covered Software available under the terms of +any subsequent version of the License published by the license +steward. + +4.3. Modified Versions. When You are an Initial Developer and +You want to create a new license for Your Original Software, You +may create and use a modified version of this License if You: +(a) rename the license and remove any references to the name of +the license steward (except to note that the license differs +from this License); and (b) otherwise make it clear that the +license contains terms which differ from this License. + +5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER +THIS LICENSE ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, +WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, +MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED +SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE +DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY +OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, +REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN +ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE +IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. + +6. TERMINATION. + +6.1. This License and the rights granted hereunder will +terminate automatically if You fail to comply with terms herein +and fail to cure such breach within 30 days of becoming aware of +the breach. Provisions which, by their nature, must remain in +effect beyond the termination of this License shall survive. + +6.2. If You assert a patent infringement claim (excluding +declaratory judgment actions) against Initial Developer or a +Contributor (the Initial Developer or Contributor against whom +You assert such claim is referred to as Participant) alleging +that the Participant Software (meaning the Contributor Version +where the Participant is a Contributor or the Original Software +where the Participant is the Initial Developer) directly or +indirectly infringes any patent, then any and all rights granted +directly or indirectly to You by such Participant, the Initial +Developer (if the Initial Developer is not the Participant) and +all Contributors under Sections 2.1 and/or 2.2 of this License +shall, upon 60 days notice from Participant terminate +prospectively and automatically at the expiration of such 60 day +notice period, unless if within such 60 day period You withdraw +Your claim with respect to the Participant Software against such +Participant either unilaterally or pursuant to a written +agreement with Participant. + +6.3. In the event of termination under Sections 6.1 or 6.2 +above, all end user licenses that have been validly granted by +You or any distributor hereunder prior to termination (excluding +licenses granted to You by any distributor) shall survive +termination. + +7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO +LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR +OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER +CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY +SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY +CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST +PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR +MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, +EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY +OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO +LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH +PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH +LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR +LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS +EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. + +8. U.S. GOVERNMENT END USERS. The Covered Software is a +commercial item, as that term is defined in 48 C.F.R. 2.101 +(Oct. 1995), consisting of commercial computer software (as that +term is defined at 48 C.F.R. 252.227-7014(a)(1)) and commercial +computer software documentation as such terms are used in 48 +C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and +48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all +U.S. Government End Users acquire Covered Software with only +those rights set forth herein. This U.S. Government Rights +clause is in lieu of, and supersedes, any other FAR, DFAR, or +other clause or provision that addresses Government rights in +computer software under this License. + +9. MISCELLANEOUS. This License represents the complete agreement +concerning subject matter hereof. If any provision of this +License is held to be unenforceable, such provision shall be +reformed only to the extent necessary to make it enforceable. +This License shall be governed by the law of the jurisdiction +specified in a notice contained within the Original Software +(except to the extent applicable law, if any, provides +otherwise), excluding such jurisdictions conflict-of-law +provisions. Any litigation relating to this License shall be +subject to the jurisdiction of the courts located in the +jurisdiction and venue specified in a notice contained within +the Original Software, with the losing party responsible for +costs, including, without limitation, court costs and reasonable +attorneys fees and expenses. The application of the United +Nations Convention on Contracts for the International Sale of +Goods is expressly excluded. Any law or regulation which +provides that the language of a contract shall be construed +against the drafter shall not apply to this License. You agree +that You alone are responsible for compliance with the United +States export administration regulations (and the export control +laws and regulation of any other countries) when You use, +distribute or otherwise make available any Covered Software. + +10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and +the Contributors, each party is responsible for claims and +damages arising, directly or indirectly, out of its utilization +of rights under this License and You agree to work with Initial +Developer and Contributors to distribute such responsibility on +an equitable basis. Nothing herein is intended or shall be +deemed to constitute any admission of liability. + +---------------------------------------------------------------- + +NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND +DISTRIBUTION LICENSE (CDDL): This code is released under the +CDDL and shall be governed by the laws of the State of +California (excluding conflict-of-law provisions). Any +litigation relating to this License shall be subject to the +jurisdiction of the Federal Courts of the Northern District of +California and the state courts of the State of California, with +venue lying in Santa Clara County, California. + +------------------------------------------------------------ + +LICENSE #2: + +Use of this software is governed by the terms of the license below: + +The GNU General Public License (GPL), Version 2 with the Classpath exception + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +"CLASSPATH" EXCEPTION TO THE GPL VERSION 2 +Certain source files distributed by Sun Microsystems, Inc. are subject +to the following clarification and special exception to the GPL, but +only where Sun has expressly included in the particular source file's +header the words "Sun designates this particular file as subject to +the "Classpath" exception as provided by Sun in the LICENSE file that +accompanied this code." +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole combination. +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent modules, +and to copy and distribute the resulting executable under terms of your +choice, provided that you also meet, for each linked independent module, +the terms and conditions of the license of that module. An independent +module is a module which is not derived from or based on this library. +If you modify this library, you may extend this exception to your version +of the library, but you are not obligated to do so. If you do not wish +to do so, delete this exception statement from your version. --- netbeans-6.1.orig/debian/netbeans.dirs +++ netbeans-6.1/debian/netbeans.dirs @@ -0,0 +1,6 @@ +usr/share/netbeans/6.1/bin +usr/share/netbeans/6.1/etc +usr/share/netbeans/6.1/man +usr/share/netbeans/6.1/nb6.1/var +usr/share/netbeans/6.1/nb6.1/config +etc --- netbeans-6.1.orig/debian/patches/00-copy-build.patch +++ netbeans-6.1/debian/patches/00-copy-build.patch @@ -0,0 +1,152 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/junit/nbproject/project.properties netbeans-6.1.new/junit/nbproject/project.properties +--- netbeans-6.1/junit/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/junit/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -42,9 +42,9 @@ + javadoc.arch=${basedir}/arch.xml + javadoc.apichanges=${basedir}/apichanges.xml + +-release.external/junit-3.8.2.jar=modules/ext/junit-3.8.2.jar +-release.external/junit-3.8.2-api.zip=docs/junit-3.8.2-api.zip +-release.external/junit-4.1.jar=modules/ext/junit-4.1.jar ++#release.external/junit-3.8.2.jar=modules/ext/junit-3.8.2.jar ++#release.external/junit-3.8.2-api.zip=docs/junit-3.8.2-api.zip ++#release.external/junit-4.1.jar=modules/ext/junit-4.1.jar + jnlp.indirect.jars=\ + docs/junit-3.8.2-api.zip,\ + modules/ext/junit*.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.commons_logging/nbproject/project.properties netbeans-6.1.new/libs.commons_logging/nbproject/project.properties +--- netbeans-6.1/libs.commons_logging/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.commons_logging/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,4 +38,4 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/commons-logging-1.0.4.jar=modules/ext/commons-logging-1.0.4.jar ++#release.external/commons-logging-1.0.4.jar=modules/ext/commons-logging-1.0.4.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.freemarker/nbproject/project.properties netbeans-6.1.new/libs.freemarker/nbproject/project.properties +--- netbeans-6.1/libs.freemarker/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.freemarker/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -41,5 +41,5 @@ + + javac.compilerargs=-Xlint:unchecked + javac.source=1.5 +-release.external/freemarker-2.3.8.jar=modules/ext/freemarker-2.3.8.jar ++#release.external/freemarker-2.3.8.jar=modules/ext/freemarker-2.3.8.jar + module.jar.verifylinkageignores=freemarker.((ext.ant.FreemarkerXmlTask)|(template.DefaultObjectWrapper)) +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.ini4j/nbproject/project.properties netbeans-6.1.new/libs.ini4j/nbproject/project.properties +--- netbeans-6.1/libs.ini4j/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.ini4j/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,7 +38,7 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/ini4j-0.2.6.jar=modules/ext/ini4j-0.2.6.jar ++#release.external/ini4j-0.2.6.jar=modules/ext/ini4j-0.2.6.jar + module.jar.verifylinkageignores=org.ini4j.IniPreferencesFactoryListener + + # Fatal error: class javax.servlet.ServletContextListener not found +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.javacapi/nbproject/project.properties netbeans-6.1.new/libs.javacapi/nbproject/project.properties +--- netbeans-6.1/libs.javacapi/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.javacapi/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -44,6 +44,6 @@ + nbm.homepage=http://jackpot.netbeans.org/ + nbm.module.author=Petr Hrebejk, Sun Microsystems, Inc. + spec.version.base=0.6.0 +-release.external/javac-api-nb-7.0-b07.jar=modules/ext/javac-api-nb-7.0-b07.jar ++#release.external/javac-api-nb-7.0-b07.jar=modules/ext/javac-api-nb-7.0-b07.jar + javadoc.arch=${basedir}/arch.xml + module.javadoc.packages=com.sun.source.tree,com.sun.source.util +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.javacimpl/nbproject/project.properties netbeans-6.1.new/libs.javacimpl/nbproject/project.properties +--- netbeans-6.1/libs.javacimpl/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.javacimpl/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -41,7 +41,7 @@ + nbm.homepage=http://jackpot.netbeans.org/ + nbm.module.author=Petr Hrebejk, Sun Microsystems, Inc. + spec.version.base=0.8.0 +-release.external/javac-impl-nb-7.0-b07.jar=modules/ext/javac-impl-nb-7.0-b07.jar ++#release.external/javac-impl-nb-7.0-b07.jar=modules/ext/javac-impl-nb-7.0-b07.jar + javadoc.arch=${basedir}/arch.xml + + +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.jna/nbproject/project.properties netbeans-6.1.new/libs.jna/nbproject/project.properties +--- netbeans-6.1/libs.jna/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.jna/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -37,4 +37,4 @@ + # Version 2 license, then the option applies only if the new code is + # made subject to such option by the copyright holder. + +-release.external/jna-3.0.2.jar=modules/ext/jna-3.0.2.jar ++#release.external/jna-3.0.2.jar=modules/ext/jna-3.0.2.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.jsch/nbproject/project.properties netbeans-6.1.new/libs.jsch/nbproject/project.properties +--- netbeans-6.1/libs.jsch/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.jsch/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,4 +38,4 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/jsch-0.1.24.jar=modules/ext/jsch-0.1.24.jar ++#release.external/jsch-0.1.24.jar=modules/ext/jsch-0.1.24.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.lucene/nbproject/project.properties netbeans-6.1.new/libs.lucene/nbproject/project.properties +--- netbeans-6.1/libs.lucene/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.lucene/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,4 +38,4 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/lucene-core-2.2.0.jar=modules/ext/lucene-core-2.2.0.jar ++#release.external/lucene-core-2.2.0.jar=modules/ext/lucene-core-2.2.0.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.svnClientAdapter/nbproject/project.properties netbeans-6.1.new/libs.svnClientAdapter/nbproject/project.properties +--- netbeans-6.1/libs.svnClientAdapter/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.svnClientAdapter/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -39,7 +39,7 @@ + + is.autoload=true + +-release.external/svnClientAdapter-0.9.23.jar=modules/ext/svnClientAdapter-0.9.23.jar ++#release.external/svnClientAdapter-0.9.23.jar=modules/ext/svnClientAdapter-0.9.23.jar + + # Hidden class found: org.tigris.subversion.svnclientadapter.commandline.CommandLine$CmdArguments in method protected byte[] org.tigris.subversion.svnclientadapter.commandline.SvnCommandLine.execBytes(org.tigris.subversion.svnclientadapter.commandline.CommandLine$CmdArguments,boolean) throws java.lang.Exception in class org.tigris.subversion.svnclientadapter.commandline.SvnCommandLine + # Hidden class found: org.tigris.subversion.svnclientadapter.commandline.CommandLine$CmdArguments in method protected java.lang.String org.tigris.subversion.svnclientadapter.commandline.SvnAdminCommandLine.execString(org.tigris.subversion.svnclientadapter.commandline.CommandLine$CmdArguments,boolean) throws java.lang.Exception in class org.tigris.subversion.svnclientadapter.commandline.SvnAdminCommandLine +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/libs.xerces/nbproject/project.properties netbeans-6.1.new/libs.xerces/nbproject/project.properties +--- netbeans-6.1/libs.xerces/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/libs.xerces/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,5 +38,5 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/xerces-2.8.0.jar=modules/ext/xerces-2.8.0.jar ++#release.external/xerces-2.8.0.jar=modules/ext/xerces-2.8.0.jar + module.jar.verifylinkageignores=org.apache.xerces.util.XMLCatalogResolver +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/o.apache.xml.resolver/nbproject/project.properties netbeans-6.1.new/o.apache.xml.resolver/nbproject/project.properties +--- netbeans-6.1/o.apache.xml.resolver/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/o.apache.xml.resolver/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -38,4 +38,4 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/resolver-1.2.jar=modules/ext/resolver-1.2.jar ++#release.external/resolver-1.2.jar=modules/ext/resolver-1.2.jar +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/o.jdesktop.beansbinding/nbproject/project.properties netbeans-6.1.new/o.jdesktop.beansbinding/nbproject/project.properties +--- netbeans-6.1/o.jdesktop.beansbinding/nbproject/project.properties 2008-06-16 17:52:15.000000000 +0400 ++++ netbeans-6.1.new/o.jdesktop.beansbinding/nbproject/project.properties 2008-06-16 17:57:13.000000000 +0400 +@@ -38,6 +38,6 @@ + # made subject to such option by the copyright holder. + + is.autoload=true +-release.external/beansbinding-1.2.1.jar=modules/ext/beansbinding-1.2.1.jar +-release.external/beansbinding-1.2.1-doc.zip=docs/beansbinding-1.2.1-doc.zip ++#release.external/beansbinding-1.2.1.jar=modules/ext/beansbinding-1.2.1.jar ++#release.external/beansbinding-1.2.1-doc.zip=docs/beansbinding-1.2.1-doc.zip + jnlp.indirect.jars=docs/beansbinding-1.2.1-doc.zip +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/swingapp/nbproject/project.properties netbeans-6.1.new/swingapp/nbproject/project.properties +--- netbeans-6.1/swingapp/nbproject/project.properties 2008-06-16 17:50:32.000000000 +0400 ++++ netbeans-6.1.new/swingapp/nbproject/project.properties 2008-06-16 17:56:43.000000000 +0400 +@@ -1,5 +1,5 @@ +-extra.module.files=modules/ext/appframework-1.0.3.jar,\ +- docs/appframework-1.0.3-doc.zip,\ +- modules/ext/swing-worker-1.1.jar ++#extra.module.files=modules/ext/appframework-1.0.3.jar,\ ++# docs/appframework-1.0.3-doc.zip,\ ++# modules/ext/swing-worker-1.1.jar + jnlp.indirect.jars=docs/appframework-1.0.3-doc.zip + javac.source=1.5 --- netbeans-6.1.orig/debian/patches/40-build-xml.patch +++ netbeans-6.1/debian/patches/40-build-xml.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-new-source/nbbuild/build.xml netbeans-new-source.new/nbbuild/build.xml +--- netbeans-new-source/nbbuild/build.xml 2008-04-21 18:43:38.000000000 +0400 ++++ netbeans-new-source.new/nbbuild/build.xml 2008-06-10 19:36:52.000000000 +0400 +@@ -584,8 +584,6 @@ + + + +- +- + + + --- netbeans-6.1.orig/debian/patches/10-ant-external-build.patch +++ netbeans-6.1/debian/patches/10-ant-external-build.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-new-source/o.apache.tools.ant.module/external/build.xml netbeans-new-source.new/o.apache.tools.ant.module/external/build.xml +--- netbeans-new-source/o.apache.tools.ant.module/external/build.xml 2008-04-21 18:43:38.000000000 +0400 ++++ netbeans-new-source.new/o.apache.tools.ant.module/external/build.xml 2008-06-10 19:17:52.000000000 +0400 +@@ -42,7 +42,7 @@ + --> + + +- ++ + + + --- netbeans-6.1.orig/debian/patches/50-ide-launcher.patch +++ netbeans-6.1/debian/patches/50-ide-launcher.patch @@ -0,0 +1,26 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-new-source/ide/launcher/unix/netbeans netbeans-new-source.new/ide/launcher/unix/netbeans +--- netbeans-new-source/ide/launcher/unix/netbeans 2008-03-26 18:55:01.000000000 +0300 ++++ netbeans-new-source.new/ide/launcher/unix/netbeans 2008-06-10 19:44:30.000000000 +0400 +@@ -54,16 +54,18 @@ + fi + done + +-progdir=`dirname "$PRG"` ++#progdir=`dirname "$PRG"` ++# Patch for Debian/Ubuntu where launcher is in /usr/bin ++progdir=/usr/share/netbeans/6.1/bin + + if [ -f "$progdir"/../etc/netbeans.conf ] ; then + . "$progdir"/../etc/netbeans.conf + fi + + # following should be done just in RPM or Solaris Launcher +-# if [ -f /etc/netbeans.conf ] ; then +-# . /etc/netbeans.conf +-# fi ++ if [ -f /etc/netbeans.conf ] ; then ++ . /etc/netbeans.conf ++ fi + + + # #68373: look for userdir, but do not modify "$@" --- netbeans-6.1.orig/debian/patches/60-small-ide-config.patch +++ netbeans-6.1/debian/patches/60-small-ide-config.patch @@ -0,0 +1,232 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/editor.kit/nbproject/project.xml netbeans-6.1.new/editor.kit/nbproject/project.xml +--- netbeans-6.1/editor.kit/nbproject/project.xml 2008-06-16 17:33:03.000000000 +0400 ++++ netbeans-6.1.new/editor.kit/nbproject/project.xml 2008-06-16 17:36:44.000000000 +0400 +@@ -5,20 +5,20 @@ + + org.netbeans.modules.editor.kit + +- ++ ++ + + org.netbeans.modules.html + +@@ -147,13 +147,13 @@ + 1.13 + + +- ++ + + + +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/form.kit/nbproject/project.xml netbeans-6.1.new/form.kit/nbproject/project.xml +--- netbeans-6.1/form.kit/nbproject/project.xml 2008-06-16 17:33:03.000000000 +0400 ++++ netbeans-6.1.new/form.kit/nbproject/project.xml 2008-06-16 17:36:44.000000000 +0400 +@@ -12,13 +12,13 @@ + 1.22 + + +- ++ + + org.netbeans.modules.i18n.form + +@@ -26,12 +26,12 @@ + 1.21 + + +- ++ + + org.netbeans.modules.java.kit + +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/ide.kit/nbproject/project.xml netbeans-6.1.new/ide.kit/nbproject/project.xml +--- netbeans-6.1/ide.kit/nbproject/project.xml 2008-06-16 17:33:03.000000000 +0400 ++++ netbeans-6.1.new/ide.kit/nbproject/project.xml 2008-06-16 17:36:44.000000000 +0400 +@@ -130,13 +130,13 @@ + 1.11 + + +- ++ + + org.netbeans.modules.ide.branding + +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/java.kit/nbproject/project.xml netbeans-6.1.new/java.kit/nbproject/project.xml +--- netbeans-6.1/java.kit/nbproject/project.xml 2008-06-16 17:33:03.000000000 +0400 ++++ netbeans-6.1.new/java.kit/nbproject/project.xml 2008-06-16 17:37:41.000000000 +0400 +@@ -66,13 +66,13 @@ + 1.6 + + +- ++ + + org.netbeans.modules.java.freeform + +@@ -169,7 +169,7 @@ + 1.1 + + +- ++ + + + +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/nbbuild/cluster.properties netbeans-6.1.new/nbbuild/cluster.properties +--- netbeans-6.1/nbbuild/cluster.properties 2008-06-16 17:33:03.000000000 +0400 ++++ netbeans-6.1.new/nbbuild/cluster.properties 2008-06-16 17:36:44.000000000 +0400 +@@ -231,14 +231,6 @@ + api.xml,\ + classfile,\ + core.ide,\ +- db,\ +- db.core,\ +- db.drivers,\ +- db.kit, \ +- db.mysql, \ +- db.sql.editor,\ +- db.sql.visualeditor,\ +- dbapi,\ + defaults,\ + diff,\ + editor,\ +@@ -263,7 +255,6 @@ + editor.util,\ + extbrowser,\ + gototest,\ +- httpserver,\ + ide.kit,\ + image,\ + jumpto,\ +@@ -300,7 +291,6 @@ + refactoring.api,\ + schema2beans,\ + server,\ +- servletapi,\ + spi.debugger.ui,\ + spi.editor.hints,\ + spi.navigator,\ +@@ -319,7 +309,6 @@ + versioning,\ + versioning.system.cvss,\ + versioning.util,\ +- web.flyingsaucer,\ + xml,\ + xml.axi,\ + xml.catalog,\ +@@ -334,8 +323,7 @@ + xml.tools,\ + xml.wsdl.model,\ + xml.xam,\ +- xml.xdm,\ +- xsl ++ xml.xdm + + nb.cluster.java.dir=java2 + nb.cluster.java.depends=\ +@@ -349,27 +337,19 @@ + ant.kit,\ + api.debugger.jpda,\ + api.java,\ +- beans,\ +- dbschema,\ ++ beans,\ + debugger.jpda,\ + debugger.jpda.ant,\ + debugger.jpda.projects,\ + debugger.jpda.ui,\ +- derby,\ + form,\ +- form.j2ee,\ + form.kit,\ + i18n,\ + i18n.form,\ + j2ee.core.utilities,\ +- j2ee.jpa.refactoring,\ +- j2ee.jpa.verification,\ + j2ee.metadata,\ + j2ee.metadata.model.support,\ +- j2ee.persistence,\ +- j2ee.persistence.kit,\ + j2ee.persistenceapi,\ +- j2ee.toplinklib,\ + java.api.common,\ + java.debug,\ + java.editor,\ +@@ -395,16 +375,10 @@ + junit,\ + libs.javacapi,\ + libs.javacimpl,\ +- libs.springframework,\ + o.apache.tools.ant.module,\ + o.jdesktop.beansbinding,\ + refactoring.java,\ +- spring.beans,\ + swingapp,\ +- websvc.jaxws21,\ +- websvc.jaxws21api,\ +- websvc.serviceapi,\ +- xml.jaxb, \ + xml.tools.java + + nb.cluster.xml.dir=xml2 --- netbeans-6.1.orig/debian/patches/30-parse-project-xml.patch +++ netbeans-6.1/debian/patches/30-parse-project-xml.patch @@ -0,0 +1,11 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java netbeans-6.1.new/nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java +--- netbeans-6.1/nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java 2008-04-21 18:43:38.000000000 +0400 ++++ netbeans-6.1.new/nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java 2008-06-11 20:55:03.000000000 +0400 +@@ -1198,6 +1198,7 @@ + for (File jar : jars) { + if (!jar.isFile()) { + log("Classpath entry " + jar + " does not exist; skipping", Project.MSG_WARN); ++ continue; + } + InputStream is = new FileInputStream(jar); + try { --- netbeans-6.1.orig/debian/patches/20-ant-build.patch +++ netbeans-6.1/debian/patches/20-ant-build.patch @@ -0,0 +1,25 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-new-source/o.apache.tools.ant.module/build.xml netbeans-new-source.new/o.apache.tools.ant.module/build.xml +--- netbeans-new-source/o.apache.tools.ant.module/build.xml 2008-04-21 18:43:38.000000000 +0400 ++++ netbeans-new-source.new/o.apache.tools.ant.module/build.xml 2008-06-10 19:24:03.000000000 +0400 +@@ -75,21 +75,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + --- netbeans-6.1.orig/debian/patches/80-startup-jdk.patch +++ netbeans-6.1/debian/patches/80-startup-jdk.patch @@ -0,0 +1,18 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/core.startup/src/org/netbeans/core/startup/Main.java netbeans-6.1.new/core.startup/src/org/netbeans/core/startup/Main.java +--- netbeans-6.1/core.startup/src/org/netbeans/core/startup/Main.java 2008-05-30 03:09:24.000000000 +0400 ++++ netbeans-6.1.new/core.startup/src/org/netbeans/core/startup/Main.java 2008-07-29 14:41:39.000000000 +0400 +@@ -203,9 +203,11 @@ + System.setProperty ("org.openide.version", "deprecated"); // NOI18N + System.setProperty ("org.openide.major.version", "IDE/1"); // NOI18N + +- // Enforce JDK 1.5+ since we would not work without it. +- if (Dependency.JAVA_SPEC.compareTo(new SpecificationVersion("1.5")) < 0) { // NOI18N +- System.err.println("The IDE requires JDK 5 or higher to run."); // XXX I18N? ++ // Enforce JDK version since we would not work without it. ++ String MIN_JAVA_SPEC = "1.6"; ++ String MIN_JAVA_SPEC_OUT = "6"; ++ if (Dependency.JAVA_SPEC.compareTo(new SpecificationVersion(MIN_JAVA_SPEC)) < 0) { // NOI18N ++ System.err.println("The IDE requires JDK " + MIN_JAVA_SPEC_OUT + " or higher to run."); // XXX I18N? + TopLogging.exit(1); + } + --- netbeans-6.1.orig/debian/patches/70-updatecentre.patch +++ netbeans-6.1/debian/patches/70-updatecentre.patch @@ -0,0 +1,34 @@ +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/updatecenters/src/org/netbeans/modules/updatecenters/resources/Bundle.properties netbeans-6.1.new/updatecenters/src/org/netbeans/modules/updatecenters/resources/Bundle.properties +--- netbeans-6.1/updatecenters/src/org/netbeans/modules/updatecenters/resources/Bundle.properties 2008-05-30 03:11:24.000000000 +0400 ++++ netbeans-6.1.new/updatecenters/src/org/netbeans/modules/updatecenters/resources/Bundle.properties 2008-07-28 23:48:43.000000000 +0400 +@@ -51,8 +51,10 @@ + Services/AutoupdateType/beta-update-provider.instance=NetBeans Beta + Services/AutoupdateType/thirdparty-update-provider.instance=3rd Party Plugins + Services/AutoupdateType/pluginportal-update-provider.instance=Plugin Portal ++Services/AutoupdateType/ubuntu-specific-update-provider.instance=Ubuntu Specific + #NOI18N + URL_Standard=http://updates.netbeans.org/netbeans/updates/6.1/uc/final/stable/catalog.xml.gz?{$netbeans.hash.code} + URL_Beta=http://updates.netbeans.org/netbeans/updates/6.1/uc/final/beta/catalog.xml.gz?{$netbeans.hash.code} + URL_ThirdParty=http://updates.netbeans.org/netbeans/updates/6.1/uc/final/thirdparty/catalog.xml.gz?{$netbeans.hash.code} + URL_PluginPortal=http://plugins.netbeans.org/nbpluginportal/updates/6.1/catalog.xml.gz ++URL_Ubuntu_Specific=http://updates.netbeans.org/netbeans/updates/6.1/uc/final/ubuntu/catalog.xml.gz?{$netbeans.hash.code} +diff -Nur -x '*.orig' -x '*~' netbeans-6.1/updatecenters/src/org/netbeans/modules/updatecenters/resources/mf-layer.xml netbeans-6.1.new/updatecenters/src/org/netbeans/modules/updatecenters/resources/mf-layer.xml +--- netbeans-6.1/updatecenters/src/org/netbeans/modules/updatecenters/resources/mf-layer.xml 2008-05-30 03:11:24.000000000 +0400 ++++ netbeans-6.1.new/updatecenters/src/org/netbeans/modules/updatecenters/resources/mf-layer.xml 2008-07-28 23:50:33.000000000 +0400 +@@ -87,6 +87,16 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + --- netbeans-6.1.orig/debian/netbeans.postinst +++ netbeans-6.1/debian/netbeans.postinst @@ -0,0 +1,37 @@ +#!/bin/sh +# postinst script for netbeans +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + if [ -d /usr/lib/jvm/java-6-sun ] ; then + sed "s/#netbeans_jdkhome=\"\/path\/to\/jdk\"/netbeans_jdkhome=\"\/usr\/lib\/jvm\/java-6-sun\"/" /etc/netbeans.conf > /etc/netbeans.conf.patch + mv /etc/netbeans.conf.patch /etc/netbeans.conf + elif [ -d /usr/lib/jvm/java-6-openjdk ] ; then + sed "s/#netbeans_jdkhome=\"\/path\/to\/jdk\"/netbeans_jdkhome=\"\/usr\/lib\/jvm\/java-6-openjdk\"/" /etc/netbeans.conf > /etc/netbeans.conf.patch + mv /etc/netbeans.conf.patch /etc/netbeans.conf + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- netbeans-6.1.orig/debian/rules.tabs +++ netbeans-6.1/debian/rules.tabs @@ -0,0 +1,179 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +JAVA_HOME=/usr/lib/jvm/java-6-openjdk + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +#package names +pkg-nb := netbeans + +base-apisupport := apisupport1 +base-ide := ide9 +base-java := java2 +base-nb := nb6.1 +base-platform := platform8 + +pkg-apisupport := libnb-$(base-apisupport)-java +pkg-ide := libnb-$(base-ide)-java +pkg-java := libnb-$(base-java)-java + +NBDIR := /usr/share/netbeans +JAVADIR := /usr/share/java + +JHALL_JAR := jhall.jar +JSEARCH_JAR := jsearch.jar +JH_JAR := jh.jar +JNA_JAR := jna.jar +SWINGL_JAR := swing-layout.jar + +NB_SWINGL_JAR := swing-layout-1.0.3.jar +NB_JSEARCH_JAR := jsearch-2.0_05.jar +NB_JH_JAR := jh-2.0_05.jar +NB_JNA_JAR := jna-3.0.2.jar +NB_JSR223_JAR := jsr223-api.jar + +NB_INSTALL_DIR := usr/share/netbeans + +INSTALL := dh_install -p +LINK := dh_link -p + + +DEB_INSTALL_MANPAGES_$(pkg-nb) = $(DEB_SRCDIR)/debian/netbeans.1 + +build/$(pkg-nb):: stamp-build-$(pkg-nb) +# This target is here to avoid multiple invocation of build target. +# build/$(pkg-nb) is invoked 2 times when building binary packages. +stamp-build-$(pkg-nb): + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans + ln -sf $(NBDIR)/platform8 $(DEB_SRCDIR)/nbbuild/netbeans/platform8 + + # generate empty javax.script file, so there is something in jsr223 API module + mkdir -p $(DEB_SRCDIR)/libs.jsr223/src/javax/script + echo "package javax.script; class empty { }" > $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + mkdir -p $(DEB_SRCDIR)/libs.jsr223/external + jar cf $(DEB_SRCDIR)/libs.jsr223/external/$(NB_JSR223_JAR) $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + ln -sf $(JAVADIR)/$(SWINGL_JAR) $(DEB_SRCDIR)/o.jdesktop.layout/external/$(NB_SWINGL_JAR) + ln -sf $(JAVADIR)/$(JSEARCH_JAR) $(DEB_SRCDIR)/apisupport.harness/external/$(NB_JSEARCH_JAR) + ln -sf $(JAVADIR)/$(JH_JAR) $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext + ln -sf $(JAVADIR)/jsch.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/jsch-0.1.24.jar + ln -sf $(JAVADIR)/nb-resolver.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/resolver-1.2.jar + ln -sf $(JAVADIR)/ini4j.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/ini4j-0.2.6.jar + ln -sf $(JAVADIR)/freemarker.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/freemarker-2.3.8.jar + ln -sf $(JAVADIR)/svnClientAdapter.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/svnClientAdapter-0.9.23.jar + ln -sf $(JAVADIR)/xercesImpl.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/xerces-2.8.0.jar + ln -sf $(JAVADIR)/lucene-core.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/lucene-core-2.2.0.jar + ln -sf $(JAVADIR)/commons-logging.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/modules/ext/commons-logging-1.0.4.jar + + ln -sf /usr/share/ant/lib $(DEB_SRCDIR)/o.apache.tools.ant.module/external/lib + + mkdir -p $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext + ln -sf $(JAVADIR)/javac-api.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/javac-api-nb-7.0-b07.jar + ln -sf $(JAVADIR)/javac-impl.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/javac-impl-nb-7.0-b07.jar + ln -sf $(JAVADIR)/swing-worker.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/swing-worker-1.1.jar + ln -sf $(JAVADIR)/AppFramework.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/appframework-1.0.3.jar + ln -sf $(JAVADIR)/beansbinding.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/beansbinding-1.2.1.jar + ln -sf $(JAVADIR)/junit4.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/junit-4.1.jar + ln -sf $(JAVADIR)/junit.jar $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/modules/ext/junit-3.8.2.jar + + cp $(DEB_SRCDIR)/LICENSE.txt $(DEB_SRCDIR)/ide.branding/release + + ant \ + -Dpermit.jdk6.builds=true \ + -Dbuild.compiler.deprecation=false \ + -Dbuild.compiler.debug=false \ + -Dverify.checkout=false \ + -Dnb.cluster.platform-is-built=true \ + -Dnb.cluster.harness-is-built=true \ + -Do.n.core.dir=$(NBDIR)/$(base-platform) \ + -Dcore.dir=$(NBDIR)/$(base-platform) \ + -Do.n.bootstrap.dir=$(NBDIR)/$(base-platform) \ + -Dopenide.awt.dir=$(NBDIR)/$(base-platform) \ + -Dlibs.beans-binding.classpath=$(JAVADIR)/beansbinding.jar \ + -Dlibs.swing-layout.classpath=$(JAVADIR)/$(SWINGL_JAR) \ + -Dcluster.config=basic \ + -f $(DEB_SRCDIR)/nbbuild/build.xml build-nozip + touch $@ + +install/$(pkg-ide):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/.noautoupdate + $(INSTALL)$(pkg-ide) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/* $(NB_INSTALL_DIR)/$(base-ide) + $(INSTALL)$(pkg-ide) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-ide)/.noautoupdate $(NB_INSTALL_DIR)/$(base-ide) + +install/$(pkg-java):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/.noautoupdate + $(INSTALL)$(pkg-java) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/* $(NB_INSTALL_DIR)/$(base-java) + $(INSTALL)$(pkg-java) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-java)/.noautoupdate $(NB_INSTALL_DIR)/$(base-java) + $(LINK)$(pkg-java) usr/share/ant/bin $(NB_INSTALL_DIR)/$(base-java)/ant/bin + $(LINK)$(pkg-java) usr/share/ant/etc $(NB_INSTALL_DIR)/$(base-java)/ant/etc + $(LINK)$(pkg-java) usr/share/ant/lib $(NB_INSTALL_DIR)/$(base-java)/ant/lib + +install/$(pkg-apisupport):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/.noautoupdate + $(INSTALL)$(pkg-apisupport) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/* $(NB_INSTALL_DIR)/$(base-apisupport) + $(INSTALL)$(pkg-apisupport) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-apisupport)/.noautoupdate $(NB_INSTALL_DIR)/$(base-apisupport) + +install/$(pkg-nb):: + echo > $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/.noautoupdate + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/* $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/$(base-nb)/.noautoupdate $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/bin/* $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/bin + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/CREDITS.html usr/share/$(pkg-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/README.html usr/share/$(pkg-nb) + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/netbeans.css usr/share/$(pkg-nb) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-platform) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-platform) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/harness $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/harness + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-apisupport) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-apisupport) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-ide) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-ide) + $(LINK)$(pkg-nb) $(NB_INSTALL_DIR)/$(base-java) $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-java) + + # Create file marker to avoid displaying license dialog at first IDE start + echo > $(DEB_SRCDIR)/debian/license_accepted + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/license_accepted $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb)/var + + # Install file productid used by autoupdate to report installation type + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/productid $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/$(base-nb)/config + + # Install netbeans.conf + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf etc + $(LINK)$(pkg-nb) /etc/netbeans.conf $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc/netbeans.conf + + # Install netbeans.clusters + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.clusters etc + $(LINK)$(pkg-nb) /etc/netbeans.clusters $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc/netbeans.clusters + + # Save original version of netbeans.conf as postinst patches it + cp $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf.orig + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/etc/netbeans.conf.orig $(NB_INSTALL_DIR)/$(DEB_UPSTREAM_VERSION)/etc + + # Install launcher + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/nbbuild/netbeans/bin/netbeans usr/bin + + # Install desktop file + $(INSTALL)$(pkg-nb) $(DEB_SRCDIR)/debian/netbeans.desktop usr/share/applications + + +clean:: + # these files are left by cdbs (a bug?) + -rm -f *.cdbs-config_list + -rm -f $(DEB_SRCDIR)/stamp-build-$(pkg-nb) + -rm -f $(DEB_SRCDIR)/nbbuild/netbeans/$(base-platform) + -rm -f $(DEB_SRCDIR)/o.apache.tools.ant.module/external/lib + ln -sf $(JAVADIR)/$(JH_JAR) $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + ant -Dpermit.jdk6.builds=true -v -f $(DEB_SRCDIR)/nbbuild/build.xml hg-clean + -rm -f $(DEB_SRCDIR)/apisupport.harness/external/$(NB_JSEARCH_JAR) + -rm -f $(DEB_SRCDIR)/javahelp/external/$(NB_JH_JAR) + -rm -f $(DEB_SRCDIR)/o.jdesktop.layout/external/$(NB_SWINGL_JAR) + -rm -f $(DEB_SRCDIR)/libs.jsr223/external/$(NB_JSR223_JAR) + -rm -f $(DEB_SRCDIR)/libs.jsr223/src/javax/script/empty.java + -rm -f $(DEB_SRCDIR)/libs.jna/external/$(NB_JNA_JAR) + # this file is not deleted by ant real-clean though it should so delete it here + -rm -f $(DEB_SRCDIR)/schema2beans/anttask/s2banttask.jar + -rm -f $(DEB_SRCDIR)/ide.branding/release/LICENSE.txt + -rm -f $(DEB_SRCDIR)/debian/license_accepted + -rm -f $(DEB_SRCDIR)/swingapp/src/org/netbeans/modules/swingapp/resources/CRUDShellApp.zip + -rm -f $(DEB_SRCDIR)/swingapp/src/org/netbeans/modules/swingapp/resources/BasicShellApp.zip --- netbeans-6.1.orig/debian/netbeans.1 +++ netbeans-6.1/debian/netbeans.1 @@ -0,0 +1,95 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" The first parameter, NAME, should be all caps +.\" The second parameter, SECTION, should be 1-8, maybe with subsection +.\" Other parameters are allowed: see man(7), man(1) +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.TH "NETBEANS" "1" "January 18, 2008" "" "Java IDE and More" +.SH "NAME" +NetBeans \- Java IDE +.SH "SYNOPSIS" +.LP +.nf +\f3 +.fl +\fP\f3netbeans\fP [ \f2options\fP ] [ \f2files\fP ] +.br + +.fl +.fi + +.LP +.SH "PARAMETERS" +.LP + +.LP +.TP 3 +options +Command\-line options. +.TP 3 +files +Files to be opened in NetBeans IDE. +.LP +.SH "DESCRIPTION" +.B NetBeans +is a cross\-platform IDE written in Java. It supports development in Java, and support for other languages can be added. The whole IDE is built around a core framework with APIs, and features are implemented in the form of plugin modules. This clean, modular architecture makes NetBeans a good platform for building development tools and custom IDEs. +.SH "OPTIONS" +.LP +General options: +.TP 3 +\-\-help +List available command line options +.TP 3 +\-\-jdkhome +Path to JDK home used to run IDE +.TP 3 +\-J +Pass to JVM +.TP 3 +\-\-cp:p +Prepend to classpath +.TP 3 +\-\-cp:a +Append to classpath +.LP +Core options: +.TP 3 + \-\-laf +Use given LookAndFeel class instead of the default +.TP 3 + \-\-fontsize +Set the base font size of the user interface, in points +.TP 3 + \-\-locale +Use specified locale +.TP 3 + \-\-userdir +Use specified directory to store user settings +.LP +Module reload options: +.TP 3 + \-\-reload /path/to/module.jar +Installs or reinstalls a module JAR file. +.LP +OpenFile module options: +.TP 3 + \-\-open FILE +Open FILE. +.TP 3 + \-\-open FILE:LINE +Open FILE at line LINE (starting from 1). +.SH "AUTHOR" +NetBeans was written by the NetBeans Community . +.PP +This manual page was written by Marek Slama , +for the Debian project (but may be used by others). --- netbeans-6.1.orig/debian/netbeans.desktop +++ netbeans-6.1/debian/netbeans.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=NetBeans IDE 6.1 +Comment=Integrated Development Environment +TryExec=/usr/bin/netbeans +Exec=/usr/bin/netbeans +Icon=/usr/share/netbeans/6.1/nb6.1/netbeans.png +Categories=Development;Java;IDE; +Terminal=false +Type=Application +StartupNotify=true