add: ndn-tools

This commit is contained in:
SunnyQjm committed 2021-09-26 09:14:53 +00:00
1 parent a987255321
commit 6c4b3abfbf
3 files changed
+18 -39

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ NLSR_VERSION=0.5.1
NDN_CPP_VERSION=v0.17
# ndn-tools
NDN_TOOLS_VERSION=0.7
NDN_TOOLS_VERSION=0.7.1
function ensureDir() {
dir=$1
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
# install ndn-tools
sudo apt-get install libpcap-dev -y
cloneOrUpdate ndn-tools https://github.com/named-data/ndn-tools/archive/ndn-tools-${NDN_TOOLS_VERSION}.tar.gz ${NDN_TOOLS_VERSION}
./waf configure
./waf
sudo ./waf install
afterInstall ndn-tools https://github.com/named-data/ndn-tools/archive/ndn-tools-${NDN_TOOLS_VERSION}.tar.gz ${NDN_TOOLS_VERSION}
sudo ldconfig
-38
View File
@@ -1,38 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
current_path=`pwd`
source ./install_Psync.sh
cd $current_path
source ./install_ChronoSync.sh
cd $current_path
# install NLSR
cloneOrUpdate NLSR https://github.com/named-data/NLSR/archive/NLSR-${NLSR_VERSION}.tar.gz ${NLSR_VERSION}
./waf configure
./waf
sudo ./waf install
afterInstall NLSR https://github.com/named-data/NLSR/archive/NLSR-${NLSR_VERSION}.tar.gz ${NLSR_VERSION}
#check nlsr.conf exists?
if [[ ! -f /usr/local/etc/ndn/nlsr.conf ]];then
cd /usr/local/etc/ndn
sudo cp nlsr.conf.sample nlsr.conf
fi
#check /var/lib/nlsr exists?
if [[ ! -d /var/lib/nlsr ]];then
sudo mkdir /var/lib/nlsr
fi
sudo ldconfig