Update ofsoftswitch build

Changed netbee URL.
Changed libxerces package for Ubuntu 18.04
This commit is contained in:
Bob Lantz
2018-06-03 17:20:18 -07:00
parent 8af3f28b67
commit 67236e9db3
+14 -17
View File
@@ -204,10 +204,14 @@ function of {
function of13 { function of13 {
echo "Installing OpenFlow 1.3 soft switch implementation..." echo "Installing OpenFlow 1.3 soft switch implementation..."
cd $BUILD_DIR/ cd $BUILD_DIR/
$install git-core autoconf automake autotools-dev pkg-config \ $install git-core autoconf automake autotools-dev pkg-config \
make gcc g++ libtool libc6-dev cmake libpcap-dev libxerces-c2-dev \ make gcc g++ libtool libc6-dev cmake libpcap-dev \
unzip libpcre3-dev flex bison libboost-dev unzip libpcre3-dev flex bison libboost-dev
if [ "$DIST" = "Ubuntu" ] && version_le $RELEASE 16.04; then
$install libxerces-c2-dev
else
$install libxerces-c-dev
fi
if [ ! -d "ofsoftswitch13" ]; then if [ ! -d "ofsoftswitch13" ]; then
git clone https://github.com/CPqD/ofsoftswitch13.git git clone https://github.com/CPqD/ofsoftswitch13.git
if [[ -n "$OF13_SWITCH_REV" ]]; then if [[ -n "$OF13_SWITCH_REV" ]]; then
@@ -218,24 +222,17 @@ function of13 {
fi fi
# Install netbee # Install netbee
if [ "$DIST" = "Ubuntu" ] && version_ge $RELEASE 14.04; then if [ ! -d "netbee" ]; then
NBEESRC="nbeesrc-feb-24-2015" git clone https://github.com/netgroup-polito/netbee.git
NBEEDIR="netbee"
else
NBEESRC="nbeesrc-jan-10-2013"
NBEEDIR="nbeesrc-jan-10-2013"
fi fi
cd netbee/src
NBEEURL=${NBEEURL:-http://www.nbee.org/download/}
wget -nc ${NBEEURL}${NBEESRC}.zip
unzip ${NBEESRC}.zip
cd ${NBEEDIR}/src
cmake . cmake .
make make
cd $BUILD_DIR/
sudo cp ${NBEEDIR}/bin/libn*.so /usr/local/lib cd $BUILD_DIR
sudo cp netbee/bin/libn*.so /usr/local/lib
sudo ldconfig sudo ldconfig
sudo cp -R ${NBEEDIR}/include/ /usr/ sudo cp -R netbee/include/ /usr/
# Resume the install: # Resume the install:
cd $BUILD_DIR/ofsoftswitch13 cd $BUILD_DIR/ofsoftswitch13