This was not trivial so I thought I would document it here.

 I imagine that running ZFS and Bittorrent together is a popular scenario.

Download Tarball


Make sure that xz and wget are installed

pkg install xz wget

Download and untar the binary

tar -xjvf transmission-2.77.tar.xz
cd transmission-2.77

Install Dependencies

pkg install gettext  (for pkg-config)
pkg install pkg:/
pkg install pkg:/text/gnu-gettext

Hack Pkg-Config files for libevent2

For whatever reason, other tools seem to install pkg-config pc files in /usr/lib/pkgconfig

The SFE package for libevent2 installs into /usr/gnu/lib/pkgconfig, so autoconf does not find it.

I "hacked" around this by moving the files and adding a symlink to make it nicer.

# cd /usr/gnu/lib
# mv pkgconfig/* /usr/lib/pkgconfig/
# rmdir pkgconfig/
# ln -s /usr/lib/pkgconfig .

Configure Make Install

Setup the path to pick up the GNU tools first

export PATH=/usr/gnu/bin:$PATH
./configure --prefix=/opt
sudo make install

Install as Service

I have included the SMF config file I use as well as the service method shell script.

Both (I believe) are pulled from the Transmission SFE built package.

Here are the relevant commands, though a package should really be employed for this.

I may work on that later...

cp lib-svc-method-transmission /lib/svc/method/transmission

chown root:bin /lib/svc/method/transmission

chmod 755 /lib/svc/method/transmission

svccfg import transmission-daemon.xml