Add rc.d script for headless operation for nox flavor
Claim UID and GID 850
net-p2p/transmission-cli/files/transmission.in used as template
I'm not very familiar with rc.d scripting and it's the same method transmission-cli uses. If you have a better solution please point me to a good example as I'm trying to learn.
While putting a home directory in etc feels between strange and wrong, putting a directory where you download things into is clearly a very bad idea.
While I agree that's pretty much where all clients saves their config, "session files etc" by default. We could override that but I'm not sure how much we want to diverge from default settings and not all paths are configurable via switches . I'm not sure if having a buch of "dummy" directories in /home is a better choice. https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings
Perhaps a better idea would be to require the user to provide a download dir and lease the rest as is?
Default the download directory to /var/db/qbittorrent-nox. Install this directory by the port with the right permissions. Otherwise, this user doesn't need the home directory.