A light-weight high-speed BitTorrent tracker written in C++. Part of the Gazelle Project.
To build Ocelot, do the following:
-
Copy
src/config.cpp.template
tosrc/config.cpp
and change any configurations to match what Gazelle uses. Note: make sure you've loaded thegazelle.sql
into your database before running Ocelot. -
Build the project by doing the following:
cmake .
make
This will create a folder called bin
and place the ocelot_server
binary inside.
Those who would like to run the test suite need to download gmock (currently version 1.7.0) in the immediate parent directory of ocelot, and need to run cmake . -DBUILD_TESTING=1
to enable the ocelot_tests
target.
Currently, tests are using config.cpp
to setup ocelot and run the suite. Please load the sql dump called snapshot.sql
which is located in the test directory prior to running the test suite, or the majority of the tests will fail.
To build and run the tests, you can use make ocelot_tests
and run ./bin/ocelot_tests
.
Ocelot requires the following dependencies:
- boost::system
- boost::iostreams
- boost::asio
- libev
- mysql++
By default, CMake will assume these can all be found in /usr/local/include
, /usr/include
, or /usr/include/mysql
and libs found in /usr/local/lib
. These should be the default paths for aptitude and homebrew.
Ocelot has been tested on OSX Mavericks using Clang, Gentoo 64bit, and Ubuntu 12.04/ 14.04 using GCC 4.8.
See LICENSE file in project root.