Merge pull request #144 from ehlers/ostinato

update ostinato to v0.8
This commit is contained in:
Julien Duponchelle 2016-07-01 10:13:28 +02:00 committed by GitHub
commit b947be5311
3 changed files with 18 additions and 36 deletions

View File

@ -24,6 +24,14 @@
"options": "-vga std -usbdevice tablet"
},
"images": [
{
"filename": "ostinato-0.8-1.qcow2",
"version": "0.8",
"md5sum": "12e990ba695103cfac82f8771b8015d4",
"filesize": 57344000,
"download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/index.html",
"direct_download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/ostinato-0.8-1.qcow2"
},
{
"filename": "ostinato-0.7.1-3.qcow2",
"version": "0.7.1",
@ -34,6 +42,12 @@
}
],
"versions": [
{
"name": "0.8",
"images": {
"hda_disk_image": "ostinato-0.8-1.qcow2"
}
},
{
"name": "0.7.1",
"images": {

View File

@ -52,28 +52,9 @@ ver=`curl -sI https://bintray.com/pstavirs/ostinato/ostinato-src/_latestVersion
curl -k -L -O https://bintray.com/artifact/download/pstavirs/ostinato/ostinato-src-$ver.tar.gz
tar xfz ostinato-src-$ver.tar.gz
cd ostinato-$ver
# patch only useful for ostinato <= 0.7.1
patch -p0 <<'EOF'
--- server/pcapport.cpp.orig 2015-02-24 08:38:33.000000000 +0000
+++ server/pcapport.cpp 2015-02-25 09:58:38.943383048 +0000
@@ -696,7 +696,8 @@
while (curTicks.QuadPart < tgtTicks.QuadPart)
QueryPerformanceCounter(&curTicks);
-#elif defined(Q_OS_LINUX)
+// #elif defined(Q_OS_LINUX)
+#elif 0
struct timeval delay, target, now;
//qDebug("usec delay = %ld", usec);
EOF
qmake -config release "QMAKE_CXXFLAGS+=$CXXFLAGS"
# ostinato >= 0.8 supports building of a component
# make server
# sudo INSTALL_ROOT=/tmp/ostinato make server-install_subtargets
make
sudo INSTALL_ROOT=/tmp/ostinato make install
sudo rm /tmp/ostinato/usr/local/bin/ostinato
make server
sudo INSTALL_ROOT=/tmp/ostinato make server-install_subtargets
sudo chown -R root:root /tmp/ostinato
sudo chmod +s /tmp/ostinato/usr/local/bin/drone
cd ..
@ -120,6 +101,7 @@ if grep -q -w nodhcp /proc/cmdline; then
# activate other eth devices
NETDEVICES="$(awk -F: '/eth[1-9][0-9]*:/{print $1}' /proc/net/dev 2>/dev/null)"
for DEVICE in $NETDEVICES; do
sysctl -q -w net.ipv6.conf.$DEVICE.disable_ipv6=1
ifconfig $DEVICE mtu 9000 up
done
fi

View File

@ -42,21 +42,6 @@ ver=`curl -sI https://bintray.com/pstavirs/ostinato/ostinato-src/_latestVersion
curl -k -L -O https://bintray.com/artifact/download/pstavirs/ostinato/ostinato-src-$ver.tar.gz
tar xfz ostinato-src-$ver.tar.gz
cd ostinato-$ver
# patch only useful for ostinato <= 0.7.1
patch -p0 <<'EOF'
--- server/pcapport.cpp.orig 2015-02-24 08:38:33.000000000 +0000
+++ server/pcapport.cpp 2015-02-25 09:58:38.943383048 +0000
@@ -696,7 +696,8 @@
while (curTicks.QuadPart < tgtTicks.QuadPart)
QueryPerformanceCounter(&curTicks);
-#elif defined(Q_OS_LINUX)
+// #elif defined(Q_OS_LINUX)
+#elif 0
struct timeval delay, target, now;
//qDebug("usec delay = %ld", usec);
EOF
qmake -config release "QMAKE_CXXFLAGS+=$CXXFLAGS"
make
sudo INSTALL_ROOT=/tmp/ostinato make install
@ -120,6 +105,7 @@ if grep -q -w nodhcp /proc/cmdline; then
# activate other eth devices
NETDEVICES="$(awk -F: '/eth[1-9][0-9]*:/{print $1}' /proc/net/dev 2>/dev/null)"
for DEVICE in $NETDEVICES; do
sysctl -q -w net.ipv6.conf.$DEVICE.disable_ipv6=1
ifconfig $DEVICE mtu 9000 up
done
fi