blob: dc94375fe9119dc59ec25b122288534cfd36a94e [file] [log] [blame] [view]
Shuo Chen478204c2014-03-18 18:27:04 -07001ndn-repo-ng: Next generation of NDN repository
2===============================================
Shuo Chen050fcad2014-03-12 15:45:54 -07003
4Prerequisites
5-------------
6
Shuo Chen478204c2014-03-18 18:27:04 -07007Required:
Shuo Chen050fcad2014-03-12 15:45:54 -07008
Alexander Afanasyeve291caf2014-04-25 11:17:36 -07009* [ndn-cxx and its dependencies](https://github.com/named-data/ndn-cxx)
Shuo Chen478204c2014-03-18 18:27:04 -070010* sqlite3
11* Boost libraries
Shuo Chen050fcad2014-03-12 15:45:54 -070012
13Build
14-----
15
16To build in a terminal, change directory to the ndn_repo root. Enter:
17
18 ./waf configure
19 ./waf
20 sudo ./waf install
21
22This makes and installs the following items:
23
Shuo Chen478204c2014-03-18 18:27:04 -070024If configured with tests: `./waf configure --with-tests`), the above commands will
25also generate unit tests in `./built/unit-tests`
Weiqi Shibd469da2014-08-21 10:08:51 -070026
27Config
28------
29
30The default path of the configuration file is in `/usr/local/etc/ndn/repo-ng.conf`.
31
32The config file sample is repo-ng.conf.sample. Users should copy this file to the specific path and rename it to repo-ng.conf.
33
34Database
35--------
36
37Users do not need to manually generate a database for repo since when a repo is running, it will generate a database by itself.
38
39The default database path is `/var/db/ndn-repo-ng`, which can be changed in repo-ng.conf "storage.path".
40
41If the default database path is used, user should use root permission when running a repo.
42
43Tools
44-----
45
46Currently, three tools are supported : ndnputfile, ndngetfile and ndnrepowatch.
47
48Users can find the detail information about these tool in http://redmine.named-data.net/projects/repo-ng/wiki/Tools.
49