blob: cf70d03d3902a9d61a1660feb74ad7010abdeb95 [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")
Yi Huang53fa8712014-06-10 20:14:26 -070011 os.system("git submodule init && git submodule update")
jeraldabraham5d4d7352014-03-28 02:49:04 -070012 os.system("./waf configure")
13 os.system("./waf -j1")
14 os.system("sudo ./waf install")
15 os.system("sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf")
16 os.system("sudo mkdir /usr/local/etc/ndn/keys/")
17 os.system("ndnsec-cert-dump -i `ndnsec-get-default` > ~/default.ndncert")
18 os.system("sudo mv ~/default.ndncert /usr/local/etc/ndn/keys")
19 os.chdir("..")