2017-08-21 16:37:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Please run this script as root.
|
|
|
|
|
|
|
|
SYSTEM=`uname -s`
|
|
|
|
|
|
|
|
if [ -s /etc/redhat-release ]; then
|
|
|
|
# Includes Fedora, CentOS
|
|
|
|
if [ -f /etc/centos-release ]; then
|
|
|
|
# Add EPEL repository for CUnit-devel
|
|
|
|
yum --enablerepo=extras install -y epel-release
|
|
|
|
fi
|
|
|
|
yum install -y gcc gcc-c++ make CUnit-devel libaio-devel openssl-devel \
|
2018-01-04 19:42:41 +00:00
|
|
|
git astyle-devel python-pep8 lcov python clang-analyzer libuuid-devel \
|
|
|
|
sg3_utils
|
2017-08-21 16:37:37 +00:00
|
|
|
# Additional dependencies for NVMe over Fabrics
|
|
|
|
yum install -y libibverbs-devel librdmacm-devel
|
2017-09-15 23:42:42 +00:00
|
|
|
# Additional dependencies for DPDK
|
|
|
|
yum install -y numactl-devel
|
2017-08-21 16:37:37 +00:00
|
|
|
# Additional dependencies for building docs
|
|
|
|
yum install -y doxygen mscgen
|
2017-09-29 08:49:51 +00:00
|
|
|
# Additional dependencies for building nvml based backends
|
|
|
|
yum install -y libpmemblk-devel || true
|
2017-08-21 16:37:37 +00:00
|
|
|
elif [ -f /etc/debian_version ]; then
|
|
|
|
# Includes Ubuntu, Debian
|
|
|
|
apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev \
|
2018-01-04 19:42:41 +00:00
|
|
|
git astyle pep8 lcov clang uuid-dev sg3-utils
|
2017-08-21 16:37:37 +00:00
|
|
|
# Additional dependencies for NVMe over Fabrics
|
|
|
|
apt-get install -y libibverbs-dev librdmacm-dev
|
2017-09-15 23:42:42 +00:00
|
|
|
# Additional dependencies for DPDK
|
|
|
|
apt-get install -y libnuma-dev
|
2017-08-21 16:37:37 +00:00
|
|
|
# Additional dependencies for building docs
|
|
|
|
apt-get install -y doxygen mscgen
|
|
|
|
elif [ $SYSTEM = "FreeBSD" ] ; then
|
|
|
|
pkg install gmake cunit openssl git devel/astyle bash devel/pep8 \
|
2018-01-04 19:42:41 +00:00
|
|
|
python misc/e2fsprogs-libuuid sysutils/sg3_utils
|
2017-08-21 16:37:37 +00:00
|
|
|
# Additional dependencies for building docs
|
|
|
|
pkg install doxygen mscgen
|
|
|
|
else
|
|
|
|
echo "pkgdep: unknown system type."
|
|
|
|
exit 1
|
|
|
|
fi
|