From 4ab17f1d485e858b885f430e8ffe0852602f31c3 Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 11 Nov 2016 09:37:54 +0100 Subject: CSIT-467 Add libpcap-dev packages to VIRL image - Add libpcap-dev packages to VIRL image - Small fixes Change-Id: I111b0d7e89180ffb7efa76c6503e687f715367f8 Signed-off-by: pmikus --- resources/tools/disk-image-builder/ubuntu/CHANGELOG | 4 ++++ resources/tools/disk-image-builder/ubuntu/build-listmaker.sh | 4 ++-- resources/tools/disk-image-builder/ubuntu/build.sh | 2 +- resources/tools/disk-image-builder/ubuntu/run-listmaker.sh | 7 ++++--- 4 files changed, 11 insertions(+), 6 deletions(-) (limited to 'resources/tools/disk-image-builder') diff --git a/resources/tools/disk-image-builder/ubuntu/CHANGELOG b/resources/tools/disk-image-builder/ubuntu/CHANGELOG index b178357b7d..d8b0a2b4a8 100644 --- a/resources/tools/disk-image-builder/ubuntu/CHANGELOG +++ b/resources/tools/disk-image-builder/ubuntu/CHANGELOG @@ -1,3 +1,7 @@ +## [1.5] - 2016-11-28 + +Add libpcap-dev and libpcap0.8-dev + ## [1.4] - 2016-10-07 Ubuntu 16.04.1 diff --git a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh index 511499512c..91c952ff05 100755 --- a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh +++ b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh @@ -20,11 +20,11 @@ BUILD_DIR="$(pwd)/build" PACKER_DIR="${BUILD_DIR}/packer" OUT_DIR="${BUILD_DIR}/output/listmaker" -if [ "$1" == "ubuntu-14.04.4" ] +if [ "$1" = "ubuntu-14.04.4" ] then RELEASE_NAME="csit-ubuntu-14.04.4-listmaker" PACKER_TEMPLATE="listmaker/ubuntu-14.04.4.json" -elif [ "$1" == "ubuntu-16.04.1" ] +elif [ "$1" = "ubuntu-16.04.1" ] then RELEASE_NAME="csit-ubuntu-16.04.1-listmaker" PACKER_TEMPLATE="listmaker/ubuntu-16.04.1.json" diff --git a/resources/tools/disk-image-builder/ubuntu/build.sh b/resources/tools/disk-image-builder/ubuntu/build.sh index 2b953f1c3a..6b1254661d 100755 --- a/resources/tools/disk-image-builder/ubuntu/build.sh +++ b/resources/tools/disk-image-builder/ubuntu/build.sh @@ -83,7 +83,7 @@ PACKER_DIR="${BUILD_DIR}/packer" APT_CACHE_DIR="${BUILD_DIR}/cache/apt" PIP_CACHE_DIR="${BUILD_DIR}/cache/pip" -PACKER_TEMPLATE="ubuntu-14.04.4.json" +PACKER_TEMPLATE="$1.json" LISTS_DIR="$(dirname $0)/lists" function syntax { diff --git a/resources/tools/disk-image-builder/ubuntu/run-listmaker.sh b/resources/tools/disk-image-builder/ubuntu/run-listmaker.sh index 129e2d49fc..00ee77415e 100755 --- a/resources/tools/disk-image-builder/ubuntu/run-listmaker.sh +++ b/resources/tools/disk-image-builder/ubuntu/run-listmaker.sh @@ -38,11 +38,11 @@ then fi DATE=$(date +%Y-%m-%d) -if [ "$1" == "ubuntu-14.04.4" ] +if [ "$1" = "ubuntu-14.04.4" ] then OS="ubuntu-14.04.4" VIRL_TOPOLOGY_FILE="listmaker/virl-listmaker-ubuntu-14.04.4.yaml" -elif [ "$1" == "ubuntu-16.04.1" ] +elif [ "$1" = "ubuntu-16.04.1" ] then OS="ubuntu-16.04.1" VIRL_TOPOLOGY_FILE="listmaker/virl-listmaker-ubuntu-16.04.1.yaml" @@ -63,6 +63,7 @@ echo "Storing data in ${OUTPUT_DIR}/." APT_WANTLIST_INFRA="nfs-common cloud-init" APT_WANTLIST_CSIT="python-dev python-pip python-virtualenv git strongswan" +APT_WANTLIST_TLDK="libpcap0.8-dev libpcap-dev" APT_WANTLIST_VPP="dkms bridge-utils" APT_WANTLIST_TREX="zlib1g-dev unzip" APT_WANTLIST_NESTED="qemu-system-x86" @@ -72,7 +73,7 @@ APT_WANTLIST_JAVA="openjdk-8-jdk-headless" # For now, let us NOT incude WANTLIST_NESTED in the below. We're installing qemu # separately from a separate source. -APT_WANTLIST="$APT_WANTLIST_INFRA $APT_WANTLIST_CSIT $APT_WANTLIST_VPP $WANTLIST_TREX" +APT_WANTLIST="$APT_WANTLIST_INFRA $APT_WANTLIST_CSIT $APT_WANTLIST_VPP $APT_WANTLIST_TREX $APT_WANTLIST_TLDK" APT_OUTPUTFILE="${OUTPUT_DIR}/apt-packages.txt" -- cgit 1.2.3-korg