You are not logged in.
# 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
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
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
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
Looks like a great package, thanks for putting it in.
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
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
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 .
jabber id: arael (at) fov (dot) pl
Offline
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
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.
jabber id: arael (at) fov (dot) pl
Offline
K, I'll do that. Sorry about the questions :oops:
And thanks for the link.
Offline
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
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
thanks man, this is the best torrent client I have used, both in win and linux
To err is human... to really foul up requires the root password.
Offline
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
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
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
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
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
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 )
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
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.
I couldn't make this new package work, at all.
Reinstalled using the old script.
What was the problem?
DIY: Doom-It-Yourself
Offline
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
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
To err is human... to really foul up requires the root password.
Offline
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
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
it wouldn't start
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
DIY: Doom-It-Yourself
Offline