Transmission add-on for ReadyNAS Duo/NV+ (sparc)
This is a revival of the Transmission add-on originally created by super-poussin and successively by tarobun.
How to build Transmission
-
Download the Qemu sparc platform development environment, extract and run it:
wget -q https://www.readynas.com/download/development/readynas_compile_environment.qcow.gz gunzip readynas_compile_environment.qcow.gz qemu-system-sparc -hda readynas_compile_environment.qcow -nographic
-
Take Transmission sources. GitHub doesn't support anymore SSLv3/TLSv1 and thus we cannot download transmission's sources directly from the emulated environment, but you could use another mirror or copy it via
scp
from your host (Samba is too old).scp
will not work out of the box because SSH disables weak algorithms by default, but we can enablediffie-hellman-group1-sha1
andssh-rsa
just this time; add the following to your/etc/ssh/sshd_config
and restart ssh.KexAlgorithms +diffie-hellman-group1-sha1 HostKeyAlgorithms +ssh-rsa
(the emulated environment doesn't support
xz
tarballs either, thus remember to unpack it before you copy it to the emulated environment:unxz < transmission-2.94.tar.xz > transmission-2.94.tar
-
Extract, configure and build.
This is the hardest part. You need to find prebuilt deb archives or to build the deb packages yourself. I'll provide instructions separately. We need to statically link to
libevent
and to provide hints to the compiler for thezlib
library since the package doesn't ship a pkg-config file.tar xf transmission-2.94.tar ./configure --build=sparc-linux target=sparc-linux --disable-nls --enable-lightweight --enable-utp LIBEVENT_LIBS="/usr/lib/libevent.a" ZLIB_CFLAGS=" " ZLIB_LIBS="-lz" make -s
How to package the extension
-
Download and extract the ReadyNAS add-ons SDK to the emulated environment:
wget -q http://www.readynas.com/download/addons/addons_sdk.tgz tar zxf addons_sdk.tgz
-
Copy the
TRANSMISSION
folder into theaddons_sdk
folder with the method you prefer, then copy the following binaries into it and strip any debug symbols:cd addons_sdk/TRANSMISSION cp ../transmission-2.94/{daemon/transmission-{daemon,remote},utils/transmission-{create,edit,show}} files/etc/frontview/addons/bin/TRANSMISSION/ strip --strip-debug files/etc/frontview/addons/bin/TRANSMISSION/transmission-*
-
And then from the same folder, run this command to package it!
../bin/build_addon
Donate
Donations via Liberapay or Bitcoin (1Ph3hFEoQaD4PK6MhL3kBNNh9FZFBfisEH) are always welcomed, thank you!
License
MIT