You are not logged in.

#1 2004-05-14 22:15:42

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

[network] azureus

# Packager: Dawid Ciezarkiewicz "arael" <arael[at]fov[dot]pl>
pkgname=azureus
pkgver=2.0.8.4
pkgrel=1
pkgdesc="Azureus is a java bittorrent client."
url="http://azureus.sourceforge.net/index.php"
depends=(j2re)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://switch.dl.sourceforge.net/sourceforge/azureus/Azureus${pkgver}.jar 
http://switch.dl.sourceforge.net/sourceforge/azureus/Azureus_${pkgver}_linux.GTK.tar.bz2)
md5sums=()

build() {
    cd $startdir/src/$pkgname
    mkdir -p $startdir/pkg/usr/share/azureus
    mkdir -p $startdir/pkg/usr/bin
    cp * $startdir/pkg/usr/share/azureus/
    cd $startdir/pkg/usr/bin/
    echo "#!/bin/sh" > azureus
    echo "cd /usr/share/azureus; ./azureus" >> azureus
    chmod +x azureus
}

jabber id: arael (at) fov (dot) pl

Offline

#2 2004-05-14 22:35:19

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [network] azureus

nice - i dont know how to use this bittorant, but your pkg is working :-)

one tip for making pkgs better:

after building successfully the pkg with makepkg you should also create the md5sums for the sources: just run after successfull build of pkg makepkg -g >>PKGBUILD what will add you the correct md5sums-line


The impossible missions are the only ones which succeed.

Offline

#3 2004-05-15 17:26:06

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: [network] azureus

ou should also create the md5sums for the sources: just run after successfull build of pkg makepkg -g >>PKGBUILD what will add you the correct md5sums-line

I was too lazy to do it by hand. Great tip. Thanks.


jabber id: arael (at) fov (dot) pl

Offline

#4 2004-05-16 17:00:28

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: [network] azureus

the problem I see with azureus is that it has it's own update system, that I believe would conflict with pacman (anyway you can just use pacman to upgrade, but the included updater, saves you're downloaded files, and other stuff.)


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#5 2004-05-16 19:32:45

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [network] azureus

Looks like a great package, thanks for putting it in. smile
Could you explain what happens in the build()? I noticed its a Java prog, and so far all I've been doing is the C and C++ progs since I don't know how to PKGBUILD other types. A real help would be to explain the 'echo' commands.
I know that this should probably go to the newbie forum, but since the PKGBUILD is here, I thought I'd ask here. :oops:
Thanks.

Offline

#6 2004-05-16 20:13:09

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [network] azureus

Well the PKGBUILD puts the java programs in /usr/share/azureus.  The echo is used to create a shell script called /usr/bin/azureus which will change to the /usr/share/azureus and execute the program there.

Offline

#7 2004-05-16 20:39:40

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: [network] azureus

Just as kpiche said.

I don't know is this the smartest way, but I'm always doing PKGBUILD when I have to install something from source. And always publishes what I've created. I think it's good behavior wink .


jabber id: arael (at) fov (dot) pl

Offline

#8 2004-05-16 21:08:55

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [network] azureus

Ok, so it's basically a copy job, right?
And whatever is inside the double-quotes is echoed. What are the '>' for? Are they pointers or redirectors or sth(just fishing for words here)? And whats the difference b/w '>' and '>>'?
Thanks for the responses.
Ravster

Offline

#9 2004-05-16 21:47:46

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: [network] azureus

I'm not English user and this forum isn't right place for learning bash scripting. I advice you to read in. ex. this: http://www.tldp.org/LDP/abs/html/ . I wish you nice learning. smile


jabber id: arael (at) fov (dot) pl

Offline

#10 2004-05-16 21:53:10

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [network] azureus

K, I'll do that. Sorry about the questions :oops:
And thanks for the link.

Offline

#11 2004-05-18 12:54:35

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [network] azureus

Check out the "CLI for Noobies" series as well.  Specifically the redirection one: http://www.linux.com/article.pl?sid=04/05/02/1758211

Offline

#12 2004-05-18 14:08:40

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [network] azureus

ravster wrote:

Ok, so it's basically a copy job, right?
And whatever is inside the double-quotes is echoed. What are the '>' for? Are they pointers or redirectors or sth(just fishing for words here)? And whats the difference b/w '>' and '>>'?
Thanks for the responses.
Ravster

>
means: write-this > to-this (by replacing it)

>>
means: write-this >> to-this (by appending)


The impossible missions are the only ones which succeed.

Offline

#13 2004-08-24 18:37:51

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [network] azureus

thanks man, this is the best torrent client I have used, both in win and linux smile


