| #!/usr/bin/python2 |
| import os |
| |
| # Install NFD |
| def run(): |
| print "\nINSTALLING NFD" |
| print "**************" |
| os.system("git clone --depth 1 https://github.com/named-data/NFD") |
| os.chdir("NFD") |
| os.system("git submodule init && git submodule update") |
| os.system("./waf configure --with-other-tests") |
| os.system("./waf") |
| os.system("sudo ./waf install") |
| os.system("sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf") |
| os.system("sudo mkdir /usr/local/etc/ndn/keys/") |
| os.system("ndnsec-cert-dump -i `ndnsec-get-default` > ~/default.ndncert") |
| os.system("sudo mv ~/default.ndncert /usr/local/etc/ndn/keys") |
| os.chdir("..") |