[CRIU] [PATCH v0] Add script to install required packages in Debian for development environment

Tuan T. Pham tuan at vt.edu
Sun Sep 11 17:52:06 PDT 2016


At the moment, we need to install the required Debian [packages][0]
manually.

This patch adds a script to install the required packages if one needs
an environment setup to compile and test CRIU from source code.

~Tuan

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

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

Signed-off-by: Tuan T. Pham <tuan at vt.edu>
---
 contrib/debian/dev-packages.lst | 18 ++++++++++++++++++
 scripts/install-debian-pkgs.sh  | 25 +++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 contrib/debian/dev-packages.lst
 create mode 100755 scripts/install-debian-pkgs.sh

diff --git a/contrib/debian/dev-packages.lst
b/contrib/debian/dev-packages.lst
new file mode 100644
index 0000000..e0aa513
--- /dev/null
+++ b/contrib/debian/dev-packages.lst
@@ -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
diff --git a/scripts/install-debian-pkgs.sh b/scripts/install-debian-pkgs.sh
new file mode 100755
index 0000000..c8af34f
--- /dev/null
+++ b/scripts/install-debian-pkgs.sh
@@ -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
--
2.1.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160911/f2b0c14f/attachment.html>


More information about the CRIU mailing list