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 "**************" |
| 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("..") |