From 641d2b2470648a3f43d8693e1efaf35210152269 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 11 Oct 2020 19:23:46 +0200
Subject: [PATCH] Add experimental seedbox setup.

---
 buster/apt-mark/seedbox               | 8 ++++++++
 buster/setup_scripts/setup_seedbox.sh | 8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 buster/apt-mark/seedbox
 create mode 100644 buster/setup_scripts/setup_seedbox.sh

diff --git a/buster/apt-mark/seedbox b/buster/apt-mark/seedbox
new file mode 100644
index 0000000..37b941e
--- /dev/null
+++ b/buster/apt-mark/seedbox
@@ -0,0 +1,8 @@
+# needed for rtorrent config setup
+curl
+# needed for torrenting
+rtorrent
+# needed for torrenting session
+screen
+# needed for upload/download
+rsync
diff --git a/buster/setup_scripts/setup_seedbox.sh b/buster/setup_scripts/setup_seedbox.sh
new file mode 100644
index 0000000..a79870e
--- /dev/null
+++ b/buster/setup_scripts/setup_seedbox.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+./install_for_target.sh seedbox
+
+# As according to <https://rtorrent-docs.readthedocs.io/en/latest/cookbook.html#modernized-configuration-template>
+su -lc "curl -Ls \"https://raw.githubusercontent.com/wiki/rakshasa/rtorrent/CONFIG-Template.md\" grep -A9999 '^######' | grep -B9999 '^### END' sed -re \"s:/home/USERNAME:\$HOME:\" >~/.rtorrent.rc" plom
+su -lc "mkdir ~/rtorrent" plom
-- 
2.30.2