Requirements
--------------------------
Deluge (http://deluge-torrent.org/)
How to Install: http://dev.deluge-torrent.org/wiki/GitRepo
P4PYTHON (http://www.perforce.com/product/components/apis)
Usage
--------------------------
p4torrent/p4torrent.py
A standalone script that lists options available. Downloads file via torrent to client workspace
trigger/trigger/__init__.py
A package that can be run as a p4trigger in a script such as trigger/run.py. Creates torrents for
submitted files, saves them in location defined by environment variable P4TORRENT
trigger/run.py
A sample script using the trigger package. A trigger would be
p4torrent change-commit //... "/usr/bin/python /p4trigger/run.py %serverport% %changelist%"
Environment Variables
--------------------------
P4TRACKER: A list of announce urls for desired trackers. Defaults to "http://127.0.0.1:6969/announce"
P4TORRENT: Torrent storage location. Should point to the same folder for both the trigger and p4torrent.py