Skip to content

ilpianista/transmission-readynasduo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

  1. 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
  2. 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 enable diffie-hellman-group1-sha1 and ssh-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
  3. 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 the zlib 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

  1. 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
  2. Copy the TRANSMISSION folder into the addons_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-*
  3. 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