--- /dev/null
+# ChangeLog for net-p2p/azureus
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.1 2004/11/15 10:29:24 sejo Exp $
+
+ 15 Nov 2004; <SeJo@gentoo.org> :
+ initial add of ebuild
+
--- /dev/null
+MD5 a63336d02253ae5fe2ad69f813bdd7d8 metadata.xml 329
+MD5 575d8c4c512344e302dcda6e0b2f8723 ChangeLog 261
+MD5 f4bbad69c5641c5a91d1daa68ab3e492 azureus-2.2.0.0.ebuild 2169
+MD5 21218e1a7c134f02c8e42bcb63375e74 files/SWTThread.java 2549
+MD5 176ecbdf186cc2d1e318ece1acd3f1bf files/build.xml 659
+MD5 70c17db47c9a596929112714f82ac010 files/azureus.desktop 153
+MD5 2d3136c60488dd51bef012cbcb59201b files/azureus.png 743
+MD5 5ad6311f84c6f6205bf3c57160a246a2 files/azureus-gentoo.sh 1793
+MD5 67821fe5d66efda508803dfa3a87b967 files/digest-azureus-2.2.0.0 134
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-2.2.0.0.ebuild,v 1.1 2004/11/15 10:29:24 sejo Exp $
+
+DESCRIPTION="Azureus - Java BitTorrent Client"
+HOMEPAGE="http://azureus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/azureus/Azureus_${PV}_source.zip
+ mirror://gentoo/seda-20040224.zip"
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~ppc"
+IUSE=""
+DEPEND="virtual/libc
+ >=dev-java/swt-3.0
+ >=app-arch/unzip-5.0"
+RDEPEND="virtual/libc
+ >=dev-java/swt-3.0
+ >=dev-java/log4j-1.2.8
+ >=dev-java/commons-cli-1.0
+ >=dev-java/systray4j-2.4"
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ PROGRAM_DIR="/usr/lib/${PN}"
+ mkdir ${S} && cd ${S}
+ unpack ${A}
+ cp ${FILESDIR}/build.xml ${S} || die "cp build.xml failed"
+ #removing osx files and entries
+ cp -f ${FILESDIR}/SWTThread.java \
+ ${S}/org/gudy/azureus2/ui/swt/mainwindow/SWTThread.java \
+ || die "cp SWTThread.java failed!"
+ # copying the shell to run the app
+ cp ${FILESDIR}/azureus-gentoo.sh ${S}/azureus \
+ || die "cp azureus-gentoo.sh filed"
+ # Set runtime settings in the startup script
+ sed -i "s:##PROGRAM_DIR##:${PROGRAM_DIR}:" ${S}/azureus \
+ || die "sed azureus program dir failed !"
+ rm -fr org/gudy/azureus2/ui/swt/osx org/gudy/azureus2/ui/swt/test
+}
+
+src_compile() {
+ # Figure out correct boot classpath
+ if [ ! -z "$(java-config --java-version | grep IBM)" ] ; then
+ # IBM JRE
+ ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/core.jar:$(java-config --jdk-home)/jre/lib/xml.jar:$(java-config --jdk-home)/jre/lib/graphics.jar"
+ else
+ # Sun derived JREs (Blackdown, Sun)
+ ant_extra_opts="-Dbootclasspath=$(java-config --jdk-home)/jre/lib/rt.jar"
+ fi
+ ant -q -q \
+ -buildfile build.xml ${ant_extra_opts} jar \
+ || die "ant build failed"
+}
+
+src_install() {
+ insinto ${PROGRAM_DIR}
+ doins *.jar || die "doins jar failed"
+ dobin azureus || die "dobin /usr/bin/azureus failed"
+ insinto /usr/share/pixmaps
+ doins "${FILESDIR}/azureus.png"
+ insinto /usr/share/applications
+ doins "${FILESDIR}/azureus.desktop"
+ dodoc seda-README.txt
+}
--- /dev/null
+/*\r
+ * Created on Apr 30, 2004\r
+ * Created by Olivier Chalouhi\r
+ * Copyright (C) 2004 Aelitis, All Rights Reserved.\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ * GNU General Public License for more details.\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
+ * \r
+ * AELITIS, SARL au capital de 30,000 euros\r
+ * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.\r
+ *\r
+ */\r
+package org.gudy.azureus2.ui.swt.mainwindow;\r
+\r
+\r
+import org.eclipse.swt.widgets.Display;\r
+import org.gudy.azureus2.core3.util.*;\r
+\r
+/**\r
+ * The main SWT Thread, the only one that should run any GUI code.\r
+ */\r
+public class SWTThread {\r
+ \r
+ private static SWTThread instance;\r
+ \r
+ public static SWTThread getInstance() {\r
+ return instance;\r
+ }\r
+ \r
+ public static void createInstance(Application app) throws SWTThreadAlreadyInstanciatedException {\r
+ if(instance != null) {\r
+ throw new SWTThreadAlreadyInstanciatedException();\r
+ }\r
+ //Will only return on termination\r
+ new SWTThread(app);\r
+\r
+ }\r
+ \r
+ \r
+ Display display;\r
+ private boolean terminated;\r
+ private Thread runner;\r
+ \r
+ private SWTThread(final Application app) { \r
+ \r
+ instance = this;\r
+ \r
+ display = new Display();\r
+ Display.setAppName("Azureus");\r
+ \r
+ runner = new Thread( new AERunnable(){ public void runSupport(){app.run();}},"Main Thread");\r
+ runner.start(); \r
+ \r
+ while(!display.isDisposed() && !terminated) {\r
+ try {\r
+ if (!display.readAndDispatch())\r
+ display.sleep();\r
+ }\r
+ catch (Exception e) {\r
+ Debug.printStackTrace( e );\r
+ }\r
+ }\r
+ \r
+ //if it hasn been terminated, there's no way to stop the application\r
+ //as the application is the one who has stopped it.\r
+ if(!terminated) {\r
+ app.stopIt();\r
+ }\r
+ \r
+ display.dispose();\r
+ }\r
+ \r
+ \r
+ \r
+ public void terminate() {\r
+ terminated = true;\r
+ }\r
+ \r
+ public Display getDisplay() {\r
+ return display;\r
+ }\r
+}\r
--- /dev/null
+#!/bin/sh
+
+PROGRAM_DIR=##PROGRAM_DIR## # directory where all the files were extracted
+
+AZ_CONFIG="${HOME}/.Azureus/gentoo.config"
+if [ -f ~/.Azureus/gentoo.config ]; then
+ . ~/.Azureus/gentoo.config
+else
+ if [ ! -e ~/.Azureus ]; then
+ mkdir ~/.Azureus
+ echo "Creating ~/.Azureus..."
+ fi
+
+ # Setup defaults
+ UI_OPTIONS="--ui=swt"
+
+ # Create the config file
+ cat > ${AZ_CONFIG} <<END
+# User Interface options:
+# web - web based
+# web2 - web based
+# console - console based
+# swt - swt (GUI) based
+#
+# When selecting just 1, use '--ui=<ui>'
+# When selecting multiple, use '--uis=<ui>,<ui>'
+UI_OPTIONS="--ui=swt"
+END
+
+fi
+
+MSG0="ERROR:\nYou must edit this script and change PROGRAM_DIR to point to where you installed Azureus"
+MSG1="Attempting to start Azureus..."
+
+AZDIR=./
+if [ ! -e id.azureus.dir.file ]; then
+ AZDIR=$PROGRAM_DIR
+ if [ ! -d $AZDIR ]; then
+ echo $MSG0 >&2
+ exit -1
+ fi
+fi
+
+cd ${AZDIR}
+echo $MSG1
+
+# This should work as long as your classpath is setup right...
+#JARS=`ls *.jar | grep -v Azureus2`
+#for FILE in $JARS; do CLASSPATH="${FILE}:${CLASSPATH}"; done
+#java -cp $CLASSPATH -Djava.library.path="/usr/lib:${AZDIR}" -jar Azureus2.jar ${UI_OPTIONS} "$1"
+
+# Try this if the above doesn't work
+for FILE in *.jar; do CLASSPATH="${FILE}:${CLASSPATH}"; done
+java -cp $CLASSPATH -Djava.library.path="/usr/share/swt/lib:${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"
+
+if [ $? -ne 0 ]; then
+ echo "If you recieved an error about a missing java class, you need to setup"
+ echo "your classpath correctly."
+ echo "This should do the trick (as root):"
+ echo "java-config --add-system-classpath=junit,log4j,commons-cli-1,systray4j,swt"
+ echo "env-update && source /etc/profile"
+ echo
+ echo "Currently, your classpath (including azureus additions) is:"
+ echo "${CLASSPATH}"
+fi
--- /dev/null
+[Desktop Entry]
+Name=Azureus
+Comment=Azureus BitTorrent Client
+Exec=azureus
+Icon=azureus.png
+Terminal=0
+Categories=Application;Network;
+Type=Application
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="compile" name="Azureus">
+ <target name="compile">
+ <javac debug="true" deprecation="false" destdir="." srcdir=".">
+ <classpath>
+ <pathelement location="."/>
+ <pathelement location="/usr/share/commons-cli-1/lib/commons-cli.jar"/>
+ <pathelement location="/usr/share/swt/lib/swt.jar"/>
+ <pathelement location="seda.jar"/>
+ </classpath>
+ </javac>
+ </target>
+ <target name="jar" depends="compile">
+ <jar jarfile="azureus.jar" basedir=".">
+ <fileset dir=".">
+ <include name="**/*.class"/>
+ <include name="**/*.properties"/>
+ </fileset>
+ </jar>
+ </target>
+</project>
--- /dev/null
+MD5 aed39c29a6bcad2c2d377d5f5ef20e0e Azureus_2.2.0.0_source.zip 3052987
+MD5 5f79ac344851884646166d733b5cde8d seda-20040224.zip 755126
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>sejo@gentoo.org</email>
+ <name>Maes Jochen</name>
+ <description>Maintainer</description>
+ </maintainer>
+ <longdescription>Azureus P2P source build</longdescription>
+</pkgmetadata>