blob: 748af57c2c1c9a9d1e5307cb0560bd223308f3cb [file] [log] [blame]
#!/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")
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("..")