blob: 748af57c2c1c9a9d1e5307cb0560bd223308f3cb [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 "**************"
Junxiao Shi33a6ee12016-12-26 18:59:38 +00008 os.system("git clone --depth 1 https://github.com/named-data/NFD")
jeraldabraham5d4d7352014-03-28 02:49:04 -07009 os.chdir("NFD")
Yi Huang53fa8712014-06-10 20:14:26 -070010 os.system("git submodule init && git submodule update")
jeraldabraham5d4d7352014-03-28 02:49:04 -070011 os.system("./waf configure")
Eric Newberry59094fc2017-11-02 00:41:32 -070012 os.system("./waf")
jeraldabraham5d4d7352014-03-28 02:49:04 -070013 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("..")