summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-02-06 11:46:35 +0000
committerVlastimil Babka <caster@gentoo.org>2009-02-06 11:46:35 +0000
commit76eb2961a1548149d14296b1e983cb20a609dbf4 (patch)
treed9547b8b037d4c6c74676cce2faacbf496cfae74 /net-p2p
parentInitial ebuild for package which splits core plugins out of vuze package. Lat... (diff)
downloadhistorical-76eb2961a1548149d14296b1e983cb20a609dbf4.tar.gz
historical-76eb2961a1548149d14296b1e983cb20a609dbf4.tar.bz2
historical-76eb2961a1548149d14296b1e983cb20a609dbf4.zip
Package move from net-p2p/azureus and version bump. Split the core plugins into separate net-p2p/vuze-coreplugins package and PDEPEND on it.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64 RepoMan-Options: --force
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/vuze/ChangeLog432
-rw-r--r--net-p2p/vuze/files/azureus.pngbin0 -> 16722 bytes
-rw-r--r--net-p2p/vuze/files/build.xml68
-rw-r--r--net-p2p/vuze/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch210
-rw-r--r--net-p2p/vuze/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch28
-rw-r--r--net-p2p/vuze/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch22
-rw-r--r--net-p2p/vuze/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch26
-rw-r--r--net-p2p/vuze/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch20
-rw-r--r--net-p2p/vuze/files/patches-4.1.0.0/remove-osx-platform.diff24
-rw-r--r--net-p2p/vuze/files/patches-4.1.0.0/tableimpl-remove-win32-import.diff10
-rw-r--r--net-p2p/vuze/files/patches-4.1.0.0/use-jdk-cipher-only.diff41
-rw-r--r--net-p2p/vuze/files/vuze-2.5.0.0-pre75
-rw-r--r--net-p2p/vuze/files/vuze-4.1.0.0-pre75
-rw-r--r--net-p2p/vuze/files/vuze.desktop9
-rw-r--r--net-p2p/vuze/metadata.xml5
-rw-r--r--net-p2p/vuze/vuze-3.0.4.2-r1.ebuild171
-rw-r--r--net-p2p/vuze/vuze-4.1.0.0.ebuild144
17 files changed, 1360 insertions, 0 deletions
diff --git a/net-p2p/vuze/ChangeLog b/net-p2p/vuze/ChangeLog
new file mode 100644
index 000000000000..5ef57ca1cbc1
--- /dev/null
+++ b/net-p2p/vuze/ChangeLog
@@ -0,0 +1,432 @@
+# ChangeLog for net-p2p/azureus
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/ChangeLog,v 1.1 2009/02/06 11:46:35 caster Exp $
+
+*vuze-4.1.0.0 (06 Feb 2009)
+*vuze-3.0.4.2-r1 (06 Feb 2009)
+
+ 06 Feb 2009; Vlastimil Babka <caster@gentoo.org> +files/vuze-2.5.0.0-pre,
+ +files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.pa
+ tch,
+ +files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch,
+ +files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.p
+ atch,
+ +files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.
+ patch,
+ +files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch,
+ +files/vuze-4.1.0.0-pre, +files/patches-4.1.0.0/remove-osx-platform.diff,
+ +files/patches-4.1.0.0/tableimpl-remove-win32-import.diff,
+ +files/patches-4.1.0.0/use-jdk-cipher-only.diff, +files/azureus.png,
+ +files/build.xml, +files/vuze.desktop, +metadata.xml,
+ +vuze-3.0.4.2-r1.ebuild, +vuze-4.1.0.0.ebuild:
+ Package move from net-p2p/azureus and version bump. Split the core plugins
+ into separate net-p2p/vuze-coreplugins package and PDEPEND on it.
+
+ 07 Jan 2009; Brent Baude <ranger@gentoo.org> azureus-4.0.0.4.ebuild:
+ Marking azureus-4.0.0.4 ppc64 for bug 234997
+
+ 04 Jan 2009; Markus Meier <maekke@gentoo.org> azureus-4.0.0.4.ebuild:
+ amd64/x86 stable, bug #234997
+
+*azureus-4.0.0.4 (21 Nov 2008)
+
+ 21 Nov 2008; Vlastimil Babka <caster@gentoo.org> +azureus-4.0.0.4.ebuild:
+ Version bump.
+
+ 04 Nov 2008; Vlastimil Babka <caster@gentoo.org> azureus-4.0.0.2.ebuild:
+ Raise max heap size on x86 to 192MB due to problems with ibm-jdk-bin-1.6,
+ bug #245483.
+
+*azureus-4.0.0.2 (02 Nov 2008)
+*azureus-3.1.1.0-r1 (02 Nov 2008)
+
+ 02 Nov 2008; Vlastimil Babka <caster@gentoo.org>
+ -files/azureus-bcprov-1.35.patch,
+ -files/fedora-2.5.0.0/azureus-cache-size.patch,
+ -files/fedora-2.5.0.0/azureus-no-restart.patch,
+ -files/fedora-2.5.0.0/azureus-remove-manifest-classpath.patch,
+ -files/fedora-2.5.0.0/azureus-remove-win32-PlatformManagerUpdateChecker.pa
+ tch, -files/fedora-2.5.0.0/azureus-remove-win32-osx-platforms.patch,
+ -files/fedora-2.5.0.4/azureus-cache-size.patch,
+ -files/fedora-2.5.0.4/azureus-no-restart.patch,
+ -files/fedora-2.5.0.4/azureus-remove-manifest-classpath.patch,
+ -files/fedora-2.5.0.4/azureus-remove-win32-PlatformManagerUpdateChecker.pa
+ tch, -files/fedora-2.5.0.4/azureus-remove-win32-osx-platforms.patch,
+ +files/azureus-3.1.1.0-pre, +files/azureus-4.0.0.2-pre,
+ +files/patches-4.0.0.2/remove-osx-platform.diff,
+ +files/patches-4.0.0.2/use-jdk-cipher-only.diff, -files/build.xml,
+ -azureus-2.5.0.4-r1.ebuild, -azureus-3.0.5.0-r1.ebuild,
+ +azureus-3.1.1.0-r1.ebuild, +azureus-4.0.0.2.ebuild:
+ Version bump to 4.0.0.2, bug #242520. Uses EAPI=2 use deps for swt. Now
+ uses shared plugin directory for upstream-bundled core plugins which fixes
+ bug #219177 and #140372. Fixed also console UI and revbumped 3.1.1.0-r1 to
+ include the fix as well for possibly sooner stable candidate - bug
+ #219103. Cleanup old and unperspective versions.
+
+*azureus-3.1.1.0 (16 Aug 2008)
+
+ 25 Oct 2008; Pieter Van den Abeele <pvdabeel@gentoo.org> azureus-3.1.1.0.ebuild:
+ Keyworded ~ppc and ~ppc64. Closes bug #237829
+
+ 16 Aug 2008; Vlastimil Babka <caster@gentoo.org>
+ +files/patches-3.1.1.0/remove-osx-platform.diff,
+ +files/patches-3.1.1.0/use-jdk-cipher-only.diff, metadata.xml,
+ +azureus-3.1.1.0.ebuild:
+ Version bump. Based on contributions from geki in java-overlay and Thomas
+ Axelsson in bug 229061. Problems loading dashboard (does not affect
+ torrents) are problem of swt tracked in bug 234934.
+
+ 21 Apr 2008; Petteri Räty <betelgeuse@gentoo.org> azureus-3.0.5.2.ebuild:
+ Add back memory limit increasing. Should fix bug #218681.
+
+*azureus-3.0.5.2 (20 Apr 2008)
+
+ 20 Apr 2008; Petteri Räty <betelgeuse@gentoo.org>
+ +files/azureus-3.0.5.2-pre,
+ +files/patches-3.0.5.2/remove-osx-platform.patch,
+ +files/patches-3.0.5.2/use-jdk-cipher-only.patch, +azureus-3.0.5.2.ebuild:
+ Version bump.
+
+*azureus-3.0.5.0-r1 (03 Apr 2008)
+
+ 03 Apr 2008; Vlastimil Babka <caster@gentoo.org> -azureus-3.0.5.0.ebuild,
+ +azureus-3.0.5.0-r1.ebuild:
+ Revbump to change swt slot to 3.4, bug #214012.
+
+*azureus-3.0.5.0 (03 Apr 2008)
+
+ 03 Apr 2008; Petteri Räty <betelgeuse@gentoo.org>
+ +azureus-3.0.5.0.ebuild:
+ Version bump. Fixes bug #213641.
+
+ 17 Mar 2008; Petteri Räty <betelgeuse@gentoo.org>
+ -azureus-3.0.3.4.ebuild, -azureus-3.0.4.2.ebuild:
+ Delete some old versions.
+
+ 16 Mar 2008; Kenneth Prugh <ken69267@gentoo.org>
+ azureus-3.0.4.2-r1.ebuild:
+ amd64 stable, bug #212667
+
+ 10 Mar 2008; Christian Faulhammer <opfer@gentoo.org>
+ azureus-3.0.4.2-r1.ebuild:
+ filter jikes
+
+ 08 Mar 2008; Markus Meier <maekke@gentoo.org> azureus-3.0.4.2-r1.ebuild:
+ unquote A, x86 stable, bug #212667
+
+ 08 Mar 2008; nixnut <nixnut@gentoo.org> azureus-3.0.4.2-r1.ebuild:
+ Stable on ppc wrt bug 212667
+
+*azureus-3.0.4.2-r1 (03 Jan 2008)
+
+ 03 Jan 2008; Petteri Räty <betelgeuse@gentoo.org>
+ +azureus-3.0.4.2-r1.ebuild:
+ Set MOZ_PLUGIN_PATH environment variable so that flash works properly in the
+ Vuze UI. Add instructions how to switch between different UIs. Fixes bug
+ #204132.
+
+*azureus-3.0.4.2 (28 Dec 2007)
+
+ 28 Dec 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +azureus-3.0.4.2.ebuild:
+ Version bump. Fixes bug #201607 and bug #203432.
+
+ 23 Nov 2007; Vlastimil Babka <caster@gentoo.org> azureus-3.0.3.4.ebuild:
+ Pass file lists to ejavac and jar via tmp files to prevent too long argument
+ list - bug #200072.
+
+ 22 Nov 2007; Petteri Räty <betelgeuse@gentoo.org> files/azureus.desktop:
+ Fix stuff reported by desktop-file-validate.
+
+ 22 Nov 2007; Petteri Räty <betelgeuse@gentoo.org>
+ -azureus-2.5.0.0-r3.ebuild, -azureus-2.5.0.4.ebuild:
+ Delete old ebuilds.
+
+*azureus-3.0.3.4 (22 Nov 2007)
+
+ 22 Nov 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.pa
+ tch,
+ +files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch,
+ +files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.p
+ atch,
+ +files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.
+ patch,
+ +files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch,
+ +azureus-3.0.3.4.ebuild:
+ Version bump. Thanks to people in bug #184101.
+
+ 16 Nov 2007; Petteri Räty <betelgeuse@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ Call fdo-mime_mime_database_update in pkg_postrm instead of pkg_prerm.
+
+ 05 Oct 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ Added use ppc -Xmx setting to prevent oom, per bug #194771
+
+ 17 Jun 2007; Christian Faulhammer <opfer@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ stable x86, bug 172657
+
+ 16 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ ppc stable, bug #172657
+
+ 14 Jun 2007; Christoph Mende <angelos@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ Stable on amd64 wrt bug 172657
+
+ 20 May 2007; Vlastimil Babka <caster@gentoo.org>
+ azureus-2.5.0.4-r1.ebuild:
+ Don't force ecj compiler as requested in bug #145338. Go back to using 256m
+ limit for amd64 and 128m for x86. Should now work that ANT_OPTS is exported.
+
+ 08 Apr 2007; Joseph Jezak <josejx@gentoo.org> azureus-2.5.0.4.ebuild,
+ azureus-2.5.0.4-r1.ebuild:
+ Marked ~ppc for bug #170955.
+
+ 29 Mar 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ +files/azureus-bcprov-1.35.patch,
+ -files/fedora-2.5.0.4/azureus-bcprov-1.35.patch,
+ azureus-2.5.0.4-r1.ebuild:
+ Moved recently added patch since it was being applied to stable version
+
+*azureus-2.5.0.4-r1 (29 Mar 2007)
+
+ 29 Mar 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ +files/fedora-2.5.0.4/azureus-bcprov-1.35.patch,
+ +azureus-2.5.0.4-r1.ebuild:
+ Added patch for changes in bcprov due to revision bump per bug #172657
+
+ 15 Mar 2007; Simon Stelling <blubb@gentoo.org> azureus-2.5.0.4.ebuild:
+ stable on amd64; bug 170955
+
+ 15 Mar 2007; Christian Faulhammer <opfer@gentoo.org>
+ azureus-2.5.0.4.ebuild:
+ stable x86, bug 170955
+
+ 08 Mar 2007; Petteri Räty <betelgeuse@gentoo.org>
+ -files/digest-azureus-2.5.0.0-r2, -files/digest-azureus-2.5.0.2, Manifest:
+ Cleanup.
+
+ 08 Mar 2007; Petteri Räty <betelgeuse@gentoo.org>
+ -azureus-2.5.0.0-r2.ebuild, -azureus-2.5.0.2.ebuild:
+ Cleanup.
+
+ 10 Feb 2007; Petteri Räty <betelgeuse@gentoo.org>
+ files/azureus-2.5.0.0-pre:
+ Made the launcher handle upgrades from 2.3* better.
+
+ 10 Feb 2007; nixnut <nixnut@gentoo.org> azureus-2.5.0.0-r3.ebuild:
+ Stable on ppc wrt bug 113389
+
+*azureus-2.5.0.4 (26 Jan 2007)
+
+ 26 Jan 2007; Vlastimil Babka <caster@gentoo.org>
+ +files/fedora-2.5.0.4/azureus-cache-size.patch,
+ +files/fedora-2.5.0.4/azureus-no-restart.patch,
+ +files/fedora-2.5.0.4/azureus-remove-manifest-classpath.patch,
+ +files/fedora-2.5.0.4/azureus-remove-win32-PlatformManagerUpdateChecker.pa
+ tch, +files/fedora-2.5.0.4/azureus-remove-win32-osx-platforms.patch,
+ +azureus-2.5.0.4.ebuild:
+ Version bump, bug #163941. Thanks to Kalidarn <dcecchin@gmail.com> for
+ finding out the distfile capitalization change (even the links on homepage
+ and sf.net were wrong, fun) and Joshua A. Manis <semhirage@hotmail.com> for
+ updated platform patch.
+
+*azureus-2.5.0.2 (20 Jan 2007)
+
+ 20 Jan 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +azureus-2.5.0.2.ebuild:
+ Version bump. Fixes bug #162125. Thanks to caster. Dropping ppc keywords
+ because of bug #148999.
+
+ 07 Dec 2006; Diego Pettenò <flameeyes@gentoo.org>
+ azureus-2.5.0.0-r3.ebuild:
+ Add ~x86-fbsd keyword.
+
+ 20 Oct 2006; Petteri Räty <betelgeuse@gentoo.org>
+ -files/azureus-gentoo-2.3.0.6.sh,
+ -files/azureus-2.4.0.2-popup-hide-debian.patch,
+ -files/azureus-2.4.0.2-pre, -files/SWTThread.java,
+ -files/UpdaterPatcher.java, -files/fedora/azureus-cache-size.patch,
+ -files/fedora/azureus-no-restart.patch,
+ -files/fedora/azureus-remove-manifest-classpath.patch,
+ -files/fedora/azureus-remove-win32-PlatformManagerUpdateChecker.patch,
+ -files/fedora/azureus-remove-win32-osx-platforms.patch,
+ -azureus-2.3.0.6-r1.ebuild, -azureus-2.4.0.2-r2.ebuild,
+ -azureus-2.5.0.0.ebuild, -azureus-2.5.0.0-r1.ebuild,
+ azureus-2.5.0.0-r2.ebuild:
+ Removed old versions.
+
+ 20 Oct 2006; Simon Stelling <blubb@gentoo.org> azureus-2.5.0.0-r3.ebuild:
+ stable on amd64
+
+ 17 Oct 2006; Joshua Jackson <tsunam@gentoo.org> azureus-2.5.0.0-r3.ebuild:
+ Stable x86; bug #113389
+
+*azureus-2.5.0.0-r3 (14 Oct 2006)
+
+ 14 Oct 2006; Petteri Räty <betelgeuse@gentoo.org>
+ +azureus-2.5.0.0-r3.ebuild:
+ Fixed bug #145908. Thanks to Justin <jd2666+genbug@gmail.com>.
+
+*azureus-2.5.0.0-r2 (10 Sep 2006)
+
+ 10 Sep 2006; Petteri Räty <betelgeuse@gentoo.org>
+ files/azureus-2.5.0.0-pre, +azureus-2.5.0.0-r2.ebuild:
+ With 2.5.0.0-r1 it could happen that UI was not set leading to Azureus
+ not starting. Now the startup script sets that to swt if the variable
+ is empty. Fixes bug #147059.
+
+*azureus-2.5.0.0-r1 (09 Sep 2006)
+
+ 09 Sep 2006; Petteri Räty <betelgeuse@gentoo.org>
+ +files/azureus-2.5.0.0-pre, +azureus-2.5.0.0-r1.ebuild:
+ The UI and JAVA_OPTIONS settings in the gentoo.config configuration file
+ work again. Fixes bug #146788.
+
+ 27 Aug 2006; Petteri Räty <betelgeuse@gentoo.org> azureus-2.5.0.0.ebuild:
+ Changed to depend on >=dev-java/swt-3.2-r1 to fix bug #140778.
+
+ 27 Aug 2006; Petteri Räty <betelgeuse@gentoo.org>
+ -azureus-2.4.0.2.ebuild, -azureus-2.4.0.2-r1.ebuild:
+ Removed old revisions.
+
+*azureus-2.5.0.0 (27 Aug 2006)
+
+ 27 Aug 2006; Petteri Räty <betelgeuse@gentoo.org>
+ +files/fedora-2.5.0.0/azureus-cache-size.patch,
+ +files/fedora-2.5.0.0/azureus-no-restart.patch,
+ +files/fedora-2.5.0.0/azureus-remove-manifest-classpath.patch,
+ +files/fedora-2.5.0.0/azureus-remove-win32-PlatformManagerUpdateChecker.pa
+ tch, +files/fedora-2.5.0.0/azureus-remove-win32-osx-platforms.patch,
+ +azureus-2.5.0.0.ebuild:
+ Version bump. Fixes bug #144760. Thanks to Triffid Hunter
+ <triffid_hunter@funkmunch.net> and Caster <caster@matfyz.cz>.
+
+ 20 Aug 2006; Petteri Räty <betelgeuse@gentoo.org>
+ azureus-2.4.0.2-r2.ebuild:
+ Changed dependencies to >=dev-java/swt-3.2 to resolve problems on amd64.
+ Should fix bug #135835.
+
+ 16 Aug 2006; Joshua Nichols <nichoj@gentoo.org> azureus-2.3.0.6-r1.ebuild,
+ azureus-2.4.0.2-r2.ebuild:
+ Fixed missing dependency on app-arch/zip when USE=source
+
+*azureus-2.4.0.2-r2 (11 Aug 2006)
+
+ 11 Aug 2006; Petteri Räty <betelgeuse@gentoo.org> files/azureus.desktop,
+ +azureus-2.4.0.2-r2.ebuild:
+ Added MimeType for application/x-bittorrent to the installed desktop entry.
+ Fixes bug #143486. Thanks to <nathanegge@yahoo.com>.
+
+ 05 Aug 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ azureus-2.4.0.2-r1.ebuild:
+ Added ~ppc, bug #141528
+
+*azureus-2.4.0.2-r1 (01 Aug 2006)
+
+ 01 Aug 2006; Joshua Nichols <nichoj@gentoo.org>
+ +files/azureus-2.4.0.2-popup-hide-debian.patch,
+ +azureus-2.4.0.2-r1.ebuild:
+ Applies a patch, yanked from debian, which addresses pop ups not going away.
+ Fixes bug #132578
+
+ 31 Jul 2006; Joshua Nichols <nichoj@gentoo.org> azureus-2.4.0.2.ebuild:
+ Keyworded ~amd64. Now forces use of ecj for compilation on amd64 to get
+ around problems with running out of memory. Bug #141528
+
+ 27 Jul 2006; Joshua Nichols <nichoj@gentoo.org> files/azureus.png,
+ azureus-2.4.0.2.ebuild:
+ Changed ant_src_unpack to src_unpack
+
+ 23 Jul 2006; Joshua Nichols <nichoj@gentoo.org> files/azureus.png:
+ Updated icon for bug #131050
+
+*azureus-2.4.0.2 (23 Jul 2006)
+
+ 23 Jul 2006; Joshua Nichols <jnichols@gentoo.org>
+ +files/azureus-2.4.0.2-pre, +files/fedora/azureus-cache-size.patch,
+ +files/fedora/azureus-no-restart.patch,
+ +files/fedora/azureus-remove-manifest-classpath.patch,
+ +files/fedora/azureus-remove-win32-PlatformManagerUpdateChecker.patch,
+ +files/fedora/azureus-remove-win32-osx-platforms.patch, metadata.xml,
+ +azureus-2.4.0.2.ebuild:
+ Version bump. Now supports the new Java aystem.
+
+ 12 Feb 2006; Petteri Räty <betelgeuse@gentoo.org>
+ azureus-2.3.0.6-r1.ebuild:
+ Fixed bug #119400 so now azureus won't fail on x86 machines with small
+ amounts of memory.
+
+ 02 Jan 2006; Petteri Räty <betelgeuse@gentoo.org>
+ -files/azureus-gentoo-2.3.0.4.sh, -files/azureus-gentoo.sh,
+ -azureus-2.2.0.0-r1.ebuild, -azureus-2.3.0.4.ebuild:
+ Removed old versions.
+
+*azureus-2.3.0.6-r1 (02 Jan 2006)
+
+ 02 Jan 2006; Petteri Räty <betelgeuse@gentoo.org>
+ files/azureus-gentoo-2.3.0.6.sh, -azureus-2.3.0.6.ebuild,
+ +azureus-2.3.0.6-r1.ebuild:
+ Specifying --ui=console in ~/.Azureus/gentoo.config now actually works.
+ Fixes bug #117475. Thanks to Rasmus Faber <adfaber@gmail.com> for the fix.
+
+ 30 Nov 2005; Petteri Räty <betelgeuse@gentoo.org>
+ files/azureus-gentoo-2.3.0.6.sh, metadata.xml:
+ Took maintainership and updated startup script to return the return value of
+ azureus.
+
+ 26 Nov 2005; Petteri Räty <betelgeuse@gentoo.org>
+ files/azureus-gentoo-2.3.0.6.sh:
+ Added support for specifying options to the java binary in
+ ~/.Azureus/gentoo.config. This makes it possible to run the vm in for
+ example server mode. Resolves bug #75090.
+
+*azureus-2.3.0.6 (26 Nov 2005)
+
+ 26 Nov 2005; Petteri Räty <betelgeuse@gentoo.org>
+ +files/azureus-gentoo-2.3.0.6.sh, +azureus-2.3.0.6.ebuild:
+ Version bump and did a major ebuild cleanup. Does not install a packed seda
+ any more because it is not allowed and not needed. Fixes bug #113318.
+
+ 25 Nov 2005; Herbie Hopkins <herbs@gentoo.org>
+ files/azureus-gentoo-2.3.0.4.sh, azureus-2.3.0.4.ebuild:
+ Add a multilib fix and mark ~amd64 wrt bug 113389.
+
+ 24 Nov 2005; Petteri Räty <betelgeuse@gentoo.org> azureus-2.3.0.4.ebuild:
+ Increased allowed memory size while compiling to allow building on amd64.
+
+ 20 Nov 2005; Joseph Jezak <josejx@gentoo.org> azureus-2.3.0.4.ebuild:
+ Marked ~ppc for bug #111273.
+
+ 07 Oct 2005; Thomas Matthijs <axxo@gentoo.org> azureus-2.2.0.0-r1.ebuild,
+ azureus-2.3.0.4.ebuild:
+ Fix deps
+
+*azureus-2.3.0.4 (02 Oct 2005)
+
+ 02 Oct 2005; <mkay@gentoo.org> +files/azureus-gentoo-2.3.0.4.sh,
+ +files/UpdaterPatcher.java, +azureus-2.3.0.4.ebuild:
+ version bump
+
+ 12 May 2005; Jochen Maes <sejo@gentoo.org> azureus-2.2.0.0-r1.ebuild:
+ added an ewarn about not using it as root
+
+ 03 Apr 2005; Thomas Matthijs <axxo@gentoo.org> azureus-2.2.0.0-r1.ebuild:
+ block azureus-bin
+
+*azureus-2.2.0.0-r1 (20 Dec 2004)
+
+ 20 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org>
+ files/azureus-gentoo.sh, files/build.xml, +azureus-2.2.0.0-r1.ebuild,
+ -azureus-2.2.0.0.ebuild:
+ Rewrote startup script. Reindented ebuild. Requires properly SLOTed version
+ of dev-java/swt. Modified build.xml script. Should fix #71378.
+
+*azureus-2.2.0.0-r1 (20 Dec 2004)
+
+ 15 Nov 2004; <SeJo@gentoo.org> :
+ initial add of ebuild
+
diff --git a/net-p2p/vuze/files/azureus.png b/net-p2p/vuze/files/azureus.png
new file mode 100644
index 000000000000..4fa36bf9185c
--- /dev/null
+++ b/net-p2p/vuze/files/azureus.png
Binary files differ
diff --git a/net-p2p/vuze/files/build.xml b/net-p2p/vuze/files/build.xml
new file mode 100644
index 000000000000..ee83cf995f63
--- /dev/null
+++ b/net-p2p/vuze/files/build.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+
+<!--
+
+NOTE: You may need to set the ANT_OPTS="-Xmx512m" env prop in order to compile this project successfully.
+
+-->
+
+
+<project default="jar" name="Azureus" basedir=".">
+
+ <property name="root.dir" value="." /> <!-- REMINDER: this needs to be "." for public source -->
+ <property name="libs.dir" value="build/libs" />
+ <property name="dist.dir" value="dist" />
+
+ <property name="generic.excludes" value="**/*.jar **/*.txt **/*.jardesc **/.classpath **/.project **/aereg.lib **/aereg.dll" />
+ <property name="dist.jar.excludes" value="${generic.excludes} **/*.java " />
+ <!-- <property name="dist.source.excludes" value="${generic.excludes} **/*.class" /> -->
+
+
+ <target name="init" >
+ <echo message="Building Azureus2.jar..." />
+
+ <tstamp/>
+
+ <!-- <condition property="libs.dir" value="build/libs">
+ <not> <isset property="libs.dir" /> </not>
+ </condition> -->
+
+ <mkdir dir="${root.dir}/${dist.dir}" />
+ </target>
+
+
+ <target name="compile" depends="init" >
+ <path id="libs.classpath">
+ <fileset dir="${root.dir}/${libs.dir}" includes="**/*.jar" />
+ </path>
+
+ <javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.4" target="1.4" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" >
+ <classpath refid="libs.classpath" />
+ </javac>
+ </target>
+
+
+ <target name="jar" depends="compile" >
+ <jar destfile="${root.dir}/${dist.dir}/Azureus2.jar" basedir="${root.dir}" excludes="${dist.jar.excludes}" >
+ <manifest>
+ <attribute name="Main-Class" value="org.gudy.azureus2.ui.common.Main" />
+ <attribute name="Class-Path" value="Azureus2.jar apple-extensions.jar commons-cli.jar log4j.jar swt.jar swt-win32.jar swt-osx.jar" />
+ </manifest>
+ </jar>
+
+ <!-- <zip destfile="${dist.dir}/Azureus2_source.zip" basedir="." excludes="${dist.source.excludes}" /> -->
+
+ </target>
+
+
+ <target name="clean" >
+ <delete quiet="true" >
+ <fileset dir="${root.dir}/com" includes="**/*.class"/>
+ <fileset dir="${root.dir}/org" includes="**/*.class"/>
+ </delete>
+
+ <delete dir="${root.dir}/${dist.dir}" />
+ </target>
+
+</project>
+
diff --git a/net-p2p/vuze/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch b/net-p2p/vuze/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch
new file mode 100644
index 000000000000..e731b7bb0a43
--- /dev/null
+++ b/net-p2p/vuze/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch
@@ -0,0 +1,210 @@
+--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java 2007-07-30 14:13:28.000000000 +0200
++++ Azureus_3.0.3.4_source/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java 2007-11-02 16:46:56.000000000 +0100
+@@ -30,8 +30,6 @@
+ import org.gudy.azureus2.platform.PlatformManager;
+ import org.gudy.azureus2.platform.PlatformManagerFactory;
+ import org.gudy.azureus2.platform.unix.ScriptAfterShutdown;
+-import org.gudy.azureus2.platform.win32.access.AEWin32Access;
+-import org.gudy.azureus2.platform.win32.access.AEWin32Manager;
+ import org.gudy.azureus2.update.UpdaterUtils;
+
+ import com.aelitis.azureus.core.AzureusCore;
+@@ -297,140 +295,6 @@
+ return null;
+ }
+
+- private boolean restartViaEXE(PrintWriter log,
+- String exeUpdater,
+- String[] properties,
+- String[] parameters,
+- String backupJavaRunString,
+- boolean update_only)
+- {
+- String azRunner = null;
+- File fileRestart = null;
+- if (!update_only) {
+- try {
+- azRunner = PlatformManagerFactory.getPlatformManager().getApplicationCommandLine();
+- } catch (PlatformManagerException e) {
+- // TODO Auto-generated catch block
+- e.printStackTrace();
+- }
+- }
+-
+- try {
+- int result;
+- AEWin32Access accessor = AEWin32Manager.getAccessor(true);
+- if (accessor == null) {
+- result = -123;
+- } else {
+- if (azRunner != null) {
+- // create a batch file to run the updater, then to restart azureus
+- // bceause the updater would restart azureus as administrator user
+- // and confuse the user
+- fileRestart = FileUtil.getUserFile("restart.bat");
+- String s = "title Azureus Updater Runner\r\n";
+- s += exeUpdater + " \"updateonly\"";
+- for (int i = 1; i < parameters.length; i++) {
+- s += " \"" + parameters[i].replaceAll("\\\"", "") + "\"";
+- }
+- s += "\r\n";
+- s += "start \"\" \"" + azRunner + "\"";
+- FileUtil.writeBytesAsFile(fileRestart.getAbsolutePath(), s.getBytes());
+-
+- result = accessor.shellExecute(null, fileRestart.getAbsolutePath(),
+- null, SystemProperties.getApplicationPath(),
+- AEWin32Access.SW_SHOWMINIMIZED);
+- } else {
+- String execEXE = "\"-J" + getClassPath().replaceAll("\\\"", "")
+- + "\" ";
+-
+- for (int i = 0; i < properties.length; i++) {
+- execEXE += "\"-J" + properties[i].replaceAll("\\\"", "") + "\" ";
+- }
+-
+- for (int i = 0; i < parameters.length; i++) {
+- execEXE += " \"" + parameters[i].replaceAll("\\\"", "") + "\"";
+- }
+-
+- log.println("Launch via " + exeUpdater + " params " + execEXE);
+- result = accessor.shellExecute(null, exeUpdater, execEXE,
+- SystemProperties.getApplicationPath(), AEWin32Access.SW_NORMAL);
+- }
+- }
+-
+- /*
+- * Some results:
+- * 0: OOM
+- * 2: FNF
+- * 3: Path Not Foud
+- * 5: Access Denied (User clicked cancel on admin access dialog)
+- * 8: OOM
+- * 11: Bad Format
+- * 26: Sharing Violation
+- * 27: Association incomplete
+- * 28: DDE Timeout
+- * 29: DDE Fail
+- * 30: DDE Busy
+- * 31: No Association
+- * 32: DLL Not found
+- * >32: OK!
+- */
+- log.println(" -> " + result);
+-
+- if (result <= 32) {
+- String sErrorReason = "";
+- String key = null;
+-
+- switch (result) {
+- case 0:
+- case 8:
+- key = "oom";
+- break;
+-
+- case 2:
+- key = "fnf";
+- break;
+-
+- case 3:
+- key = "pnf";
+- break;
+-
+- case 5:
+- key = "denied";
+- break;
+-
+- case 11:
+- key = "bad";
+- break;
+-
+- case -123:
+- key = "nowin32";
+- break;
+-
+- default:
+- sErrorReason = "" + result;
+- break;
+- }
+- if (key != null) {
+- sErrorReason = MessageText.getString("restart.error." + key,
+- new String[] {
+- exeUpdater,
+- SystemProperties.getApplicationPath(),
+- });
+- }
+- Logger.log(new LogAlert(false, LogAlert.AT_ERROR,
+- MessageText.getString("restart.error", new String[] {
+- sErrorReason
+- })));
+- return false;
+- }
+- } catch (Throwable f) {
+-
+- f.printStackTrace(log);
+-
+- return javaSpawn(log, backupJavaRunString);
+- }
+-
+- return true;
+- }
+
+
+ // ****************** This code is copied into Restarter / Updater so make changes there too !!!
+@@ -446,57 +310,9 @@
+ String[] parameters,
+ boolean update_only)
+ {
+- if(Constants.isOSX){
+-
+- restartAzureus_OSX(log,mainClass,properties,parameters);
+-
+- }else if( Constants.isUnix ){
+-
+ restartAzureus_Unix(log,mainClass,properties,parameters);
+-
+- }else{
+-
+- restartAzureus_win32(log,mainClass,properties,parameters,update_only);
+- }
+ }
+
+- private void
+- restartAzureus_win32(
+- PrintWriter log,
+- String mainClass,
+- String[] properties,
+- String[] parameters,
+- boolean update_only)
+- {
+- String exeUpdater = getExeUpdater(log); // Not for Updater.java
+-
+- String exec;
+-
+- //Classic restart way using Runtime.exec directly on java(w)
+- exec = "\"" + JAVA_EXEC_DIR + "javaw\" " + getClassPath() + getLibraryPath();
+-
+- for (int i = 0; i < properties.length; i++) {
+- exec += properties[i] + " ";
+- }
+-
+- exec += mainClass;
+-
+- for (int i = 0; i < parameters.length; i++) {
+- exec += " \"" + parameters[i] + "\"";
+- }
+-
+- if (exeUpdater != null) {
+- restartViaEXE(log, exeUpdater, properties, parameters, exec, update_only);
+- } else {
+- if (log != null) {
+- log.println(" " + exec);
+- }
+-
+- if (!win32NativeRestart(log, exec)) {
+- javaSpawn(log, exec);
+- }
+- }
+- }
+
+
+ private boolean
diff --git a/net-p2p/vuze/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch b/net-p2p/vuze/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch
new file mode 100644
index 000000000000..fc23c0cefbf8
--- /dev/null
+++ b/net-p2p/vuze/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch
@@ -0,0 +1,28 @@
+--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/ui/swt/views/skin/TorrentListViewsUtils.java 2007-10-01 14:48:00.000000000 +0200
++++ Azureus_3.0.3.4_source/com/aelitis/azureus/ui/swt/views/skin/TorrentListViewsUtils.java 2007-11-02 16:37:00.000000000 +0100
+@@ -64,7 +64,6 @@
+ import com.aelitis.azureus.ui.swt.views.TorrentListViewListener;
+ import com.aelitis.azureus.util.AdManager;
+ import com.aelitis.azureus.util.Constants;
+-import com.aelitis.azureus.util.win32.Win32Utils;
+
+ import org.gudy.azureus2.plugins.PluginInterface;
+ import org.gudy.azureus2.plugins.PluginManager;
+@@ -602,17 +601,6 @@
+ * @param string
+ */
+ private static boolean runInMediaPlayer(String mediaFile) {
+- if (Constants.isWindows) {
+- String wmpEXE = Win32Utils.getWMP();
+- if (new File(wmpEXE).exists()) {
+- try {
+- Runtime.getRuntime().exec(wmpEXE + " \"" + mediaFile + "\"");
+- return true;
+- } catch (IOException e) {
+- Debug.out("error playing " + mediaFile + " via WMP " + mediaFile, e);
+- }
+- }
+- }
+ return false;
+ }
+
diff --git a/net-p2p/vuze/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch b/net-p2p/vuze/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch
new file mode 100644
index 000000000000..ebabaf7f7107
--- /dev/null
+++ b/net-p2p/vuze/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch
@@ -0,0 +1,22 @@
+--- Azureus_3.0.3.4_source.orig/org/gudy/azureus2/platform/PlatformManagerPluginDelegate.java 2007-07-25 13:02:00.000000000 +0200
++++ Azureus_3.0.3.4_source/org/gudy/azureus2/platform/PlatformManagerPluginDelegate.java 2007-11-02 17:04:31.000000000 +0100
+@@ -23,7 +23,6 @@
+ import java.util.Properties;
+
+ import org.gudy.azureus2.platform.unix.PlatformManagerUnixPlugin;
+-import org.gudy.azureus2.platform.win32.PlatformManagerUpdateChecker;
+
+ import org.gudy.azureus2.plugins.Plugin;
+ import org.gudy.azureus2.plugins.PluginException;
+@@ -45,10 +44,7 @@
+ PlatformManager platform = PlatformManagerFactory.getPlatformManager();
+
+ int platformType = platform.getPlatformType();
+- if (platformType == PlatformManager.PT_WINDOWS) {
+- PlatformManagerUpdateChecker plugin = new PlatformManagerUpdateChecker();
+- plugin.initialize(pluginInterface);
+- } else if (platformType == PlatformManager.PT_UNIX) {
++ if (platformType == PlatformManager.PT_UNIX) {
+ PlatformManagerUnixPlugin plugin = new PlatformManagerUnixPlugin();
+ plugin.initialize(pluginInterface);
+ } else {
diff --git a/net-p2p/vuze/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch b/net-p2p/vuze/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch
new file mode 100644
index 000000000000..99ea20a237fa
--- /dev/null
+++ b/net-p2p/vuze/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch
@@ -0,0 +1,26 @@
+--- Azureus_3.0.3.4_source.orig/org/gudy/azureus2/platform/PlatformManagerFactory.java 2007-01-12 13:39:24.000000000 +0100
++++ Azureus_3.0.3.4_source/org/gudy/azureus2/platform/PlatformManagerFactory.java 2007-11-02 16:51:05.000000000 +0100
+@@ -46,23 +46,7 @@
+ if ( platform_manager == null ){
+
+ try{
+- if ( getPlatformType() == PlatformManager.PT_WINDOWS ){
+-
+- platform_manager = org.gudy.azureus2.platform.win32.PlatformManagerImpl.getSingleton();
+-
+- }else if( getPlatformType() == PlatformManager.PT_MACOSX ){
+-
+- platform_manager = org.gudy.azureus2.platform.macosx.PlatformManagerImpl.getSingleton();
+-
+- }else if( getPlatformType() == PlatformManager.PT_UNIX ){
+-
+ platform_manager = org.gudy.azureus2.platform.unix.PlatformManagerImpl.getSingleton();
+-
+- }
+- }catch( PlatformManagerException e ){
+-
+- // exception will already have been logged
+-
+ }catch( Throwable e ){
+
+ Debug.printStackTrace(e);
diff --git a/net-p2p/vuze/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch b/net-p2p/vuze/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch
new file mode 100644
index 000000000000..b5f129cdbe08
--- /dev/null
+++ b/net-p2p/vuze/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch
@@ -0,0 +1,20 @@
+--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java 2006-09-28 08:02:36.000000000 +0200
++++ Azureus_3.0.3.4_source/com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java 2007-11-02 17:14:25.000000000 +0100
+@@ -36,7 +36,7 @@
+ import org.bouncycastle.crypto.encodings.PKCS1Encoding;
+ import org.bouncycastle.crypto.engines.RSAEngine;
+ import org.bouncycastle.crypto.params.ParametersWithRandom;
+-import org.bouncycastle.jce.provider.RSAUtil;
++import org.bouncycastle.jce.provider.DSAUtil;
+ import org.gudy.azureus2.core3.util.Debug;
+ import org.gudy.azureus2.plugins.utils.StaticUtilities;
+
+@@ -97,7 +97,7 @@
+
+ PKCS1Encoding padded_eng = new PKCS1Encoding( eng );
+
+- CipherParameters param = RSAUtil.generatePublicKeyParameter(public_key);
++ CipherParameters param = DSAUtil.generatePublicKeyParameter(public_key);
+
+ param = new ParametersWithRandom(param, new SecureRandom());
+
diff --git a/net-p2p/vuze/files/patches-4.1.0.0/remove-osx-platform.diff b/net-p2p/vuze/files/patches-4.1.0.0/remove-osx-platform.diff
new file mode 100644
index 000000000000..9821573e4e55
--- /dev/null
+++ b/net-p2p/vuze/files/patches-4.1.0.0/remove-osx-platform.diff
@@ -0,0 +1,24 @@
+--- org/gudy/azureus2/platform/PlatformManagerFactory.java.orig 2008-07-06 22:58:18.000000000 +0200
++++ org/gudy/azureus2/platform/PlatformManagerFactory.java 2008-07-06 22:59:21.000000000 +0200
+@@ -50,10 +50,6 @@
+
+ platform_manager = org.gudy.azureus2.platform.win32.PlatformManagerImpl.getSingleton();
+
+- }else if( getPlatformType() == PlatformManager.PT_MACOSX ){
+-
+- platform_manager = org.gudy.azureus2.platform.macosx.PlatformManagerImpl.getSingleton();
+-
+ }else if( getPlatformType() == PlatformManager.PT_UNIX ){
+
+ platform_manager = org.gudy.azureus2.platform.unix.PlatformManagerImpl.getSingleton();
+@@ -89,10 +85,6 @@
+
+ return (PlatformManager.PT_WINDOWS );
+
+- } else if (Constants.isOSX) {
+-
+- return (PlatformManager.PT_MACOSX );
+-
+ } else if (Constants.isUnix) {
+
+ return (PlatformManager.PT_UNIX );
diff --git a/net-p2p/vuze/files/patches-4.1.0.0/tableimpl-remove-win32-import.diff b/net-p2p/vuze/files/patches-4.1.0.0/tableimpl-remove-win32-import.diff
new file mode 100644
index 000000000000..91aabb4f1192
--- /dev/null
+++ b/net-p2p/vuze/files/patches-4.1.0.0/tableimpl-remove-win32-import.diff
@@ -0,0 +1,10 @@
+--- a/org/gudy/azureus2/ui/swt/views/table/impl/TableViewSWTImpl.java 2009-01-22 03:14:04.000000000 +0100
++++ b/org/gudy/azureus2/ui/swt/views/table/impl/TableViewSWTImpl.java 2009-02-06 00:32:22.000000000 +0100
+@@ -29,7 +29,6 @@
+ import org.eclipse.swt.dnd.*;
+ import org.eclipse.swt.events.*;
+ import org.eclipse.swt.graphics.*;
+-import org.eclipse.swt.internal.ole.win32.COM;
+ import org.eclipse.swt.layout.*;
+ import org.eclipse.swt.widgets.*;
+
diff --git a/net-p2p/vuze/files/patches-4.1.0.0/use-jdk-cipher-only.diff b/net-p2p/vuze/files/patches-4.1.0.0/use-jdk-cipher-only.diff
new file mode 100644
index 000000000000..cc5055cbd770
--- /dev/null
+++ b/net-p2p/vuze/files/patches-4.1.0.0/use-jdk-cipher-only.diff
@@ -0,0 +1,41 @@
+--- com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java.orig 2008-07-06 22:54:36.000000000 +0200
++++ com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java 2008-07-06 22:56:29.000000000 +0200
+@@ -36,7 +36,6 @@
+ import org.bouncycastle.crypto.encodings.PKCS1Encoding;
+ import org.bouncycastle.crypto.engines.RSAEngine;
+ import org.bouncycastle.crypto.params.ParametersWithRandom;
+-import org.bouncycastle.jce.provider.RSAUtil;
+ import org.gudy.azureus2.core3.util.Debug;
+ import org.gudy.azureus2.plugins.utils.StaticUtilities;
+
+@@ -82,30 +81,12 @@
+
+ byte[] secret_bytes = session_key.getEncoded();
+
+- try{
+ Cipher rsa_cipher = Cipher.getInstance( "RSA" );
+
+ rsa_cipher.init( Cipher.ENCRYPT_MODE, public_key );
+
+ encryped_session_key = rsa_cipher.doFinal( secret_bytes );
+
+- }catch( Throwable e ){
+-
+- // fallback to the BC implementation for jdk1.4.2 as JCE RSA not available
+-
+- RSAEngine eng = new RSAEngine();
+-
+- PKCS1Encoding padded_eng = new PKCS1Encoding( eng );
+-
+- CipherParameters param = RSAUtil.generatePublicKeyParameter(public_key);
+-
+- param = new ParametersWithRandom(param, new SecureRandom());
+-
+- padded_eng.init( true, param );
+-
+- encryped_session_key = padded_eng.processBlock(secret_bytes, 0, secret_bytes.length);
+- }
+-
+ }catch( Throwable e ){
+
+ e.printStackTrace();
diff --git a/net-p2p/vuze/files/vuze-2.5.0.0-pre b/net-p2p/vuze/files/vuze-2.5.0.0-pre
new file mode 100644
index 000000000000..505a7e704df3
--- /dev/null
+++ b/net-p2p/vuze/files/vuze-2.5.0.0-pre
@@ -0,0 +1,75 @@
+#
+# Copyright (c) 2005, Petteri Räty <betelgeuse@gentoo.org>
+# Copyright (c) 2004, Jochen Maes <sejo@gentoo.org>
+# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
+# Copyright (c) 2004, Gentoo Foundation
+#
+# Licensed under the GNU General Public License, v2
+
+# The Azureus config dir has moved
+olddotazudir="${HOME}/.Azureus"
+oldgentoocfg="${olddotazudir}/gentoo.config"
+dotazudir="${HOME}/.azureus"
+gentoocfg="${dotazudir}/gentoo.config"
+
+if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then
+ cat > /dev/stderr <<END
+You have gentoo.config files in both
+${dotazudir} and
+${olddotazudir}
+${olddotazudir} is deprecated and you can delete this directory.
+
+END
+fi
+
+create_initial_config() {
+ if [[ ! -e "${dotazudir}" ]] ; then
+ mkdir "${dotazudir}"
+ echo "Creating ${dotazudir}"
+ fi
+
+ [[ ${UI} ]] && UI="swt"
+
+ echo "Creating ${gentoocfg}"
+
+ # Create the config file
+ cat > "${gentoocfg}" <<END
+# User Interface options:
+# console - console based
+# swt - swt (GUI) based
+UI="${UI}"
+
+# Options you want to pass to the java binary
+JAVA_OPTIONS=""
+END
+}
+
+if [[ -f "${gentoocfg}" ]] ; then
+ . "${gentoocfg}"
+ echo "using ${gentoocfg}"
+elif [[ -f "${oldgentoocfg}" ]]; then
+ . "${oldgentoocfg}"
+ echo "using ${oldgentoocfg}"
+else
+ create_initial_config
+fi
+
+if [[ -z "${UI}" && -n "${UI_OPTIONS}" ]]; then
+ echo '${UI_OPTIONS} is no longer supported. ${UI} should be used instead instead' > /dev/stderr
+ echo 'Unsetting ${UI_OPTIONS} and trying to migrate to ${UI}' > /dev/stderr
+ if [[ ${UI_OPTIONS} = *--ui=console* ]]; then
+ UI=console
+ elif [[ ${UI_OPTIONS} = *--ui=swt* ]]; then
+ UI=swt
+ else
+ echo 'Could not make $UI from $UI_OPTIONS' > /dev/stderr
+ fi
+ unset UI_OPTIONS
+fi
+
+if [[ -z "${UI}" ]]; then
+ echo '$UI not set defaulting to swt' > /dev/stderr
+ UI="swt"
+fi
+
+[[ ! -e "${dotazudir}" ]] && create_initial_config
diff --git a/net-p2p/vuze/files/vuze-4.1.0.0-pre b/net-p2p/vuze/files/vuze-4.1.0.0-pre
new file mode 100644
index 000000000000..505a7e704df3
--- /dev/null
+++ b/net-p2p/vuze/files/vuze-4.1.0.0-pre
@@ -0,0 +1,75 @@
+#
+# Copyright (c) 2005, Petteri Räty <betelgeuse@gentoo.org>
+# Copyright (c) 2004, Jochen Maes <sejo@gentoo.org>
+# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
+# Copyright (c) 2004, Gentoo Foundation
+#
+# Licensed under the GNU General Public License, v2
+
+# The Azureus config dir has moved
+olddotazudir="${HOME}/.Azureus"
+oldgentoocfg="${olddotazudir}/gentoo.config"
+dotazudir="${HOME}/.azureus"
+gentoocfg="${dotazudir}/gentoo.config"
+
+if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then
+ cat > /dev/stderr <<END
+You have gentoo.config files in both
+${dotazudir} and
+${olddotazudir}
+${olddotazudir} is deprecated and you can delete this directory.
+
+END
+fi
+
+create_initial_config() {
+ if [[ ! -e "${dotazudir}" ]] ; then
+ mkdir "${dotazudir}"
+ echo "Creating ${dotazudir}"
+ fi
+
+ [[ ${UI} ]] && UI="swt"
+
+ echo "Creating ${gentoocfg}"
+
+ # Create the config file
+ cat > "${gentoocfg}" <<END
+# User Interface options:
+# console - console based
+# swt - swt (GUI) based
+UI="${UI}"
+
+# Options you want to pass to the java binary
+JAVA_OPTIONS=""
+END
+}
+
+if [[ -f "${gentoocfg}" ]] ; then
+ . "${gentoocfg}"
+ echo "using ${gentoocfg}"
+elif [[ -f "${oldgentoocfg}" ]]; then
+ . "${oldgentoocfg}"
+ echo "using ${oldgentoocfg}"
+else
+ create_initial_config
+fi
+
+if [[ -z "${UI}" && -n "${UI_OPTIONS}" ]]; then
+ echo '${UI_OPTIONS} is no longer supported. ${UI} should be used instead instead' > /dev/stderr
+ echo 'Unsetting ${UI_OPTIONS} and trying to migrate to ${UI}' > /dev/stderr
+ if [[ ${UI_OPTIONS} = *--ui=console* ]]; then
+ UI=console
+ elif [[ ${UI_OPTIONS} = *--ui=swt* ]]; then
+ UI=swt
+ else
+ echo 'Could not make $UI from $UI_OPTIONS' > /dev/stderr
+ fi
+ unset UI_OPTIONS
+fi
+
+if [[ -z "${UI}" ]]; then
+ echo '$UI not set defaulting to swt' > /dev/stderr
+ UI="swt"
+fi
+
+[[ ! -e "${dotazudir}" ]] && create_initial_config
diff --git a/net-p2p/vuze/files/vuze.desktop b/net-p2p/vuze/files/vuze.desktop
new file mode 100644
index 000000000000..cee9fcae3824
--- /dev/null
+++ b/net-p2p/vuze/files/vuze.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Vuze
+Comment=Vuze BitTorrent Client
+Exec=vuze
+Icon=vuze
+Terminal=false
+Categories=Network;
+Type=Application
+MimeType=application/x-bittorrent;
diff --git a/net-p2p/vuze/metadata.xml b/net-p2p/vuze/metadata.xml
new file mode 100644
index 000000000000..7303cef96964
--- /dev/null
+++ b/net-p2p/vuze/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
diff --git a/net-p2p/vuze/vuze-3.0.4.2-r1.ebuild b/net-p2p/vuze/vuze-3.0.4.2-r1.ebuild
new file mode 100644
index 000000000000..d65b1fb773c3
--- /dev/null
+++ b/net-p2p/vuze/vuze-3.0.4.2-r1.ebuild
@@ -0,0 +1,171 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/vuze-3.0.4.2-r1.ebuild,v 1.1 2009/02/06 11:46:35 caster Exp $
+
+###
+### @Todo The new Azureus gui requires swt built with embedded mozilla support,
+### or azureus will hang at startup. However, you can still start
+### the old GUI which doesn't require it, by using file/restart (which
+### is kind of bug, and maybe I should put that patch, that removes
+### restart from menu, back). It probably could be invoked also by using
+### a different Main class (look for them there are plenty :) so we could
+### have some old-gui flag which would run that one and remove
+### the mozilla dep. Best would be some per-user setting and startup
+### script check for swt mozilla support and die...
+###
+
+JAVA_PKG_IUSE="source"
+
+inherit eutils fdo-mime java-pkg-2 java-ant-2
+
+DESCRIPTION="BitTorrent client in Java, formerly called Azureus"
+HOMEPAGE="http://www.vuze.com/"
+SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip"
+LICENSE="GPL-2 BSD"
+
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="
+ >=dev-java/bcprov-1.35
+ >=dev-java/commons-cli-1.0
+ >=dev-java/log4j-1.2.8
+ >=dev-java/swt-3.3_pre3
+ !net-p2p/azureus-bin
+ >=virtual/jre-1.4"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/desktop-file-utils
+ >=virtual/jdk-1.4"
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ if ! built_with_use --missing false -o dev-java/swt firefox seamonkey xulrunner; then
+ eerror
+ eerror "dev-java/swt must be compiled with the firefox, seamonkey or xulrunner USE flag"
+ eerror "(support may vary per swt version) or vuze will hang at startup!"
+ eerror
+ die "recompile dev-java/swt with embedded browser"
+ fi
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+
+ ### Patches Azureus to use bcprov,
+ EPATCH_SUFFIX="patch" epatch "${FILESDIR}/patches-3.0.3.4"
+
+ ### Remove an unit test we never run
+ rm -v ./org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
+
+ ### Removes OS X files and entries.
+ rm -rv "org/gudy/azureus2/platform/macosx" \
+ "org/gudy/azureus2/ui/swt/osx" || die
+
+ ### Removes Windows files.
+ rm -rv "com/aelitis/azureus/util/win32" \
+ "org/gudy/azureus2/platform/win32" \
+ "org/gudy/azureus2/ui/swt/win32" || die
+
+ ### Removes test files.
+ rm -rv "org/gudy/azureus2/ui/swt/test" || die
+
+ ### Removes bouncycastle (we use our own bcprov).
+ rm -rv "org/bouncycastle" || die
+}
+
+src_compile() {
+ local mem
+ use amd64 && mem="256"
+ use x86 && mem="128"
+ use ppc && mem="192"
+ find . -name "*.java" > "${T}/az-src"
+ ejavac -J-Xmx${mem}m -encoding latin1 \
+ -classpath $(java-pkg_getjars swt-3,commons-cli-1,log4j,bcprov) \
+ @"${T}/az-src"
+ find . -type f -a ! -name "*.java" > "${T}/az-jarlist"
+ jar cf azureus.jar @"${T}/az-jarlist"
+}
+
+src_install() {
+
+ java-pkg_dojar "azureus.jar" || die "dojar failed"
+
+ java-pkg_dolauncher "${PN}" \
+ --main "org.gudy.azureus2.ui.common.Main" \
+ -pre "${FILESDIR}/${PN}-2.5.0.0-pre" \
+ --java_args '-Dazureus.install.path=${HOME}/.azureus/ ${JAVA_OPTIONS}' \
+ --pkg_args '--ui=${UI}'
+ dosym vuze /usr/bin/azureus
+
+ # https://bugs.gentoo.org/show_bug.cgi?id=204132
+ java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
+
+ doicon "${FILESDIR}/azureus.png"
+ domenu "${FILESDIR}/vuze.desktop"
+
+ use source && java-pkg_dosrc "${S}"/{com,edu,org}
+}
+
+pkg_postinst() {
+ ###
+ ### @Todo We should probably deactivate auto-update it by default,
+ ### or even remove the option.
+ ###
+ elog "Vuze has been formerly called Azureus and many references to the old name remain."
+ elog
+
+ elog "It is not recommended to use the Vuze auto-update feature,"
+ elog "and it might not even work. You should disable auto-update,"
+ elog "in \"Tools\" -> \"Options...\" -> \"Interface\" -> \"Start\"."
+ elog
+
+ elog
+ elog "After running Vuze for the first time, configuration"
+ elog "options will be placed in \"~/.azureus/gentoo.config\"."
+ elog "If you need to change some startup options, you should"
+ elog "modify this file, rather than the startup script."
+ elog
+ elog "Using this config file you can start the console UI."
+ elog
+
+ elog
+ elog "If you have problems starting Vuze, try starting it"
+ elog "from the command line to look at debugging output."
+ elog
+
+ elog
+ elog "To switch from classic UI to Vuze use:"
+ elog "Tools -> Options -> Interface -> Start"
+ elog "\t-> Display Azureus UI Chooser"
+ elog "Restart not working properly is a known issue."
+ elog
+
+ ewarn
+ ewarn "If you are upgrading, and the menu in Vuze has entries"
+ ewarn "like \"!MainWindow.menu.transfers!\" then you have a stray"
+ ewarn "\"MessageBundle.properties\" file, and you may safely"
+ ewarn "delete \"~/.azureus/MessagesBundle.properties\"."
+ ewarn
+
+ ewarn
+ ewarn "Before azureus-2.5.0.0-r3, the Azureus plugin directory was"
+ ewarn "set to \"~/plugins\", instead of \"~/.azureus/plugins\"."
+ ewarn "If needed, you should move the plugins, to the new location."
+ ewarn
+
+ ewarn
+ ewarn "Running Azureus as root is not supported."
+ ewarn
+
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/net-p2p/vuze/vuze-4.1.0.0.ebuild b/net-p2p/vuze/vuze-4.1.0.0.ebuild
new file mode 100644
index 000000000000..42b29aa978e9
--- /dev/null
+++ b/net-p2p/vuze/vuze-4.1.0.0.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/vuze/vuze-4.1.0.0.ebuild,v 1.1 2009/02/06 11:46:35 caster Exp $
+
+EAPI=2
+
+JAVA_PKG_IUSE="source"
+
+inherit eutils fdo-mime java-pkg-2 java-ant-2
+
+DESCRIPTION="BitTorrent client in Java, formerly called Azureus"
+HOMEPAGE="http://www.vuze.com/"
+SRC_URI="mirror://sourceforge/azureus/Vuze_${PV}_source.zip"
+LICENSE="GPL-2 BSD"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+# bundles parts of commons-lang, but modified
+# bundles parts of http://www.programmers-friend.org/
+RDEPEND="
+ dev-java/json-simple:0
+ >=dev-java/bcprov-1.35:0
+ >=dev-java/commons-cli-1.0:1
+ >=dev-java/log4j-1.2.8:0
+ >=dev-java/swt-3.4:3.4[cairo,xulrunner]
+ !net-p2p/azureus-bin
+ >=virtual/jre-1.5"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/desktop-file-utils
+ >=virtual/jdk-1.5"
+
+PDEPEND="~net-p2p/vuze-coreplugins-${PV}"
+
+src_unpack() {
+ mkdir "${S}" && cd "${S}" || die
+ unpack ${A}
+
+ # build.xml disappeared from 4.1.0.0 although it was there in 4.0.0.4
+ # hopefully that's just a packaging mistake
+ [[ -f build.xml ]] && die "upstream has build.xml again, don't overwrite"
+ cp "${FILESDIR}/build.xml" . || die "failed to copy build.xml"
+
+ epatch "${FILESDIR}/patches-4.1.0.0/use-jdk-cipher-only.diff"
+ epatch "${FILESDIR}/patches-4.1.0.0/remove-osx-platform.diff"
+ epatch "${FILESDIR}/patches-4.1.0.0/tableimpl-remove-win32-import.diff"
+
+ ### Removes OS X files and entries.
+ rm -rv "org/gudy/azureus2/platform/macosx" \
+ "org/gudy/azureus2/ui/swt/osx" || die
+
+ ### Removes Windows files.
+ rm -v ./org/gudy/azureus2/ui/swt/win32/Win32UIEnhancer.java || die
+
+ ### Removes test files.
+ rm -rv "org/gudy/azureus2/ui/swt/test" \
+ org/gudy/azureus2/ui/console/multiuser/TestUserManager.java || die
+
+ ### Removes bouncycastle (we use our own bcprov).
+ rm -rv "org/bouncycastle" || die
+
+ ### Removes bundled json
+ rm -rv "org/json" || die
+
+ mkdir -p build/libs || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="swt-3.4,bcprov,json-simple,log4j,commons-cli-1"
+
+src_compile() {
+ local mem
+ use amd64 && mem="256"
+ use x86 && mem="192"
+ use ppc && mem="192"
+ use ppc64 && mem="256"
+ export ANT_OPTS="-Xmx${mem}m"
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar || die "dojar failed"
+ dodoc ChangeLog.txt || die
+
+ java-pkg_dolauncher "${PN}" \
+ --main org.gudy.azureus2.ui.common.Main -pre "${FILESDIR}/${PN}-4.1.0.0-pre" \
+ --java_args '-Dazureus.install.path=/usr/share/vuze/ ${JAVA_OPTIONS}' \
+ --pkg_args '--ui=${UI}'
+ dosym vuze /usr/bin/azureus
+
+ # https://bugs.gentoo.org/show_bug.cgi?id=204132
+ java-pkg_register-environment-variable MOZ_PLUGIN_PATH /usr/lib/nsbrowser/plugins
+
+ newicon "${S}"/org/gudy/azureus2/ui/icons/a32.png vuze.png
+ domenu "${FILESDIR}/${PN}.desktop"
+
+ use source && java-pkg_dosrc "${S}"/{com,edu,org}
+}
+
+pkg_postinst() {
+ ###
+ ### @Todo We should probably deactivate auto-update it by default,
+ ### or even remove the option - bug #218959
+ ###
+ ewarn "Running Vuze as root is not supported and may result in untracked"
+ ewarn "updates to shared components and then collisions on updates via portage"
+
+ elog "Vuze has been formerly called Azureus and many references to the old name remain."
+ elog
+ elog "Since version 4.1.0.0, plugins that are normally bundled by upstream"
+ elog "(and auto-installed in each user's ~/.azureus if not bundled)"
+ elog "are now installed into shared plugin directory by the vuze-coreplugins ebuild."
+ elog "Users are recommended to delete the following plugin copies:"
+ elog "~/.azureus/plugins/{${PLUGINS_N},${RATING_N},${UPDATER_N},${UPNPAV_N}}"
+ elog
+ elog "Vuze may warn that shared plugin dir is not writable, that's fine."
+ elog "It may also attempt to update some these plugins and fail to write."
+ elog "In that case look for or fill a bump bug in bugs.gentoo.org"
+ elog
+ elog "We plan to disable updater for shared components and plugins."
+ elog "See progress in bug #218959, patches welcome."
+ elog
+ elog "After running Vuze for the first time, configuration"
+ elog "options will be placed in '~/.azureus/gentoo.config'."
+ elog "If you need to change some startup options, you should"
+ elog "modify this file, rather than the startup script."
+ elog "Using this config file you can start the console UI."
+ elog
+ elog "To switch from classic UI to Vuze use"
+ elog "1: Tools > Options > Interface > Start > Display Vuze UI Chooser"
+ elog "2: Toolbar (right-hand side)"
+ elog
+ elog "If you have problems starting Vuze, try starting it"
+ elog "from the command line to look at debugging output."
+
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}