--- azureus-2.5.0.4.orig/com/aelitis/azureus/ui/swt/Initializer.java +++ azureus-2.5.0.4/com/aelitis/azureus/ui/swt/Initializer.java @@ -35,7 +35,6 @@ import org.gudy.azureus2.ui.swt.pluginsinstaller.InstallPluginWizard; import org.gudy.azureus2.ui.swt.progress.ProgressWindow; import org.gudy.azureus2.ui.swt.update.UpdateMonitor; -import org.gudy.azureus2.ui.swt.updater2.SWTUpdateChecker; import com.aelitis.azureus.core.*; import com.aelitis.azureus.core.messenger.config.PlatformConfigMessenger; @@ -100,8 +99,6 @@ new MainWindow(core, Display.getDefault(), splash); - SWTUpdateChecker.initialize(); - UpdateMonitor.getSingleton(core); // setup the update monitor //Tell listeners that all is initialized : --- azureus-2.5.0.4.orig/org/gudy/azureus2/platform/PlatformManagerFactory.java +++ azureus-2.5.0.4/org/gudy/azureus2/platform/PlatformManagerFactory.java @@ -45,6 +45,7 @@ if ( platform_manager == null ){ +/* try{ if ( getPlatformType() == PlatformManager.PT_WINDOWS ){ @@ -67,6 +68,7 @@ Debug.printStackTrace(e); } +*/ } if ( platform_manager == null ){ --- azureus-2.5.0.4.orig/org/gudy/azureus2/pluginsimpl/local/PluginInitializer.java +++ azureus-2.5.0.4/org/gudy/azureus2/pluginsimpl/local/PluginInitializer.java @@ -121,6 +121,7 @@ "azbpmagnet", "Magnet URI Handler", "true" }, +/* { PluginManagerDefaults.PID_CORE_UPDATE_CHECKER, "org.gudy.azureus2.update.CoreUpdateChecker", "azbpcoreupdater", @@ -136,6 +137,7 @@ "azplatform2", "azplatform2", "true" }, +*/ //{ PluginManagerDefaults.PID_JPC, // "com.aelitis.azureus.plugins.jpc.JPCPlugin", // "azjpc", --- azureus-2.5.0.4.orig/org/gudy/azureus2/ui/swt/mainwindow/Initializer.java +++ azureus-2.5.0.4/org/gudy/azureus2/ui/swt/mainwindow/Initializer.java @@ -41,7 +41,6 @@ import org.gudy.azureus2.ui.swt.pluginsinstaller.InstallPluginWizard; import org.gudy.azureus2.ui.swt.progress.ProgressWindow; import org.gudy.azureus2.ui.swt.update.UpdateMonitor; -import org.gudy.azureus2.ui.swt.updater2.SWTUpdateChecker; import java.util.ArrayList; import java.util.Iterator; @@ -255,8 +254,6 @@ reportCurrentTaskByKey( "splash.openViews"); - SWTUpdateChecker.initialize(); - UpdateMonitor.getSingleton( core ); // setup the update monitor //Tell listeners that all is initialized : --- azureus-2.5.0.4.orig/debian/watch +++ azureus-2.5.0.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://heanet.dl.sourceforge.net/sourceforge/azureus/ Azureus_([0-9.]*)_source\.zip --- azureus-2.5.0.4.orig/debian/rules +++ azureus-2.5.0.4/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +build: + make + +clean: + dh_clean + make clean + +binary-indep binary: build + dh_clean -k + dh_install -i + dh_installchangelogs -i ChangeLog.txt + dh_installdocs -i + dh_installman -i + dh_installmenu -i + dh_compress -i + dh_desktop -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: + +.PHONY: build clean binary-indep binary-arch binary --- azureus-2.5.0.4.orig/debian/copyright +++ azureus-2.5.0.4/debian/copyright @@ -0,0 +1,24 @@ +This package was Debianised by Shaun Jackman on +2005-01-03. + +This package was downloaded from http://azureus.sourceforge.net/. + +Upstream Author: Olivier Chalouhi + +Copyright 2006 Aelitis + +This package 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; version 2 dated June, 1991. + +This package 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 systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- azureus-2.5.0.4.orig/debian/manpages +++ azureus-2.5.0.4/debian/manpages @@ -0,0 +1 @@ +debian/azureus.1 --- azureus-2.5.0.4.orig/debian/azureus.xpm +++ azureus-2.5.0.4/debian/azureus.xpm @@ -0,0 +1,295 @@ +/* XPM */ +static char *azureus[] = { +/* columns rows colors chars-per-pixel */ +"32 32 257 2", +" c #000000", +". c #03030A", +"X c #07090C", +"o c #0A0A0C", +"O c #000712", +"+ c #03041C", +"@ c #080716", +"# c #0D0E13", +"$ c #090E1B", +"% c #02101E", +"& c #0F1016", +"* c #0D131E", +"= c #100F13", +"- c #121216", +"; c #16161B", +": c #18171D", +"> c #1A191E", +", c #030521", +"< c #00032A", +"1 c #000C23", +"2 c #000D28", +"3 c #0B0B2D", +"4 c #0A0922", +"5 c #000732", +"6 c #000835", +"7 c #020C3C", +"8 c #0B1526", +"9 c #09172C", +"0 c #0F1824", +"q c #021439", +"w c #001F39", +"e c #081B32", +"r c #0B1F38", +"t c #131622", +"y c #141822", +"u c #141C2D", +"i c #1E1D24", +"p c #1A1E2D", +"a c #131C31", +"s c #1B1C3B", +"d c #1D202A", +"f c #17243E", +"g c #1F2439", +"h c #1E283D", +"j c #201F26", +"k c #23222A", +"l c #23273B", +"z c #262838", +"x c #292C3C", +"c c #33313D", +"v c #0D0C47", +"b c #020457", +"n c #010158", +"m c #000C54", +"M c #020D5B", +"N c #0B0E53", +"B c #021042", +"V c #031A58", +"C c #0F1C53", +"Z c #110F5F", +"A c #161B48", +"S c #1B1A42", +"D c #151942", +"F c #12165B", +"G c #010463", +"H c #02076C", +"J c #000B66", +"K c #000B68", +"L c #01037D", +"P c #020F7A", +"I c #020E73", +"U c #001F66", +"Y c #021B6C", +"T c #0B1E6E", +"R c #011473", +"E c #03137D", +"W c #021A72", +"Q c #02187A", +"! c #08157E", +"~ c #0E1C73", +"^ c #0F1C7C", +"/ c #121B62", +"( c #12197C", +") c #032147", +"_ c #0D2848", +"` c #002453", +"' c #00235A", +"] c #0A265C", +"[ c #0C2A56", +"{ c #0C285B", +"} c #0D2452", +"| c #152544", +" . c #17214C", +".. c #1D2A4A", +"X. c #172550", +"o. c #14255E", +"O. c #152B56", +"+. c #132B5A", +"@. c #182556", +"#. c #133056", +"$. c #1C3051", +"%. c #18335B", +"&. c #022164", +"*. c #042368", +"=. c #0A2462", +"-. c #0F2368", +";. c #012877", +":. c #0D207F", +">. c #0F2877", +",. c #003563", +"<. c #00326F", +"1. c #00377D", +"2. c #122563", +"3. c #102D6D", +"4. c #1A226D", +"5. c #12287A", +"6. c #12227A", +"7. c #133363", +"8. c #242D45", +"9. c #232F4C", +"0. c #202358", +"q. c #262C51", +"w. c #2B3042", +"e. c #2A3358", +"r. c #293B5F", +"t. c #373441", +"y. c #393643", +"u. c #39374C", +"i. c #3B3946", +"p. c #3F3C4B", +"a. c #373557", +"s. c #34335D", +"d. c #373953", +"f. c #3C3C51", +"g. c #3B395F", +"h. c #232262", +"j. c #292E62", +"k. c #292A69", +"l. c #202273", +"z. c #202C79", +"x. c #2B2876", +"c. c #283966", +"v. c #2E346B", +"b. c #213D7A", +"n. c #363360", +"m. c #3A3760", +"M. c #00487F", +"N. c #423F4E", +"B. c #423F50", +"V. c #474747", +"C. c #43404E", +"Z. c #4A4A4A", +"A. c #464352", +"S. c #4E4E50", +"D. c #525458", +"F. c #67666C", +"G. c #6B6A71", +"H. c #7E7E7E", +"J. c #020C8A", +"K. c #030590", +"L. c #03049C", +"P. c #030A92", +"I. c #080893", +"U. c #0A0D9C", +"Y. c #051683", +"T. c #05128B", +"R. c #021B83", +"E. c #011988", +"W. c #0B138C", +"Q. c #0B1882", +"!. c #031494", +"~. c #02119F", +"^. c #021C9E", +"/. c #121185", +"(. c #1C1A86", +"). c #10159A", +"_. c #141295", +"`. c #020CA6", +"'. c #0214A2", +"]. c #0218A9", +"[. c #1011A8", +"{. c #022184", +"}. c #022E97", +"|. c #022694", +" X c #013089", +".X c #013294", +"XX c #01379D", +"oX c #13208F", +"OX c #1D2595", +"+X c #0224A8", +"@X c #022AAF", +"#X c #0826B0", +"$X c #0135A3", +"%X c #0830A8", +"&X c #023CA5", +"*X c #0236B4", +"=X c #003DB3", +"-X c #023FB8", +";X c #272581", +":X c #393FBC", +">X c #004A94", +",X c #00589A", +"X1.&.) 0 . A W./ l i . , v + Z.YX", +"YXV.i d.Y.U.C 6 P.T.6 , K {.;.*.w * - k > z 2.W { w.> 3 v @ V.YX", +"YXV.- p.~ ^ $ . L H . M R &.' 9 # . = y a u # Z.YX", +"YXV. y z z & , E R q 8 X.{ ] _ * YXYXYX", +"YXZ. . a V U [ [ { ] U =.f # YXYXYXYXYXYX", +"YXYXYX # 8.O.7.3.>.:.Y.W.J # ; o YXYXYXYXYXYXYXYXYXYXYX", +"YXYXYXYXYX ; %.b.5.6.4.OX).K.G / .# YXYXYXYXYXYXYX", +"YXYXYXYXYX . h =.Y R K J.I.L.`.U.Y.f . o YXYXYXYXYXYXYX", +"YXYXYXYXYXYX o l O.=.=.T Y W R E T ..: k k YXYXYXYXYXYXYX", +"YXYXYXYXYXYXYX . p +.*.~ ~ 2.+.| l k ; o YXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYX y .F / F @.t . YXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYX # a u . YXYXYXYXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYXYXYXZ.V.Z.Z.V.V.Z.Z.D.Z.V.YXYXYXYXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX" +}; --- azureus-2.5.0.4.orig/debian/control +++ azureus-2.5.0.4/debian/control @@ -0,0 +1,22 @@ +Source: azureus +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Shaun Jackman +Build-Depends-Indep: icedtea-java7-jdk, + libcommons-cli-java, liblog4j1.2-java, libseda-java, + libswt3.2-gtk-java, fastjar, junit +Build-Depends: debhelper (>> 5) +Standards-Version: 3.7.2.2 + +Package: azureus +Architecture: all +Depends: icedtea-java7-jre | sun-java6-jre | sun-java5-jre, + libcommons-cli-java, liblog4j1.2-java, libseda-java, libswt3.2-gtk-java +Description: BitTorrent client + BitTorrent is a peer-to-peer file distribution tool. + . + Azureus offers multiple torrent downloads, queuing/priority systems + (on torrents and files), start/stop seeding options and instant + access to numerous pieces of information about your torrents. Azureus + now features an embedded tracker easily set up and ready to use. --- azureus-2.5.0.4.orig/debian/azureus.1 +++ azureus-2.5.0.4/debian/azureus.1 @@ -0,0 +1,32 @@ +.TH azureus "1" "2006-11-17" "azureus 2.5.0.0" "User Commands" +.SH NAME +azureus \- a BitTorrent client +.SH SYNOPSIS +.B azureus +.br +.B java \fI\-jar\fR /usr/share/java/Azureus2.jar +.SH DESCRIPTION +BitTorrent is a peer-to-peer file distribution tool. + +Azureus offers multiple torrent downloads, queuing/priority systems +(on torrents and files), start/stop seeding options and instant access +to numerous pieces of information about your torrents. Azureus now +features an embedded tracker easily set up and ready to use. +.SH AUTHOR +Written by Aelitis. + +This manual page was written for Debian by +Shaun Jackman . +.SH "REPORTING BUGS" +Report bugs to . +.SH COPYRIGHT +Copyright 2006 Aelitis + +This is free software; see the source for copying conditions. There is +NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. +.SH "SEE ALSO" +http://azureus.sourceforge.net + +The user guide, which may be accessed from the \fIHelp\fR menu within +the program. --- azureus-2.5.0.4.orig/debian/docs +++ azureus-2.5.0.4/debian/docs @@ -0,0 +1 @@ +README.txt --- azureus-2.5.0.4.orig/debian/azureus.desktop +++ azureus-2.5.0.4/debian/azureus.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Categories=Java;Application;Network;FileTransfer;P2P +Comment=peer-to-peer file distribution tool +Exec=azureus %U +GenericName=BitTorrent client +Icon=Azureus +MimeType=application/x-bittorrent +Name=Azureus +Type=Application --- azureus-2.5.0.4.orig/debian/install +++ azureus-2.5.0.4/debian/install @@ -0,0 +1,6 @@ +Azureus.png usr/share/pixmaps +Azureus.torrent.png usr/share/pixmaps +Azureus2.jar usr/share/java +azureus usr/bin +debian/azureus.desktop usr/share/applications +debian/azureus.xpm usr/share/pixmaps --- azureus-2.5.0.4.orig/debian/compat +++ azureus-2.5.0.4/debian/compat @@ -0,0 +1 @@ +5 --- azureus-2.5.0.4.orig/debian/menu +++ azureus-2.5.0.4/debian/menu @@ -0,0 +1,4 @@ +?package(azureus):needs="X11" section="Apps/Net"\ + icon="/usr/share/pixmaps/azureus.xpm"\ + title="Azureus" command="/usr/bin/azureus" \ + hints="Internet" --- azureus-2.5.0.4.orig/debian/changelog +++ azureus-2.5.0.4/debian/changelog @@ -0,0 +1,181 @@ +azureus (2.5.0.4-1ubuntu1) hardy; urgency=low + + * The "Ubuntu has working Azureus after 3 years" release (LP: #57875) + * Rebase Ubuntu packaging off Debian + * Fix launcher script and Makefile to use Ubuntu swt.jar path + * Fix launcher script to call the correct entry point + * Change build-deps on swt to match Ubuntu package names + * Build with icedtea-java7 stack + * Tighten runtime dependencies -- GCJ doesn't work + at all (not even as runtime; slow hash-checking, no transfers) + * Correct Original-Maintainer field name. + * Modify azureus script to detect and choose a optimal JRE. + First try icedtea, then look for java6 or java5 from Sun, then + fall back to /usr/bin/java symlink after complaining + * Strip out the SWT update on start (caused annoying error bubble + about not being able to write to /usr/lib/java on first startup) + + -- jdong Wed, 21 Oct 2007 12:34:47 -0400 + +azureus (2.5.0.4-1) unstable; urgency=low + + * New upstream release. Closes: #406914. + * Disable auto-update. Closes: #405997. + + -- Shaun Jackman Thu, 5 Jul 2007 11:32:18 -0600 + +azureus (2.5.0.0+0-1) unstable; urgency=medium + + * Bump the upstream version number due to a bug in dak (#232730). + * Launch ui.common instead of ui.swt. Allows using the + --ui=console option. Closes: #367110. + * Add -Xmx1024M to the java command line, which increases the size + of the heap. Closes: #386765. + + -- Shaun Jackman Wed, 22 Nov 2006 13:17:40 -0700 + +azureus (2.5.0.0-2) unstable; urgency=medium + + * Move azureus to main. It runs very well now using java-gcj-compat. + Closes: #369376. + * Remove sun-java5-jre from the dependencies. Replace it with + java-gcj-compat. Closes: #365766, #395555. + * Update the policy to version 3.7.2.2. No changes were necessary. + * Minor updates to the manual page. + * Update manifest.mf. + + -- Shaun Jackman Fri, 17 Nov 2006 10:56:04 -0700 + +azureus (2.5.0.0-1) unstable; urgency=low + + * New upstream release. + + -- Shaun Jackman Wed, 23 Aug 2006 16:41:25 -0600 + +azureus (2.4.0.2-4) unstable; urgency=medium + + * Source libswt-3.2-java instead of libswt-3.1-java. Closes: #380721. + + -- Shaun Jackman Tue, 1 Aug 2006 09:42:24 -0600 + +azureus (2.4.0.2-3) unstable; urgency=medium + + * Depend on libswt-gtk-3.2-java instead of libswt-gtk-3.1-java. + Closes: #380312. + + -- Shaun Jackman Sun, 30 Jul 2006 20:26:40 -0600 + +azureus (2.4.0.2-2) unstable; urgency=low + + * Fix `Unable to close Warning window' bug. Closes: #364706. + Thanks to Markus Schaber . + * Build using java-gcj-compat-dev and debhelper 5. + * Replace gij-4.1 dependency with sun-java5-jre or java-gcj-compat. + * Remove sun-j2re1.5 dependency. + * Update Debian policy to version 3.7.2.1. No changes necessary. + + -- Shaun Jackman Sun, 16 Jul 2006 11:34:02 -0600 + +azureus (2.4.0.2-1) unstable; urgency=low + + * New upstream release. Closes: #353241. + * Add swt.jar to the classpath to aid updating SWT. + + -- Shaun Jackman Sun, 16 Apr 2006 14:30:54 -0600 + +azureus (2.3.0.6-4) unstable; urgency=low + + * Add . to the java.library.path. Allows updating to 2.4.0.2. + Closes: #358615. + * Add gij-4.1 to the dependencies as an option. Closes: #349811, #350399. + * Enable the OK button of the donation request. Closes: #346362. + * Update the watch file to version 3. + + -- Shaun Jackman Thu, 23 Mar 2006 15:10:56 -0700 + +azureus (2.3.0.6-3) unstable; urgency=low + + * Use SWT from the updated Azureus. Allows updates to 2.4.0.0. + Closes: #353456. + * Use the directory ~/.azureus if it exists and ~/.Azureus otherwise. + Azureus 2.4.0.0 uses the former, previous versions use the latter. + * Update policy version to 3.6.2.2. No changes necessary. + + -- Shaun Jackman Sat, 18 Feb 2006 10:18:50 -0700 + +azureus (2.3.0.6-2) unstable; urgency=low + + * Add /usr/lib/jni to java.library.path. Closes: #335740, #351750. + + -- Shaun Jackman Tue, 7 Feb 2006 09:50:15 -0700 + +azureus (2.3.0.6-1) unstable; urgency=low + + * New upstream release. + + -- Shaun Jackman Fri, 25 Nov 2005 11:06:17 -0700 + +azureus (2.3.0.4-3) unstable; urgency=low + + * Add a build dependency on fastjar. + + -- Shaun Jackman Tue, 13 Sep 2005 16:07:23 -0600 + +azureus (2.3.0.4-2) unstable; urgency=low + + * Change the build dependency on jikes-classpath to sun-j2sdk1.5. + Closes: #326254. + * Change the dependency on sun-j2sdk1.5 to sun-j2re1.5. + * Recommend java-package. + + -- Shaun Jackman Tue, 13 Sep 2005 10:33:55 -0600 + +azureus (2.3.0.4-1) unstable; urgency=low + + * New upstream release. Closes: #316817. + + -- Shaun Jackman Mon, 4 Jul 2005 10:45:54 -0700 + +azureus (2.3.0.2-1) unstable; urgency=low + + * New upstream release. Closes: #311063. + * Depend on libseda-java. + * Use ~/.Azureus/Azureus2.jar if it exists. + + -- Shaun Jackman Sun, 29 May 2005 12:42:19 -0700 + +azureus (2.3.0.0-3) unstable; urgency=low + + * Call update-desktop-database. Closes: #307332. + + -- Shaun Jackman Thu, 19 May 2005 15:46:07 -0700 + +azureus (2.3.0.0-2) unstable; urgency=low + + * Target Java VM 1.4.2. Closes: #308545. + + -- Shaun Jackman Tue, 10 May 2005 17:38:27 -0700 + +azureus (2.3.0.0-1) unstable; urgency=low + + * New upstream release. Closes: #308392. + * Support all architectures. Closes: #298112. + * Use Debian's SWT. Closes: #298104. + * Exec the Java binary. Closes: #308239. + * Compile Azureus from source. + + -- Shaun Jackman Wed, 4 May 2005 16:19:04 -0700 + +azureus (2.2.0.2-2) unstable; urgency=low + + * Add a mime type to the desktop entry. Closes: #307332. + * Add a menu entry. + + -- Shaun Jackman Tue, 3 May 2005 09:35:01 -0700 + +azureus (2.2.0.2-1) unstable; urgency=low + + * Initial release. Closes: #215127. + + -- Shaun Jackman Mon, 3 Jan 2005 11:05:57 -0800 + --- azureus-2.5.0.4.orig/Makefile +++ azureus-2.5.0.4/Makefile @@ -0,0 +1,39 @@ +binjavadir=/usr/lib/java +javadir=/usr/share/java +JAVAC=javac -source 1.5 -target 1.5 -encoding ISO-8859-1 -nowarn \ + -classpath .:$(javadir)/commons-cli-1.0.jar:$(javadir)/log4j-1.2.jar:$(javadir)/seda.jar:$(binjavadir)/swt.jar:$(javadir)/junit.jar + +all: Azureus2.jar + +clean: + rm -f java-stamp Azureus2.jar + find . -name *.class | xargs rm -f + +.PHONY: all + +Azureus2.jar: manifest.mf java-stamp + find . \ + -name \*.class -or \ + -name \*.gif -or \ + -name \*.jpg -or \ + -name \*.png -or \ + -name \*.properties -or \ + -name \*.stf -or \ + -name \*.wav | fastjar cfm@ $@ $< + +java-stamp: + rm -rf \ + org/gudy/azureus2/platform/macosx \ + org/gudy/azureus2/platform/win32 \ + org/gudy/azureus2/ui/swt/osx \ + org/gudy/azureus2/ui/swt/test \ + org/gudy/azureus2/ui/swt/win32 + for i in `find com org -name *.java`; do \ + if [ -e $${i%java}class ]; then \ + echo SKIPPING $$i; \ + else \ + echo $(JAVAC) $$i; \ + $(JAVAC) $$i || exit $$?; \ + fi \ + done + touch $@ --- azureus-2.5.0.4.orig/manifest.mf +++ azureus-2.5.0.4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: org.gudy.azureus2.ui.common.Main +Class-Path: commons-cli.jar log4j-1.2.jar seda.jar swt.jar --- azureus-2.5.0.4.orig/azureus +++ azureus-2.5.0.4/azureus @@ -0,0 +1,26 @@ +#!/bin/sh + +if [ -f /usr/lib/jvm/java-7-icedtea/jre/bin/java ]; then + JAVA='/usr/lib/jvm/java-7-icedtea/jre/bin/java -Xmx1024M' +elif [ -f /usr/lib/jvm/java-6-sun/jre/bin/java ]; then + JAVA='/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024M' +elif [ -f /usr/lib/jvm/java-1.5.0-sun/jre/bin/java ]; then + JAVA='/usr/lib/jvm/java-1.5.0-sun/jre/bin/java -Xmx1024M' +else + echo '******** WARNING **********' + echo 'Unable to find a supported Java runtime' + echo 'Going to assume java is in your PATH' + echo '****************************' + JAVA='java -Xmx1024M' +fi +echo "Using Java: $JAVA" +SWT=/usr/lib/java/swt.jar +if [ -d ~/.azureus ]; then + cd ~/.azureus +else + if [ ! -d ~/.Azureus ]; then mkdir ~/.Azureus; fi + cd ~/.Azureus +fi +exec $JAVA -Djava.library.path=.:/usr/lib/jni:/usr/lib \ + -classpath Azureus2.jar:$SWT:/usr/share/java/Azureus2.jar:$JARS \ + org.gudy.azureus2.ui.swt.Main "$@"