From 93d47e238c77d917f6c48bed9081abfc26c248a7 Mon Sep 17 00:00:00 2001 From: melisha-git Date: Sat, 11 Oct 2025 13:35:40 +0300 Subject: [PATCH 1/3] Add Dependencies install script for apt --- README.rst | 19 ++++++++++++------- dependencies/apt_install.sh | 4 ++++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100755 dependencies/apt_install.sh diff --git a/README.rst b/README.rst index ddff1840..3506e92d 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,18 @@ Build status .. image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.5371409-blue?style=flat-square :target: https://doi.org/10.5281/zenodo.5371409 +Dependencies +============ + +- `libarchive `_ +- `libtalloc `_ +- `uthash `_ (only required for building CARE) + +To install all dependencies automatically, run the following commands:: + + chmod +x dependencies/_install.sh + ./dependencies/_install.sh + Compiling ========= @@ -42,13 +54,6 @@ The following commands can be used to compile PRoot and CARE:: .. |asciicast| image:: https://asciinema.org/a/315367.svg :target: https://asciinema.org/a/315367 -Dependencies -============ - -- `libarchive `_ -- `libtalloc `_ -- `uthash `_ (only required for building CARE) - Manuals ======= diff --git a/dependencies/apt_install.sh b/dependencies/apt_install.sh new file mode 100755 index 00000000..af57410e --- /dev/null +++ b/dependencies/apt_install.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo apt update -y +sudo apt install libtalloc-dev libarchive-dev uthash-dev -y \ No newline at end of file From 57bee62b0bb08eccaf8b8ae4970454c3b2ebaa5e Mon Sep 17 00:00:00 2001 From: melisha-git Date: Sat, 11 Oct 2025 13:38:50 +0300 Subject: [PATCH 2/3] Add Dependencies install script for pacman --- dependencies/apt_install.sh | 1 + dependencies/pacman_install.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 dependencies/pacman_install.sh diff --git a/dependencies/apt_install.sh b/dependencies/apt_install.sh index af57410e..ef9b4a69 100755 --- a/dependencies/apt_install.sh +++ b/dependencies/apt_install.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sudo apt update -y sudo apt install libtalloc-dev libarchive-dev uthash-dev -y \ No newline at end of file diff --git a/dependencies/pacman_install.sh b/dependencies/pacman_install.sh new file mode 100644 index 00000000..168fc10f --- /dev/null +++ b/dependencies/pacman_install.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e + +sudo pacman -Sy --noconfirm talloc libarchive uthash \ No newline at end of file From 2b400604bed5347ea52318295ca754b78fbfa04e Mon Sep 17 00:00:00 2001 From: melisha-git Date: Sat, 11 Oct 2025 13:43:36 +0300 Subject: [PATCH 3/3] Update dependencies scripts --- dependencies/apt_install.sh | 2 +- dependencies/pacman_install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies/apt_install.sh b/dependencies/apt_install.sh index ef9b4a69..db50b67e 100755 --- a/dependencies/apt_install.sh +++ b/dependencies/apt_install.sh @@ -2,4 +2,4 @@ set -e sudo apt update -y -sudo apt install libtalloc-dev libarchive-dev uthash-dev -y \ No newline at end of file +sudo apt install libtalloc-dev libarchive-dev uthash-dev -y diff --git a/dependencies/pacman_install.sh b/dependencies/pacman_install.sh index 168fc10f..7804b76f 100644 --- a/dependencies/pacman_install.sh +++ b/dependencies/pacman_install.sh @@ -1,4 +1,4 @@ #!/bin/bash set -e -sudo pacman -Sy --noconfirm talloc libarchive uthash \ No newline at end of file +sudo pacman -Sy --noconfirm talloc libarchive uthash