| #!/usr/bin/python2 |
| import os |
| |
| # Install ndn-cpp-dev |
| def run(): |
| print "\nINSTALLING ndn-cpp-dev" |
| print "**********************" |
| os.system("git clone https://github.com/named-data/ndn-cpp-dev --depth 1") |
| os.chdir("ndn-cpp-dev") |
| os.system("./waf distclean") |
| os.system("./waf configure") |
| os.system("./waf -j1") |
| os.system("sudo ./waf install") |
| os.system("mkdir -p ~/.ndn") |
| os.system("cp client.conf.sample ~/.ndn/client.conf") |
| os.system("sed -i 's/^protocol=.*$/protocol=nfd-0.1/g' ~/.ndn/client.conf") |
| os.chdir("..") |