blob: 171b2e6b87f1e5ef934134a9024be166852db3eb [file] [log] [blame]
jeraldabraham5d4d7352014-03-28 02:49:04 -07001#!/usr/bin/python2
2import os
3
4# Install NFD
5def run():
6 print "\nINSTALLING NFD"
7 print "**************"
8 os.system("git clone https://github.com/named-data/NFD --depth 1")
9 os.chdir("NFD")
10 os.system("./waf distclean")
11 os.system("./waf configure")
12 os.system("./waf -j1")
13 os.system("sudo ./waf install")
14 os.system("sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf")
15 os.system("sudo mkdir /usr/local/etc/ndn/keys/")
16 os.system("ndnsec-cert-dump -i `ndnsec-get-default` > ~/default.ndncert")
17 os.system("sudo mv ~/default.ndncert /usr/local/etc/ndn/keys")
18 os.chdir("..")