From 018481803ba968be02c5be8f16ba6559019227f2 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:52:13 +0530 Subject: [PATCH] Add 8.72 - Build procps-ng --- scripts/chapter8/8.72-procps-ng.sh | 29 +++++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 scripts/chapter8/8.72-procps-ng.sh diff --git a/scripts/chapter8/8.72-procps-ng.sh b/scripts/chapter8/8.72-procps-ng.sh new file mode 100644 index 0000000..63b128b --- /dev/null +++ b/scripts/chapter8/8.72-procps-ng.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +cd /sources +tar xf procps-ng-4.0.0.tar.xz +cd procps-ng-4.0.0 + +./configure --prefix=/usr \ + --docdir=/usr/share/doc/procps-ng-4.0.0 \ + --disable-static \ + --disable-kill + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +cd /sources +rm -rf procps-ng-4.0.0 diff --git a/scripts/main.sh b/scripts/main.sh index 5e4b7d9..38b694f 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1402,3 +1402,15 @@ then stop_script "chapter8/8.71-man-db.sh" fi +# Chapter 8.72 +# ============ +echo "Building procps-ng" +su -c "bash $SCRIPT/chapter8/8.72-procps-ng.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.72-procps-ng.sh" +fi +