I can't live without magnet support, so here is how i added it. The ipkg version of rtorrent/libtorrent (0.8.6/0.12.6) doesn't come with magnet support, it was added in 0.8.7/0.12.7. Though the latest version is 0.8.9/0.12.9 so i'm just going to use that (since that's what i used on my server before i received my DS412+).
This process requires that you have followed
http://forum.synology.com/wiki/index.ph ... rent_HowTo to install the latest xmlrpc. I'm just going to overwrite the rtorrent and libtorrent ipkg installations, so make sure your rtorrent setup is working after you finish those steps.
find a dev directory (i like /tmp/dev) and grab the source packages
- Code: Select all
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.9.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.9.tar.gz
You'll need some dependencies
- Code: Select all
ipkg install optware-devel openssl-dev ncurses-dev
We're missing the sigc++-2.0-dev package, create the content it would have provided. you'll need to run configure so that we can generate the sigc++config.h file.
- Code: Select all
wget http://ipkg.nslu2-linux.org/sources/libsigc++-2.2.3.tar.gz
tar -xf libsigc++-2.2.3.tar.gz
cd libsigc++-2.2.3
./configure --prefix=/opt
cd ..
mkdir -p /opt/include/sigc++-2.0/sigc++ /opt/include/sigc++-2.0/sigc++/functors /opt/include/sigc++-2.0/sigc++/adaptors/lambda
cp libsigc\+\+-2.2.3/sigc++config.h /opt/include/sigc++-2.0/
cp libsigc\+\+-2.2.3/sigc\+\+/*.h /opt/include/sigc++-2.0/sigc++/
cp libsigc\+\+-2.2.3/sigc\+\+/functors/*.h /opt/include/sigc++-2.0/sigc++/functors/
cp libsigc\+\+-2.2.3/sigc\+\+/adaptors/*.h /opt/include/sigc++-2.0/sigc++/adaptors/
cp libsigc\+\+-2.2.3/sigc\+\+/adaptors/lambda/*.h /opt/include/sigc++-2.0/sigc++/adaptors/lambda/
cat > sigc++-2.0.pc
prefix=/opt
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libsigc++
Description: Typesafe signal and callback system for C++
Version: 2.2.3
Requires:
Libs: -L${libdir} -lsigc-2.0
Cflags: -I${includedir}/sigc++-2.0 -I${libdir}/sigc++-2.0/include
Now extract build libtorrent
- Code: Select all
CPPFLAGS="-march=i686" LDFLAGS="-march=i686" ./configure --prefix=/opt
make
make install
Now extract and build rtorrent
- Code: Select all
CPPFLAGS="-I/opt/include/ncurses -march=i686" LDFLAGS="-march=i686" ./configure --prefix=/opt --with-xmlrpc-c
make
make install
NOTE: this is not what i would consider a clean compile process. libsigc++ has some annoying issues with it, i had to create some directory structure and a symlink so it could find libstdc++.la. Also i had to remove the URL tag from the libcurl pkg-config file. I will try and post the binary installation files for libtorrent and rtorrent sometime soon, so that you can probably just replace the ipkg installation files.
UPDATE:
ok i am temporarily hosting the binary packages, if someone can mirror these i would appreciate it a lot. I have two packages, one that is JUST the binary files (rtorrent and libtorrent), and the other also includes the include and pkgconfig files generated by libtorrent. Most people will just want the -bin package since you probably don't have any use for the development files. You should be able to just extract the files from root and it should overwrite your current rtorrent/libtorrent ipkg installations.
here are the files:
http://errorok.com/files/rtorrent-optwa ... 2.9.tar.gzhttp://errorok.com/files/rtorrent-optwa ... 2.9.tar.gzREMEMBER, these are for i686 cpu's (i.e. the atom and core cpus), don't use these files if you have a different cpu, if you do have a different cpu you'll have to try and build your own binaries from the terrible instructions above.