mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
WIP: Try 'transmission_compile_latest: True'
This commit is contained in:
parent
ef804c2534
commit
73f1d6cf8e
8 changed files with 56 additions and 3 deletions
|
@ -111,10 +111,13 @@ Docs
|
||||||
As of June 2023, these docs appear to be the most up-to-date:
|
As of June 2023, these docs appear to be the most up-to-date:
|
||||||
|
|
||||||
- https://github.com/transmission/transmission/tree/main/docs
|
- https://github.com/transmission/transmission/tree/main/docs
|
||||||
|
- https://github.com/transmission/transmission/blob/main/docs/Building-Transmission.md
|
||||||
- https://github.com/transmission/transmission/blob/main/docs/Configuration-Files.md
|
- https://github.com/transmission/transmission/blob/main/docs/Configuration-Files.md
|
||||||
|
- https://github.com/transmission/transmission/blob/main/docs/Editing-Configuration-Files.md
|
||||||
- https://github.com/transmission/transmission/blob/main/docs/Headless-Usage.md
|
- https://github.com/transmission/transmission/blob/main/docs/Headless-Usage.md
|
||||||
- https://wiki.archlinux.org/title/transmission (updated regularly)
|
|
||||||
- https://cli-ck.io/transmission-cli-user-guide/ (2016 but still useful)
|
- https://cli-ck.io/transmission-cli-user-guide/ (2016 but still useful)
|
||||||
|
- https://github.com/transmission/transmission#command-line-interface-notes ("``transmission-cli`` is deprecated and exists primarily to support older hardware dependent upon it. In almost all instances, ``transmission-remote`` should be used instead.")
|
||||||
|
- https://wiki.archlinux.org/title/transmission (updated regularly)
|
||||||
- https://trac.transmissionbt.com/wiki (2006-2019)
|
- https://trac.transmissionbt.com/wiki (2006-2019)
|
||||||
|
|
||||||
Logging
|
Logging
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Transmission is a BitTorrent downloader for large Content Packs etc
|
# Transmission is a BitTorrent downloader for large Content Packs etc
|
||||||
# transmission_install: False
|
# transmission_install: False
|
||||||
# transmission_enabled: False
|
# transmission_enabled: False
|
||||||
|
# transmission_compile_latest: True
|
||||||
# transmission_username: Admin
|
# transmission_username: Admin
|
||||||
# transmission_password: changeme
|
# transmission_password: changeme
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,47 @@
|
||||||
- transmission-cli
|
- transmission-cli
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
|
- name: "TRY TO COMPILE & INSTALL very latest Transmission, installing ~5 binaries in /usr/local/bin to take precedence over above binaries in /usr/bin (attempt surgery on systemd unit file from apt install above!)"
|
||||||
|
meta: noop
|
||||||
|
|
||||||
|
# https://github.com/transmission/transmission/blob/main/docs/Building-Transmission.md#on-unix
|
||||||
|
- name: apt install build-essential cmake libcurl4-openssl-dev libssl-dev # git python3
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- build-essential
|
||||||
|
- cmake
|
||||||
|
- libcurl4-openssl-dev
|
||||||
|
- libssl-dev
|
||||||
|
state: present
|
||||||
|
|
||||||
|
# https://github.com/transmission/transmission/blob/main/docs/Building-Transmission.md#building-transmission-from-git-first-time
|
||||||
|
- name: Git clone latest to /opt/iiab/transmission
|
||||||
|
git:
|
||||||
|
repo: https://github.com/transmission/transmission
|
||||||
|
dest: /opt/iiab/transmission
|
||||||
|
#version: 4.0.x # Otherwise default branch 'main'
|
||||||
|
depth: 1
|
||||||
|
force: yes
|
||||||
|
|
||||||
|
- name: Compile & Install (CAN TAKE 10+ MINUTES, OR MUCH MORE ON A RASPBERRY PI!)
|
||||||
|
shell: |
|
||||||
|
cd /opt/iiab/transmission
|
||||||
|
git submodule update --init --recursive
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
- name: Attempt surgery on /lib/systemd/system/transmission-daemon.service changing /usr/bin/transmission* to /usr/local/bin/transmission*
|
||||||
|
command: sed -i 's#/usr/bin/transmission#/usr/local/bin/transmission#' /lib/systemd/system/transmission-daemon.service # daemon_reload handled by enable-or-disable.yml
|
||||||
|
|
||||||
|
when: transmission_compile_latest
|
||||||
|
|
||||||
|
|
||||||
- name: Create download dir {{ transmission_download_dir }}, owned by {{ transmission_user }}:{{ transmission_group }}
|
- name: Create download dir {{ transmission_download_dir }}, owned by {{ transmission_user }}:{{ transmission_group }}
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -23,7 +64,10 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Back up prior /etc/transmission-daemon/settings.json (original file from apt, or new symlink contents) to /etc/transmission-daemon/settings.json.old*
|
# 'transmission-daemon -d' (--dump-settings) CAN GENERATE A NEW settings.json
|
||||||
|
# ...then customize ~8 var lines to create a new templates/settings.json.j2
|
||||||
|
|
||||||
|
- name: Back up prior /etc/transmission-daemon/settings.json (file originally from apt, or new symlink contents) to /etc/transmission-daemon/settings.json.old*
|
||||||
copy:
|
copy:
|
||||||
src: /etc/transmission-daemon/settings.json
|
src: /etc/transmission-daemon/settings.json
|
||||||
dest: /etc/transmission-daemon/settings.json.old
|
dest: /etc/transmission-daemon/settings.json.old
|
||||||
|
@ -52,7 +96,7 @@
|
||||||
- name: "Reverse Transmission's fragile OOTB symlink -- instead we establish /etc/transmission-daemon/settings.json -> /var/lib/transmission-daemon/.config/transmission-daemon/settings.json -- REASON: /etc/transmission-daemon/settings.json was intermittently being IGNORED, as Transmission sometimes breaks its own symlink from /var/lib/transmission-daemon/.config/transmission-daemon/settings.json (by turning it into a file instead)"
|
- name: "Reverse Transmission's fragile OOTB symlink -- instead we establish /etc/transmission-daemon/settings.json -> /var/lib/transmission-daemon/.config/transmission-daemon/settings.json -- REASON: /etc/transmission-daemon/settings.json was intermittently being IGNORED, as Transmission sometimes breaks its own symlink from /var/lib/transmission-daemon/.config/transmission-daemon/settings.json (by turning it into a file instead)"
|
||||||
file:
|
file:
|
||||||
path: /etc/transmission-daemon/settings.json
|
path: /etc/transmission-daemon/settings.json
|
||||||
src: /var/lib/transmission-daemon/.config/transmission-daemon/settings.json
|
src: /var/lib/transmission-daemon/.config/transmission-daemon/settings.json # Symlink /var/lib/transmission-daemon/home/settings.json also points to this
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
|
|
|
@ -543,6 +543,7 @@ sugarizer_port: 8089
|
||||||
# Transmission is a BitTorrent downloader for large Content Packs etc
|
# Transmission is a BitTorrent downloader for large Content Packs etc
|
||||||
transmission_install: False
|
transmission_install: False
|
||||||
transmission_enabled: False
|
transmission_enabled: False
|
||||||
|
transmission_compile_latest: True
|
||||||
transmission_username: Admin
|
transmission_username: Admin
|
||||||
transmission_password: changeme
|
transmission_password: changeme
|
||||||
|
|
||||||
|
|
|
@ -320,6 +320,7 @@ sugarizer_enabled: True
|
||||||
# BitTorrent downloader for large Content Packs etc
|
# BitTorrent downloader for large Content Packs etc
|
||||||
transmission_install: True
|
transmission_install: True
|
||||||
transmission_enabled: True
|
transmission_enabled: True
|
||||||
|
transmission_compile_latest: True
|
||||||
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
||||||
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
||||||
transmission_kalite_languages:
|
transmission_kalite_languages:
|
||||||
|
|
|
@ -320,6 +320,7 @@ sugarizer_enabled: True
|
||||||
# BitTorrent downloader for large Content Packs etc
|
# BitTorrent downloader for large Content Packs etc
|
||||||
transmission_install: True
|
transmission_install: True
|
||||||
transmission_enabled: True
|
transmission_enabled: True
|
||||||
|
transmission_compile_latest: True
|
||||||
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
||||||
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
||||||
transmission_kalite_languages:
|
transmission_kalite_languages:
|
||||||
|
|
|
@ -320,6 +320,7 @@ sugarizer_enabled: False
|
||||||
# BitTorrent downloader for large Content Packs etc
|
# BitTorrent downloader for large Content Packs etc
|
||||||
transmission_install: False
|
transmission_install: False
|
||||||
transmission_enabled: False
|
transmission_enabled: False
|
||||||
|
transmission_compile_latest: True
|
||||||
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
||||||
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
||||||
transmission_kalite_languages:
|
transmission_kalite_languages:
|
||||||
|
|
|
@ -320,6 +320,7 @@ sugarizer_enabled: False
|
||||||
# BitTorrent downloader for large Content Packs etc
|
# BitTorrent downloader for large Content Packs etc
|
||||||
transmission_install: False
|
transmission_install: False
|
||||||
transmission_enabled: False
|
transmission_enabled: False
|
||||||
|
transmission_compile_latest: True
|
||||||
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
|
||||||
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
# using https://pantry.learningequality.org/downloads/ka-lite/0.17/content/
|
||||||
transmission_kalite_languages:
|
transmission_kalite_languages:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue