Add script to install required packages to compile in Debian

In order to setup an environment to compile and to test CRIU
from source, we need to have required packages in Debian
environment.[^0] This script and its package list will help
setting it up.

contrib/debian/dev-packages.lst:
	* List of required packages for Debian development environment

scripts/install-debian-pkgs.sh:
	* A simple bash script instaling the required Debian packages

[0]: https://criu.org/Installation

Signed-off-by: Tuan T. Pham <tuan@vt.edu>
This commit is contained in:
Tuan T. Pham 2016-09-08 03:42:12 -04:00
parent 090bcd0103
commit 5f6b24723b
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Required packages for development in Debian
build-essential
libprotobuf-dev
libprotobuf-c0-dev
protobuf-c-compiler
protobuf-compiler
python-protobuf
# Extra packages, required for testing and building other tools
pkg-config
libnl-3-dev
python-ipaddr
libbsd0
libbsd-dev
iproute2
libcap-dev
libaio-dev
python-yaml

25
scripts/install-debian-pkgs.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
# Install required packages for development environment in Debian Distro
REQ_PKGS=${REQ_PKGS:=contrib/debian/dev-packages.lst}
help_msg="Install required packages for development environment in Debian Distro
Usage:
scripts/install-debian-pkgs.sh"
function print_help()
{
exec echo -e "$help_msg"
}
function process()
{
sudo apt-get update
sudo apt-get install -yq $( sed 's/\#.*$//' ${REQ_PKGS} )
}
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
print_help
else
process
fi