-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Git
committed
Jan 27, 2015
1 parent
61d445e
commit 972c8d6
Showing
38 changed files
with
3,113 additions
and
1,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
bin_PROGRAMS = ocelot | ||
ocelot_SOURCES = config.h db.cpp db.h events.cpp events.h misc_functions.cpp misc_functions.h\ | ||
ocelot_SOURCES = config.cpp config.h db.cpp db.h events.cpp events.h misc_functions.cpp misc_functions.h \ | ||
ocelot.cpp ocelot.h report.cpp report.h response.cpp response.h \ | ||
schedule.cpp schedule.h site_comm.cpp site_comm.h user.cpp user.h worker.cpp worker.h | ||
nodist_ocelot_SOURCES = config.cpp | ||
|
||
AM_CPPFLAGS = -std=c++11 -march=native -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fno-ident -pthread -Wall -Wfatal-errors -Wl,O1 -Wl,--as-needed $(BOOST_CPPFLAGS) | ||
ocelot_LDFLAGS = -pthread $(BOOST_LDFLAGS) | ||
ocelot_LDADD = $(BOOST_IOSTREAMS_LIB) $(BOOST_SYSTEM_LIB) -lev -lmysqlpp | ||
EXTRA_DIST = CHANGES LICENSE config.cpp.template | ||
AM_CXXFLAGS = -std=c++11 -march=native -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fno-ident -Wall -Wfatal-errors $(PTHREAD_CFLAGS) $(BOOST_CPPFLAGS) | ||
ocelot_LDADD = $(PTHREAD_LIBS) $(BOOST_IOSTREAMS_LIB) $(BOOST_SYSTEM_LIB) | ||
AM_LDFLAGS = -Wl,-O1 -Wl,--as-needed | ||
EXTRA_DIST = CHANGES LICENSE README.md ocelot.conf.dist | ||
dist-hook: | ||
touch ${distdir}/configure | ||
patch -p2 -d ${distdir} --no-backup-if-mismatch < ../dist.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Ocelot | ||
|
||
Ocelot is a BitTorrent tracker written in C++ for the [Gazelle](http://whatcd.github.io/Gazelle/) project. It supports requests over TCP and can only track IPv4 peers. | ||
|
||
## Ocelot Compile-time Dependencies | ||
|
||
* [GCC/G++](http://gcc.gnu.org/) (4.7+ required; 4.8.1+ recommended) | ||
* [Boost](http://www.boost.org/) (1.55.0+ required) | ||
* [libev](http://software.schmorp.de/pkg/libev.html) (required) | ||
* [MySQL++](http://tangentsoft.net/mysql++/) (3.2.0+ required) | ||
* [TCMalloc](http://goog-perftools.sourceforge.net/doc/tcmalloc.html) (optional, but strongly recommended) | ||
|
||
## Installation | ||
|
||
The [Gazelle installation guides](https://github.com/WhatCD/Gazelle/wiki/Gazelle-installation) include instructions for installing Ocelot as a part of the Gazelle project. | ||
|
||
### Standalone Installation | ||
|
||
* Create the following tables according to the [Gazelle database schema](https://raw.githubusercontent.com/WhatCD/Gazelle/master/gazelle.sql): | ||
- `torrents` | ||
- `users_freeleeches` | ||
- `users_main` | ||
- `xbt_client_whitelist` | ||
- `xbt_files_users` | ||
- `xbt_snatched` | ||
|
||
* Edit `ocelot.conf` to your liking. | ||
|
||
* Build Ocelot: | ||
|
||
./configure | ||
make | ||
make install | ||
|
||
## Running Ocelot | ||
|
||
### Run-time options: | ||
|
||
* `-c <path/to/ocelot.conf>` - Path to config file. If unspecified, the current working directory is used. | ||
* `-v` - Print queue status every time a flush is initiated. | ||
|
||
### Signals | ||
|
||
* `SIGHUP` - Reload config | ||
* `SIGUSR1` - Reload torrent list, user list and client whitelist |
Oops, something went wrong.