jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | import os |
| 3 | |
| 4 | # Install NFD |
| 5 | def run(): |
| 6 | print "\nINSTALLING NFD" |
| 7 | print "**************" |
Junxiao Shi | 33a6ee1 | 2016-12-26 18:59:38 +0000 | [diff] [blame] | 8 | os.system("git clone --depth 1 https://github.com/named-data/NFD") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 9 | os.chdir("NFD") |
Yi Huang | 53fa871 | 2014-06-10 20:14:26 -0700 | [diff] [blame] | 10 | os.system("git submodule init && git submodule update") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 11 | os.system("./waf configure") |
Eric Newberry | 59094fc | 2017-11-02 00:41:32 -0700 | [diff] [blame^] | 12 | os.system("./waf") |
jeraldabraham | 5d4d735 | 2014-03-28 02:49:04 -0700 | [diff] [blame] | 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("..") |