Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgaebel/ecksy
https://github.com/cgaebel/ecksy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cgaebel/ecksy
- Owner: cgaebel
- Created: 2012-04-07T06:01:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-29T00:28:21.000Z (over 12 years ago)
- Last Synced: 2024-05-01T19:35:14.660Z (7 months ago)
- Language: C++
- Size: 3.71 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
STOP.
Before you do anything, make sure to run:
$ git submodule init
$ git submodule updateto check out all submodules.
Ecksy has a few subdirectories of interest in here.
1) libtorrent
This is a trunk version of libtorrent. I update it semi-regularly. Make
sure to configure and install this before moving on to libtorrent-c.$ cd libtorrent
$ bjam -j4 boost=system boost-link=shared dht-support=on geoip=off upnp-logging=off link=shared variant=release invariant-checks=on debug-symbols=off
$ sudo bjam installIf you don't already have it in your LD_LIBRARY_PATH, add /usr/local/lib.
This will ensure our libraries get picked up by the dynamic linker.$ echo 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib' >> ~/.bashrc
2) libtorrent-c
The C bindings to the parts of libtorrent we need. After installing
libtorrent-trunk, use CMake to build and install this DSO. It will be
dynamically linked into the Ecksy executable.$ cd libtorrent-c
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install3) ecksy
This is the actual webserver we will use to serve the torrents. It's
based off of Yesod, and uses libtorrent-c to do the interfacing with
libtorrent, which, in turn, does all the heavy lifting.$ cd ecksy
$ cabal install yesod
$ yesod --dev devel # Starts the debug server. Should need no setup.Then, every time you make a change to the project, just run:
$ yesod --dev devel
from within the ecksy directory.