To err is human... to really foul up requires the root password.

Offline

#14 2004-08-30 01:13:29

Olli
Member
Registered: 2004-04-01
Posts: 57

Re: [network] azureus

I've made some adjustments (improvements?) to the PKGBUILD:

PKGBUILD

# Packager: Oliver Willemse "Olli" <olli[at]xs4all[dot]nl>
pkgname=azureus
pkgver=2.1.0.4
pkgrel=1
pkgdesc="Azureus is a powerful, full-featured, cross-platform java BitTorrent client."
url="http://azureus.sourceforge.net/"
license="GPL"
depends=(j2re)
source=(http://dl.sourceforge.net/sourceforge/azureus/Azureus${pkgver}.jar 
http://dl.sourceforge.net/sourceforge/azureus/Azureus_${pkgver}_linux.GTK.tar.bz2 azureus.install)
md5sums=('e2f810ab20cbc8dc9df0bbce8ea1edc8' '60d77db6a625e9ec224bc331c3a8b22e' '522d837183d8bce6d1f7f2d77fde03c0')
install=azureus.install

build() {
    cd $startdir/src/$pkgname
    mkdir -p $startdir/pkg/opt/azureus
    mkdir -p $startdir/pkg/etc/profile.d
    cp -R * $startdir/pkg/opt/azureus/
    cd $startdir/pkg/opt/azureus/
    cat azureus | sed s/'JAVA_PROGRAM_DIR=""'/'JAVA_PROGRAM_DIR="/opt/java/jre/bin/"'/g > azureus
    cd $startdir/pkg/etc/profile.d/
    echo "export PATH=$PATH:/opt/azureus" > azureus.sh
    chmod +x azureus.sh
}

azureus.install

# arg 1: path stuff
post_install() {
  /bin/true
  echo ""
  echo ""
  echo "PLEASE READ!"
  echo ""
  echo "**********"
  echo "To add Azureus to your PATH, either login again or run"
  echo "'source /etc/profile' from a terminal and you're done!"
  echo "**********"
}

op=$1
shift

$op $*

DIY: Doom-It-Yourself

Offline

#15 2004-09-03 19:41:48

Brice
Member
Registered: 2003-12-10
Posts: 19

Re: [network] azureus

by the way, when packaging softs from sf.net, you shouldn't use neither belnet.dl.sf.net nor heanet.dl.sf.net but dl.sf.net, which is a random link to the servers.
Just so you know.


Brice Carpentier aka Br|ce
JabberID : brice@myjabbet.net

Offline

#16 2004-09-03 23:19:10

cmcginty
Member
From: Sacramento, CA, USA
Registered: 2004-08-07
Posts: 16

Re: [network] azureus

There is an error in the last PKGBUILD file in this thread. You should change the second to last command from:

echo "export PATH=$PATH:/opt/azureus" > azureus.sh 

to:

echo "export PATH=$PATH:/opt/azureus" > azureus.sh 

Offline

#17 2004-09-06 05:38:00

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [network] azureus

I couldn't make this new package work, at all.
Reinstalled using the old script.


To err is human... to really foul up requires the root password.

Offline

#18 2004-09-06 20:54:22

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [network] azureus

tried the os x version on my mac yesterday ... not a simple or good client at all.


AKA uknowme

I am not your friend

Offline

#19 2004-09-08 19:51:08

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [network] azureus

sarah31 wrote:

tried the os x version on my mac yesterday ... not a simple or good client at all.

there is no difference between the mac, linux or win versions. (java is very nice smile)
I don't know what previous torrent clients you have tried, but I think azureus is the greastest of them all.


To err is human... to really foul up requires the root password.

Offline

#20 2004-09-10 17:30:36

Olli
Member
Registered: 2004-04-01
Posts: 57

Re: [network] azureus

cmcginty wrote:

There is an error in the last PKGBUILD file in this thread. You should change the second to last command from:

echo "export PATH=$PATH:/opt/azureus" > azureus.sh 

to:

echo "export PATH=$PATH:/opt/azureus" > azureus.sh 

Good point, I'll change it.

oscar_ wrote:

I couldn't make this new package work, at all.
Reinstalled using the old script.

What was the problem?


DIY: Doom-It-Yourself

Offline

#21 2004-09-19 08:27:04

samael
Member
Registered: 2004-08-23
Posts: 22

Re: [network] azureus

I get failed md5sums check:

[root@archbox azureus]# makepkg &
[1] 3558
[root@archbox azureus]# ==> Making package: azureus  (Sun Sep 19 11:26:39 UTC 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Using local copy of Azureus2.1.0.4.jar
==>     Using local copy of Azureus_2.1.0.4_linux.GTK.tar.bz2
==>     Found azureus.install in build dir
==> Validating source files with MD5sums
    Azureus2.1.0.4.jar ... Passed
    Azureus_2.1.0.4_linux.GTK.tar.bz2 ... Passed
    azureus.install ... FAILED
==> ERROR: One or more files did not pass the validity check!

[1]+  Exit 1                  makepkg

Offline

#22 2004-09-19 08:56:19

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [network] azureus

Olli wrote:
oscar_ wrote:

I couldn't make this new package work, at all.
Reinstalled using the old script.

What was the problem?

it wouldn't start sad


To err is human... to really foul up requires the root password.

Offline

#23 2004-09-19 12:31:56

topito
Member
From: Catalonia
Registered: 2004-03-25
Posts: 118
Website

Re: [network] azureus

mmm, I doens't work for me after big system upgrade (kde, gcc...), when I add a new torrent I get an E/S error, like it is not able to write to the disc (there is enoguh free space and the directory permissions are ok), the output in the console is:

Starting Azureus...
Loading Azureus:
/opt/java/jre/bin/java -cp :/opt/java/jre/lib:Azureus2.jar:swt.jar:swt-mozilla.jar:swt-pi.jar -Djava.library.path=/opt/azureus org.gudy.azureus2.ui.swt.Main ''
org.gudy.azureus2.core3.torrent.TOTorrentException: TOTorrentDeserialise: Not BEncoded
        at org.gudy.azureus2.core3.torrent.impl.TOTorrentDeserialiseImpl.construct(TOTorrentDeserialiseImpl.java:130)
        at org.gudy.azureus2.core3.torrent.impl.TOTorrentDeserialiseImpl.<init>(TOTorrentDeserialiseImpl.java:64)
        at org.gudy.azureus2.core3.torrent.TOTorrentFactory.deserialiseFromBEncodedFile(TOTorrentFactory.java:56)
        at org.gudy.azureus2.core3.util.TorrentUtils.readFromFile(TorrentUtils.java:59)
        at org.gudy.azureus2.core3.util.TorrentUtils.readFromFile(TorrentUtils.java:47)
        at org.gudy.azureus2.core3.download.impl.DownloadManagerImpl.readTorrent(DownloadManagerImpl.java:384)
        at org.gudy.azureus2.core3.download.impl.DownloadManagerImpl.<init>(DownloadManagerImpl.java:266)
        at org.gudy.azureus2.core3.download.DownloadManagerFactory.create(DownloadManagerFactory.java:58)
        at org.gudy.azureus2.core3.global.impl.GlobalManagerImpl.addDownloadManager(GlobalManagerImpl.java:378)
        at org.gudy.azureus2.core3.global.impl.GlobalManagerImpl.addDownloadManager(GlobalManagerImpl.java:304)
        at org.gudy.azureus2.ui.swt.mainwindow.TorrentOpener$2.run(TorrentOpener.java:121)

java version: j2re 1.4.2_05-1

Offline

#24 2004-09-19 15:02:16

Olli
Member
Registered: 2004-04-01
Posts: 57

Re: [network] azureus

samael wrote:

I get failed md5sums check:

[root@archbox azureus]# makepkg &
[1] 3558
[root@archbox azureus]# ==> Making package: azureus  (Sun Sep 19 11:26:39 UTC 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Using local copy of Azureus2.1.0.4.jar
==>     Using local copy of Azureus_2.1.0.4_linux.GTK.tar.bz2
==>     Found azureus.install in build dir
==> Validating source files with MD5sums
    Azureus2.1.0.4.jar ... Passed
    Azureus_2.1.0.4_linux.GTK.tar.bz2 ... Passed
    azureus.install ... FAILED
==> ERROR: One or more files did not pass the validity check!

[1]+  Exit 1                  makepkg

*nod* that could very well be since you copy and paste the content of azureus.install yourself. Any added space, or any difference whatsover is gonna cause the md5 check to fail.

You can get the file with the correct md5sum here: http://www.xs4all.nl/~olli/azureus.install


DIY: Doom-It-Yourself

Offline

#25 2004-09-19 15:04:28

Olli
Member
Registered: 2004-04-01
Posts: 57

Re: [network] azureus

oscar_ wrote:

it wouldn't start sad

Are you sure you logged out after you installed it, it will need to update your path. You can also do a 'source /etc/profile', but then it will only work in the current terminal. Execute azureus from the command line and show me what's going wrong please smile


DIY: Doom-It-Yourself

Offline

Board footer

Powered by FluxBB