blob: cc8fc6ef09d98d433f8558927ad78ec5ba87da98 [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
Junxiao Shi434fa492017-06-15 00:37:54 +000016To build in a terminal, change directory to repo-ng repository. Enter:
Shuo Chen050fcad2014-03-12 15:45:54 -070017
18 ./waf configure
19 ./waf
20 sudo ./waf install
21
Junxiao Shi434fa492017-06-15 00:37:54 +000022This builds and installs `ndn-repo-ng` and related tools.
Shuo Chen050fcad2014-03-12 15:45:54 -070023
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
Junxiao Shi434fa492017-06-15 00:37:54 +000027Configuration
28-------------
Weiqi Shibd469da2014-08-21 10:08:51 -070029
Junxiao Shi434fa492017-06-15 00:37:54 +000030The default configuration file path is `/usr/local/etc/ndn/repo-ng.conf`.
31Users may copy `repo-ng.conf.sample` config sample to the specific path.
Weiqi Shibd469da2014-08-21 10:08:51 -070032
33Database
34--------
35
Junxiao Shi434fa492017-06-15 00:37:54 +000036The database path is set in "storage.path" key of the config file.
37The default database path is `/var/db/ndn-repo-ng`.
Weiqi Shibd469da2014-08-21 10:08:51 -070038
Junxiao Shi434fa492017-06-15 00:37:54 +000039`ndn-repo-ng` automatically creates a database if one does not exist.
Weiqi Shibd469da2014-08-21 10:08:51 -070040
Junxiao Shi434fa492017-06-15 00:37:54 +000041Users should make sure the `ndn-repo-ng` process has write privilege to the database path.
42If the default `/var/db/ndn-repo-ng` is used, repo-ng needs to be started with `sudo`.
Weiqi Shibd469da2014-08-21 10:08:51 -070043
44Tools
45-----
46
Junxiao Shi434fa492017-06-15 00:37:54 +000047Currently, three tools are supported: ndnputfile, ndngetfile, and ndnrepowatch.
Weiqi Shibd469da2014-08-21 10:08:51 -070048
Junxiao Shi434fa492017-06-15 00:37:54 +000049Users can find detailed information about these tools in <https://redmine.named-data.net/projects/repo-ng/wiki/Tools>.