aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhers <s3m2e1.6star@gmail.com>2017-05-24 15:43:54 +0430
committerDamjan Marion <dmarion.lists@gmail.com>2017-06-02 09:48:01 +0000
commit28262a06d8ff36056ff62269a53d1f6bfcdda5e4 (patch)
treec4ac9df6ddbe9df9713f6438182bab003b11700a
parent64543be4d4abbbc4353ce525382c58db34975946 (diff)
Add debian 8 support in extras/vagrant/build.sh
Change-Id: I03f73615f4355163afd9fb5062dcea7c2df5a49a Signed-off-by: khers <s3m2e1.6star@gmail.com>
-rwxr-xr-xextras/vagrant/build.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/vagrant/build.sh b/extras/vagrant/build.sh
index 76838e28a62..34873f96eae 100755
--- a/extras/vagrant/build.sh
+++ b/extras/vagrant/build.sh
@@ -26,6 +26,12 @@ elif [ -f /etc/redhat-release ];then
DISTRIB_RELEASE=`lsb_release -sr`
DISTRIB_CODENAME=`lsb_release -sc`
DISTRIB_DESCRIPTION=`lsb_release -sd`
+elif [ -f /etc/os-release ];then
+ . /etc/os-release
+ DISTRIB_ID=$ID
+ DISTRIB_RELEASE=$VERSION_ID
+ DISTRIB_CODENAME=$VERSION
+ DISTRIB_DESCRIPTION=$PRETTY_NAME
fi
KERNEL_OS=`uname -o`
KERNEL_MACHINE=`uname -m`
@@ -65,8 +71,11 @@ fi
# Build and install packaging
$SUDOCMD make bootstrap
+
if [ $DISTRIB_ID == "Ubuntu" ]; then
$SUDOCMD make pkg-deb
+elif [ $DISTRIB_ID == "debian" ]; then
+ $SUDOCMD make pkg-deb
elif [ $DISTRIB_ID == "CentOS" ]; then
(cd $VPP_DIR/vnet ;$SUDOCMD aclocal;$SUDOCMD automake -a)
$SUDOCMD make pkg-rpm