aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-06-03 12:38:46 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-06-03 12:40:17 +0200
commitc1be149705b704ee58851a52146214c192809e4b (patch)
tree36b99381f30b07625ba4015b90749287371619e8
parent41054ff283c90212e3d8280055093ac9f465317d (diff)
- Adding support for GRE tunnels to LTE emulation
- Fix version of NS3 emulator Change-Id: I8dbf54d2234053b3417531daaef228f9b7d201d9 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--.gitignore1
-rw-r--r--emu-radio/ns3-packages/libns3sx-3v5_3.24.1-6~xenial_amd64.debbin5033932 -> 0 bytes
-rw-r--r--emu-radio/ns3-packages/libns3sx-3v5_3.24.1-8~xenial_amd64.debbin0 -> 5036764 bytes
-rw-r--r--emu-radio/ns3-packages/libns3sx-dev_3.24.1-6~xenial_amd64.debbin768922 -> 0 bytes
-rw-r--r--emu-radio/ns3-packages/libns3sx-dev_3.24.1-8~xenial_amd64.debbin0 -> 769062 bytes
-rw-r--r--emu-radio/ns3-packages/ns3sx_3.24.1-6~xenial_amd64.debbin152794 -> 0 bytes
-rw-r--r--emu-radio/ns3-packages/ns3sx_3.24.1-8~xenial_amd64.debbin0 -> 152730 bytes
-rw-r--r--emu-radio/scripts/build-package.sh34
8 files changed, 26 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index fb2d4e25..b354d71a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,4 +29,3 @@ libtool
*~
*.pyc
.idea
-*.deb
diff --git a/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-6~xenial_amd64.deb b/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-6~xenial_amd64.deb
deleted file mode 100644
index f84d2a9a..00000000
--- a/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-6~xenial_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-8~xenial_amd64.deb b/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-8~xenial_amd64.deb
new file mode 100644
index 00000000..894da7f6
--- /dev/null
+++ b/emu-radio/ns3-packages/libns3sx-3v5_3.24.1-8~xenial_amd64.deb
Binary files differ
diff --git a/emu-radio/ns3-packages/libns3sx-dev_3.24.1-6~xenial_amd64.deb b/emu-radio/ns3-packages/libns3sx-dev_3.24.1-6~xenial_amd64.deb
deleted file mode 100644
index 275f1107..00000000
--- a/emu-radio/ns3-packages/libns3sx-dev_3.24.1-6~xenial_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/emu-radio/ns3-packages/libns3sx-dev_3.24.1-8~xenial_amd64.deb b/emu-radio/ns3-packages/libns3sx-dev_3.24.1-8~xenial_amd64.deb
new file mode 100644
index 00000000..c67a7d3c
--- /dev/null
+++ b/emu-radio/ns3-packages/libns3sx-dev_3.24.1-8~xenial_amd64.deb
Binary files differ
diff --git a/emu-radio/ns3-packages/ns3sx_3.24.1-6~xenial_amd64.deb b/emu-radio/ns3-packages/ns3sx_3.24.1-6~xenial_amd64.deb
deleted file mode 100644
index 6f2bd41f..00000000
--- a/emu-radio/ns3-packages/ns3sx_3.24.1-6~xenial_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/emu-radio/ns3-packages/ns3sx_3.24.1-8~xenial_amd64.deb b/emu-radio/ns3-packages/ns3sx_3.24.1-8~xenial_amd64.deb
new file mode 100644
index 00000000..d889b04f
--- /dev/null
+++ b/emu-radio/ns3-packages/ns3sx_3.24.1-8~xenial_amd64.deb
Binary files differ
diff --git a/emu-radio/scripts/build-package.sh b/emu-radio/scripts/build-package.sh
index 127d785a..1aa828d0 100644
--- a/emu-radio/scripts/build-package.sh
+++ b/emu-radio/scripts/build-package.sh
@@ -3,6 +3,7 @@
set -euxo pipefail
IFS=$'\n\t'
+SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
APT_PATH=`which apt-get` || true
apt_get=${APT_PATH:-"/usr/local/bin/apt-get"}
@@ -153,6 +154,22 @@ build() {
make
}
+change_version() {
+ OLD_PACKAGE=$1
+ NEW_PACKAGE=$2
+ B_NUMBER=$3
+
+ mkdir tmp
+ pushd tmp
+ ar p ../${OLD_PACKAGE} control.tar.gz | tar -xz
+ sed -i s/3.24.1-8/3.24.1-${B_NUMBER}/g control
+ mv ../${OLD_PACKAGE} ../${NEW_PACKAGE}
+ tar czf control.tar.gz *[!z]
+ ar r ../${NEW_PACKAGE} control.tar.gz
+ popd
+ rm -rf tmp
+}
+
ARCHITECTURE=`uname -m`
# Figure out what system we are running on
@@ -201,28 +218,29 @@ fi
BLD_NUMBER=${BUILD_NUMBER:-"1"}
# Install libns3
-pushd ../ns3-packages
+pushd ${SCRIPT_PATH}/../ns3-packages
sudo dpkg -i *.deb || true
sudo apt-get -f install -y --allow-unauthenticated || true
popd
# Build wifi-emualtor
-pushd ..
+pushd ${SCRIPT_PATH}/..
build "-DWIFI=ON -DLTE=OFF"
make package
find . -not -name '*.deb' -not -name '*.rpm' -print0 | xargs -0 rm -rf -- || true
popd
# Build lte-emualtor
-pushd ..
+pushd ${SCRIPT_PATH}/..
build "-DLTE=ON -DWIFI=OFF"
make package
find . -not -name '*.deb' -not -name '*.rpm' -print0 | xargs -0 rm -rf -- || true
popd
# Change build number to ns3 packages
-pushd ../ns3-packages
-mv libns3sx-3v5_3.24.1-6~xenial_amd64.deb libns3sx-3v5_3.24.1-$BLD_NUMBER~xenial_amd64.deb || true
-mv libns3sx-dev_3.24.1-6~xenial_amd64.deb libns3sx-dev_3.24.1-$BLD_NUMBER~xenial_amd64.deb || true
-mv ns3sx_3.24.1-6~xenial_amd64.deb ns3sx_3.24.1-$BLD_NUMBER~xenial_amd64.deb || true
-popd \ No newline at end of file
+pushd ${SCRIPT_PATH}/../ns3-packages
+
+change_version libns3sx-3v5_3.24.1-8~xenial_amd64.deb libns3sx-3v5_3.24.1-$BLD_NUMBER~xenial_amd64.deb ${BLD_NUMBER} || true
+change_version libns3sx-dev_3.24.1-8~xenial_amd64.deb libns3sx-dev_3.24.1-$BLD_NUMBER~xenial_amd64.deb ${BLD_NUMBER} || true
+change_version ns3sx_3.24.1-8~xenial_amd64.deb ns3sx_3.24.1-$BLD_NUMBER~xenial_amd64.deb ${BLD_NUMBER} || true
+popd