diff options
author | Marcin Kryczek <mkay@gentoo.org> | 2005-10-02 23:34:04 +0000 |
---|---|---|
committer | Marcin Kryczek <mkay@gentoo.org> | 2005-10-02 23:34:04 +0000 |
commit | 4f12bbab835731dd6e5dc79c0a15de8a61afe606 (patch) | |
tree | e1b8f9c314c5579e78a2de023872df0ee862592a /net-p2p | |
parent | Version bumped. (diff) | |
download | historical-4f12bbab835731dd6e5dc79c0a15de8a61afe606.tar.gz historical-4f12bbab835731dd6e5dc79c0a15de8a61afe606.tar.bz2 historical-4f12bbab835731dd6e5dc79c0a15de8a61afe606.zip |
version bump
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/azureus/ChangeLog | 8 | ||||
-rw-r--r-- | net-p2p/azureus/Manifest | 22 | ||||
-rw-r--r-- | net-p2p/azureus/azureus-2.3.0.4.ebuild | 82 | ||||
-rw-r--r-- | net-p2p/azureus/files/UpdaterPatcher.java | 101 | ||||
-rw-r--r-- | net-p2p/azureus/files/azureus-gentoo-2.3.0.4.sh | 42 | ||||
-rw-r--r-- | net-p2p/azureus/files/digest-azureus-2.3.0.4 | 2 |
6 files changed, 242 insertions, 15 deletions
diff --git a/net-p2p/azureus/ChangeLog b/net-p2p/azureus/ChangeLog index cc0ca97a6b40..500ad6002e0a 100644 --- a/net-p2p/azureus/ChangeLog +++ b/net-p2p/azureus/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-p2p/azureus # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.4 2005/05/12 07:06:49 sejo Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/ChangeLog,v 1.5 2005/10/02 23:34:04 mkay Exp $ + +*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 diff --git a/net-p2p/azureus/Manifest b/net-p2p/azureus/Manifest index e38b630d214a..0aa7b94273a1 100644 --- a/net-p2p/azureus/Manifest +++ b/net-p2p/azureus/Manifest @@ -1,19 +1,13 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 8735a4d9fbe03266993e68ffc76e2102 ChangeLog 1015 MD5 5d50818a7bea6da45005942631c1386c azureus-2.2.0.0-r1.ebuild 2314 -MD5 6e003654677ccc70240db2a30d63f4f8 ChangeLog 845 MD5 a63336d02253ae5fe2ad69f813bdd7d8 metadata.xml 329 -MD5 67821fe5d66efda508803dfa3a87b967 files/digest-azureus-2.2.0.0-r1 134 +MD5 b281677717c54a823d556b662e88ba6b azureus-2.3.0.4.ebuild 2528 +MD5 21218e1a7c134f02c8e42bcb63375e74 files/SWTThread.java 2549 MD5 77d299aef0633c501b998f3ec0c1f0c9 files/azureus-gentoo.sh 1010 MD5 70c17db47c9a596929112714f82ac010 files/azureus.desktop 153 -MD5 3ae1e81c8450fa93040e4e97a1311d88 files/build.xml 661 -MD5 21218e1a7c134f02c8e42bcb63375e74 files/SWTThread.java 2549 MD5 2d3136c60488dd51bef012cbcb59201b files/azureus.png 743 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFCgyGYI1lqEGTUzyQRAh+FAJ0bLTcEJTXMBDUVXOgASzyScsiueACgoWDe -R0f4ARQgombd+A9f03HQ/lQ= -=XW2s ------END PGP SIGNATURE----- +MD5 3ae1e81c8450fa93040e4e97a1311d88 files/build.xml 661 +MD5 67821fe5d66efda508803dfa3a87b967 files/digest-azureus-2.2.0.0-r1 134 +MD5 7aeb8af08a00d9bec6d2b7aaddc55fa8 files/azureus-gentoo-2.3.0.4.sh 1000 +MD5 e3cc00baa30d499993d4f65e56ad03bc files/UpdaterPatcher.java 2523 +MD5 29bddb8c1c68b6c8cb4fd46b070b7a2d files/digest-azureus-2.3.0.4 134 diff --git a/net-p2p/azureus/azureus-2.3.0.4.ebuild b/net-p2p/azureus/azureus-2.3.0.4.ebuild new file mode 100644 index 000000000000..dc597b8de4da --- /dev/null +++ b/net-p2p/azureus/azureus-2.3.0.4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/azureus/azureus-2.3.0.4.ebuild,v 1.1 2005/10/02 23:34:04 mkay 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="~x86" +IUSE="" +DEPEND="virtual/libc + >=dev-java/swt-3.0 + >=app-arch/unzip-5.0 + !net-p2p/azureus-bin" +RDEPEND="virtual/libc + >=dev-java/swt-3.0-r2 + >=dev-java/log4j-1.2.8 + >=dev-java/commons-cli-1.0" + +S=${WORKDIR}/${PN} + +src_unpack() { + local 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-${PV}.sh ${S}/azureus \ + || die "cp azureus-gentoo-${PV}.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 org/gudy/azureus2/platform/macosx/access + + cp ${FILESDIR}/UpdaterPatcher.java ${S}/org/gudy/azureus2/update/ \ + || die "cp UpdaterPatrcher.java failed" +} + +src_compile() { + einfo + einfo "Compiling the sources. This may take a few minutes..." + einfo + + # 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() { + local PROGRAM_DIR="/usr/lib/${PN}" + + 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 + + ewarn "Please do not run azureus as root!" + ewarn "Azureus has not been developed for multi-user environments!!!!!" +} diff --git a/net-p2p/azureus/files/UpdaterPatcher.java b/net-p2p/azureus/files/UpdaterPatcher.java new file mode 100644 index 000000000000..d8d5f9eb2696 --- /dev/null +++ b/net-p2p/azureus/files/UpdaterPatcher.java @@ -0,0 +1,101 @@ +package org.gudy.azureus2.update; +/* + * Created on 31-May-2004 + * Created by Paul Gardner + * Copyright (C) 2004 Aelitis, All Rights Reserved. + * + * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * AELITIS, SARL au capital de 30,000 euros + * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France. + * + */ + +/** + * @author parg + * + */ + +import java.io.File; +import java.util.Properties; + +import org.gudy.azureus2.plugins.*; + +public class +UpdaterPatcher + implements UnloadablePlugin +{ + public void + initialize( + PluginInterface pi ) + { + Properties props = pi.getPluginProperties(); + + props.setProperty( "plugin.mandatory", "true" ); + + try{ + String library_path = System.getProperty( "java.library.path"); + String old_path = library_path; + + if ( library_path != null ){ + + // remove any quotes from the damn thing + + boolean changed = false; + + String temp = ""; + + for (int i=0;i<library_path.length();i++){ + + char c = library_path.charAt(i); + + if ( c != '"' ){ + + temp += c; + + }else{ + + changed = true; + } + } + + library_path = temp; + + // remove trailing separator chars if they exist as they stuff up + // the following " + + while( library_path.endsWith(File.separator)){ + + changed = true; + + library_path = library_path.substring( 0, library_path.length()-1 ); + } + + if ( changed ){ + + System.out.println( "UpdaterPatcher: Fixing library path: old = " + old_path + ", new = " + library_path ); + + System.setProperty( "java.library.path", library_path ); + } + } + }catch( Throwable e ){ + + e.printStackTrace(); + } + } + + public void + unload() + { + } +} diff --git a/net-p2p/azureus/files/azureus-gentoo-2.3.0.4.sh b/net-p2p/azureus/files/azureus-gentoo-2.3.0.4.sh new file mode 100644 index 000000000000..f42bc4430b0a --- /dev/null +++ b/net-p2p/azureus/files/azureus-gentoo-2.3.0.4.sh @@ -0,0 +1,42 @@ +#! /bin/bash +# +# 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 + +azudir=/usr/lib/azureus +dotazudir=${HOME}/.Azureus +gentoocfg=${dotazudir}/gentoo.config + +if [ -f ${gentoocfg} ] ; then + . ${gentoocfg} +else + if [ ! -e ${dotazudir} ] ; then + mkdir ${dotazudir} + echo "Creating ${dotazudir}" + fi + + # Setup defaults + UI_OPTIONS="--ui=swt" + + # Create the config file + cat > ${gentoocfg} <<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 + +cd ${dotazudir} + +CLASSPATH=$(java-config -p junit,log4j,commons-cli-1,swt-3):${azudir}/azureus.jar:${azudir}/seda.jar +java -cp $CLASSPATH -Djava.library.path=/usr/lib org.gudy.azureus2.ui.swt.Main "$1" diff --git a/net-p2p/azureus/files/digest-azureus-2.3.0.4 b/net-p2p/azureus/files/digest-azureus-2.3.0.4 new file mode 100644 index 000000000000..56e8319229c4 --- /dev/null +++ b/net-p2p/azureus/files/digest-azureus-2.3.0.4 @@ -0,0 +1,2 @@ +MD5 7ffa5f844f7fdef28e3663d5cdee312b Azureus_2.3.0.4_source.zip 4537695 +MD5 5f79ac344851884646166d733b5cde8d seda-20040224.zip 755126 |