Add debian 8 support in extras/vagrant/build.sh

Change-Id: I03f73615f4355163afd9fb5062dcea7c2df5a49a
Signed-off-by: khers <s3m2e1.6star@gmail.com>
This commit is contained in:
khers
2017-05-24 15:43:54 +04:30
committed by Damjan Marion
parent 64543be4d4
commit 28262a06d8

View File

@ -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